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 | Mandatory | Description |
|---|---|---|---|
| country | String | Yes | 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 | Mandatory | Description |
|---|---|---|---|
| data | Object | No | 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 | No | ISO 3166-1 alpha-2 code. |
| data.cca3 | String | No | ISO 3166-1 alpha-3 code. |
| data.emoji | String | No | Country emoji. |
| data.value | String | No | Country name. |
| data.currency | Object | No | Currency details object with key, emoji, value, and symbol. |
| data.currency.key | String | No | ISO 4217 currency code. |
| data.currency.emoji | String | No | Currency emoji. |
| data.currency.value | String | No | Currency name in English. |
| data.currency.symbol | String | No | Currency symbol. |
| data.calling_codes | String Array | No | Calling codes associated with the country. |
| data.subdivision | Object Array | No | Country subdivisions. Each item contains subdivision code and name. |
| data.subdivision[].code | String | No | ISO 3166-2 subdivision code. |
| data.subdivision[].name | String | No | Subdivision name. |
| data.calling_code | String Array | No | Calling codes associated with the country. |