GET /country/{code} · /{code}/states
Country API
Pass US, USA, or germany. Names, currency, languages, and timezones.
Try it
Run a lookup to see the response.
1M requests · $20/mo. Get started
What comes back.
name
Common name
deep.capital
Capital city
currency
ISO currency code
languages
ISO 639 language codes. Expand each at /language/{code}
deep.borders
Neighboring country ISO2 codes
timezones
IANA timezone ids used in the country. The US lists 29
deep.week_start
First day of the week (monday, sunday, saturday)
deep.units
Measurement system (metric or imperial)
deep.driving_side
left or right
deep.plugs
Power plug types, IEC letters (A through O)
deep.voltage
Residential mains voltage. Null when no single standard exists
deep.emergency
Emergency numbers: police, ambulance, fire. Null when not confirmed
deep.postal_format
Postal code mask, # is a digit and A is a letter. Null when the country has no postal codes
deep.tax
National levy name (VAT, GST). Null when unavailable or no national levy applies, like the US
deep.tax_rate
Standard national reference rate in percent: 19 means 19%. Do not add it to a state or ZIP reference
deep.ioc
Olympic committee code (GER, NED, SUI)
deep.plate
International vehicle plate code (D, UK, CH)
states
Every state or province in the country
1
Pass a code or the name
/country/us, /country/usa, and /country/germany are the same lookup. Accents optional.
2
Get the facts
Names, currency, languages, and timezones. Add deep=true on a paid plan for the country profile, statistics, and local conventions.
3
List the states
GET /country/{code}/states.
Coverage
250 countries and territories. Official records.
- NANorth America41 countries
- EUEurope53 countries
- AFAfrica58 countries
- ASAsia52 countries
- OCOceania27 countries
- SASouth America14 countries
- ANAntarctica5 countries
- 250
- countries
- 156
- currencies
- 229
- countries with states
Look up a country by ISO2, ISO3, or name. Names, currency, languages, calling code, coordinates, and timezones give you the facts for forms and localization. name is English and name_local is the endonym, or null when absent or identical to name.
Paid deep adds a country profile: statistics, capital, borders and blocs, alternate identifiers, regional conventions, postal formats, and tax references. Need states or regions? Use /country/{code}/states on every plan.
SPEED
How long /country takes.
Median time to first byte over the last seven days. Warm requests, measured every 30 minutes. Live verification and other request variants can take longer.
US
26ms
EU
27ms
APAC
54ms
LatAm
25ms
ME
124ms
Make your first request.
One key works across the APIs. Copy a request in your language and get JSON back.
curl "https://api.parseapi.com/country/ca" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Parse-Version: 2.0.0"// Example response · 200{"country": "CA", "name": "Canada", "continent": "NA", "currency": "CAD", "currency_name": "Canadian Dollar", "currency_symbol": "C$", "calling_code": "+1", "emoji": "🇨🇦", "languages": ["en"], "timezones": [ "America/Cambridge_Bay", "America/Dawson", "America/Dawson_Creek", "America/Edmonton", // ... 19 more ] }
API referenceSDKsKeys and authentication
Every response field
Response fields
- countrystring
- ISO2 country code
- namestring or null
- Common name
- name_localstring or null
- Local-language name, null when absent or identical to name
- continentstring or null
- Continent code (NA, EU, AF, AS, OC, SA, AN)
- currencystring or null
- ISO currency code
- currency_namestring or null
- Currency name
- currency_symbolstring or null
- Currency symbol
- calling_codestring or null
- International calling code with plus (+1, +44)
- emojistring or null
- Flag emoji
- languagesarray or null
- ISO 639 language codes. Expand each at /language/{code}
- timezonesarray or null
- IANA timezone ids used in the country. The US lists 29
Deep fields
- deep.iso3string or null
- Three-letter country code
- deep.numericinteger or null
- UN numeric code
- deep.full_namestring or null
- Official long name
- deep.demonymstring or null
- Demonym
- deep.capitalstring or null
- Capital city
- deep.capital_latnumber or null
- Capital latitude (null when there is no capital)
- deep.capital_lonnumber or null
- Capital longitude (null when there is no capital)
- deep.regionstring or null
- UN region
- deep.subregionstring or null
- UN subregion
- deep.populationinteger or null
- Population estimate
- deep.population_periodstring or null
- Observation year or multi-year period for this population estimate (YYYY or YYYY-YYYY). Null when the record has no verified period or population. Never the import date.
- deep.areanumber or null
- Total area in km²
- deep.land_areanumber or null
- Published land area in km². Null when unavailable or its published total differs from area
- deep.water_areanumber or null
- Published water area in km². Null when unavailable or its published total differs from area
- deep.coastlinenumber or null
- Published coastline length in kilometers. Zero is known zero; null is unavailable
- deep.elevationnumber or null
- Mean elevation in meters above sea level. Null when unavailable
- deep.lowest_pointobject or null
- Lowest geographic point, or null when unavailable or ambiguous
- deep.lowest_point.namestring or null
- Published place name. Null when unnamed
- deep.lowest_point.elevationnumber
- Meters above sea level. Negative values are below sea level
- deep.highest_pointobject or null
- Highest geographic point, or null when unavailable or ambiguous
- deep.highest_point.namestring or null
- Published place name. Null when unnamed
- deep.highest_point.elevationnumber
- Meters above sea level
- deep.tldstring or null
- Top-level domain
- deep.bordersarray or null
- Neighboring country ISO2 codes
- deep.blocsarray
- Bloc memberships (EU, EEA, SCHENGEN, EUROZONE, SEPA, NATO, and more). Expand each at /bloc/{code}
- deep.week_startstring or null
- First day of the week (monday, sunday, saturday)
- deep.unitsstring or null
- Measurement system (metric or imperial)
- deep.driving_sidestring or null
- left or right
- deep.plugsarray or null
- Power plug types, IEC letters (A through O)
- deep.voltagenumber or null
- Residential mains voltage. Null when no single standard exists
- deep.frequencynumber or null
- Mains frequency in Hz. Null when the grid is split (Japan runs both 50 and 60)
- deep.emergencyobject or null
- Emergency numbers: police, ambulance, fire. Null when not confirmed
- deep.postal_formatstring or null
- Postal code mask, # is a digit and A is a letter. Null when the country has no postal codes
- deep.postal_regexstring or null
- Anchored regex matching valid postal codes
- deep.taxstring or null
- National levy name (VAT, GST). Null when unavailable or no national levy applies, like the US
- deep.tax_ratenumber or null
- Standard national reference rate in percent: 19 means 19%. Do not add it to a state or ZIP reference
- deep.tax_id_formatstring or null
- Tax id example format, 9 is a digit (DE999999999)
- deep.tax_id_regexstring or null
- Anchored tax ID format regex. A match does not establish registration
- deep.iocstring or null
- Olympic committee code (GER, NED, SUI)
- deep.fifastring or null
- FIFA code. Null for GB, the home nations are the members
- deep.platestring or null
- International vehicle plate code (D, UK, CH)
Build with Country
All tutorials →QUESTIONS
- When do I use which?
- A code or name for the country record. /states for every state or province in it.
- ISO2 or ISO3?
- Either. /country/us and /country/usa are the same record.
- Can I pass a name?
- Yes. /country/germany and /country/deutschland resolve. Accents are optional, cote divoire finds Ivory Coast.
- What comes back?
- Names, currency, languages, calling code, flag, and timezones form the ordinary response. Paid deep adds the country profile: statistics, capital, borders, blocs, regional conventions, formats, tax references, and alternate identifiers.
- What is the tax field?
- Paid deep.tax names the national sales tax, VAT, or GST. deep.tax_rate is a percentage: 19 means 19%. The US has null because there is no national sales tax.
- What is name_local?
- What the country calls itself. Japan is Japan. name_local reads 日本. It is null when absent or identical to name.
- How do I list states?
- GET /country/{code}/states. Every admin division in that country.
Country, decoded.
Country codes on every plan. Detailed profiles on paid plans.
Start includes 1M API requests a month for $20/mo.
Ready for busy moments.Start includes 1,800 requests per minute, with extra capacity for bursts. Rate limits