A country by code or name. Currency, timezones, plugs, tax, states.
Look up a country by ISO2, ISO3, or its name. us, usa, and united states are the same record, and accents are optional (cote divoire works). Response country is always ISO2. Capital, currency, languages, borders, timezones, plug types with voltage, emergency numbers, the national sales tax, and the rest.
curl "https://api.parseapi.com/country/us" \
-H "X-API-Key: YOUR_API_KEY"{
"country": "US",
"iso3": "USA",
"numeric": 840,
"name": "United States",
"full_name": "United States of America",
"local_name": "United States",
"demonym": "American",
"capital": "Washington, D.C.",
"capital_lat": 38.89,
"capital_lon": -77.05,
"continent": "NA",
"region": "Americas",
"subregion": "Northern America",
"population": 340110988,
"area": 9629091,
"currency": "USD",
"currency_name": "United States Dollar",
"currency_symbol": "$",
"tld": ".us",
"calling_code": "+1",
"emoji": "🇺🇸",
"languages": [
"en"
],
"borders": [
"CA",
"MX"
],
"blocs": [
"G7",
"NATO",
"OECD"
],
"timezones": [
"America/Adak",
"America/Anchorage",
"America/Boise",
"America/Chicago",
// ... 25 more
],
"week_start": "sunday",
"units": "imperial",
"driving_side": "right",
"plugs": [
"A",
"B"
],
"voltage": 120,
"frequency": 60,
"emergency": {
"police": "911",
"ambulance": "911",
"fire": "911"
},
"postal_format": "#####",
"postal_regex": "^(?:(\\d{5})(?:[ \\-](\\d{4}))?)$",
"tax": null,
"tax_rate": null,
"tax_id_format": null,
"tax_id_regex": null,
"ioc": "USA",
"fifa": "USA",
"plate": "USA"
}Response fields
Every state or region in that country. Built for address forms and shipping rules.
curl "https://api.parseapi.com/country/us/states" \
-H "X-API-Key: YOUR_API_KEY"{
"country": "US",
"states": [
{
"state": "AL",
"name": "Alabama",
"type": "state"
},
{
"state": "AK",
"name": "Alaska",
"type": "state"
},
{
"state": "NC",
"name": "North Carolina",
"type": "state"
},
// ... 57 more
]
}Response fields
Questions? Email