Country Details
Full country metadata.
GET
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
iso2 | string | Required | ISO2 country code (path parameter) |
Request Example
curl "https://api.localityapi.com/v1/country/AE" \
-H "X-API-Key: lapi_your_key"Response
json
{
"name": "United Arab Emirates",
"iso2": "AE",
"iso3": "ARE",
"capital": "Abu Dhabi",
"currency": "AED",
"currency_symbol": "د.إ",
"phone_code": "+971",
"languages": ["Arabic"],
"continent": "Asia",
"flag": "🇦🇪",
"timezone": "Asia/Dubai",
"region": "Middle East",
"query_ms": 0
}Response Fields
namestringCountry nameiso2stringISO2 country codeiso3stringISO3 country codecapitalstringCapital citycurrencystringCurrency codecurrency_symbolstringCurrency symbolphone_codestringPhone dialing codelanguagesarrayOfficial languagescontinentstringContinent nameflagstringFlag emojitimezonestringPrimary timezoneregionstringGeographic regionquery_msintegerQuery execution time in milliseconds