A country by ISO2 or ISO3, capital, currency, states.
Look up a country by ISO2 or ISO3. us and usa are the same. Response country is always ISO2. Capital, currency, languages, borders, 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.",
"continent": "NA",
"region": "Americas",
"subregion": "Northern America",
"population": 331002651,
"area": 9833520,
"currency": "USD",
"currency_name": "United States Dollar",
"currency_symbol": "$",
"tld": ".us",
"emoji": "🇺🇸",
"languages": [
"en"
],
"borders": [
"CA",
"MX"
]
}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