About this endpoint
What it does
Returns detailed information for a single country identified by its country code passed in the country query parameter. The response is a JSON object containing a data object with country details and, when present in the schema, subdivision and calling code arrays.
Query Parameter(s)
| Attribute | Type | Description |
|---|---|---|
| country | String | Country code to look up. |
Response
Returns a JSON object with a data object field. The data object includes country metadata such as key, cca3, emoji, value, and currency, and may also include subdivision and calling_code arrays.
| Attribute | Type | Description |
|---|---|---|
| data | Object | Country details object. Includes key as the ISO 3166-1 alpha-2 code, cca3 as the ISO 3166-1 alpha-3 code, emoji, value as the country name, currency as a nested object, and calling_codes as a string array. It may also include subdivision as an object array and calling_code as a string array. |
| data.key | String | ISO 3166-1 alpha-2 code. |
| data.cca3 | String | ISO 3166-1 alpha-3 code. |
| data.emoji | String | Country emoji. |
| data.value | String | Country name. |
| data.currency | Object | Currency details object with key, emoji, value, and symbol. |
| data.currency.key | String | ISO 4217 currency code. |
| data.currency.emoji | String | Currency emoji. |
| data.currency.value | String | Currency name in English. |
| data.currency.symbol | String | Currency symbol. |
| data.calling_codes | String Array | Calling codes associated with the country. |
| data.subdivision | Object Array | Country subdivisions. Each item contains subdivision code and name. |
| data.subdivision[].code | String | ISO 3166-2 subdivision code. |
| data.subdivision[].name | String | Subdivision name. |



