Method: GET
Content Type: application/json
Response
Attribute | Type | Description |
---|
data | Array | Array of country key value pairs |
data[a].key | String | The unique country code (For example, "US" for United States ). |
data[a].value | String | The full name of the country (For example, "United States"). |
data[a].cca3 | String | The unique three-digit country code (For example,"USA" for the United States). |
data[a].emoji | String | The emoji flag for the country(For example, πΊπΈ for United States). |
data[a].calling_code | Array of Integers | Array of international calling codes used to dial to the country (For example,[1] for the United States). |
data[a].currency.key | String | The ISO currency code (For example,"USD" for United States Dollar). |
data[a].currency.value | String | The name of the currency used in the country (For example, "US Dollar"). |
data[a].currency.symbol | String | The symbol of the currency (For example, "$"). |
data[a].currency.emoji | String | The currency emoji for that currency (For example, π΅ ). |
Sample Response
HTTP Response Codes
The method may return one of the following HTTP status codes:
Status Code | Description |
---|
200 | The request was successful. |
401 | Required authentication information is either missing or not valid for the resource. |
500 | If any unexpected error occurs while processing the request. |