Country codes · Localization · State lists
Country API
Make your app
feel local.
Turn a country code or name into the currency, languages and timezones your app needs. Build country and state pickers with consistent codes and readable names.
Country lookups and state lists on every plan.
Try a country code or name
Try it
From input to integration
A country.
Ready for your app.
Look up a code or a name, load its states, or add a richer profile. Each example pairs the request with the complete JSON response.
One code. The facts your app needs.
Germany returns country names, demonym, region, currency, calling code, languages, timezone IDs, borders and capital. This is the complete ordinary response, available on every plan.
Request
curl "https://api.parseapi.com/country/de?deep=true" \
-H "X-API-Key: YOUR_API_KEY"Example response
Country outlines · GeoJSON
Put a country
on the map.
Choose a country. See its outline on the map. Pan and zoom to explore.
Add format=geojson to get the country outline as geographic coordinates, ready for your map.
curl "https://api.parseapi.com/country/US?format=geojson" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Parse-Version: 2.0.0"Country and state dropdowns
Choose a country.
Load its states.
Keep country and state fields connected. Fetch the country list for your first picker, then load the selected country's states, provinces or territories.
Store the subdivision code. Show the name. Use the type to choose the right label for your address form.
Build the dropdown flowAustralia
8 states and territories- ACTAustralian Capital Territoryterritory
- NSWNew South Walesstate
- NTNorthern Territoryterritory
- QLDQueenslandstate
- SASouth Australiastate
- TASTasmaniastate
- VICVictoriastate
- WAWestern Australiastate
Example state list. Complete request and JSON above.
Example paid profile
Germany
Deutschland · DE
- Capital
- Berlin
- Currency
- EUR
- Week starts
- monday
- Measurement
- metric
- Drives on
- right
- Power
- 230 V / 50 Hz
Detailed when you need it
Go beyond
the country code.
Add a country profile for travel guides, regional settings and location context. Read statistics, physical geography and local conventions alongside the ordinary country facts.
Add ?deep=true on a paid plan. The ordinary country fields stay in place, with useful detail in Deep.
Explore country profilesAdd form.js to your fields
Choose a country. Load its states.
Mark your country dropdown with form.js, then connect the state dropdown to it. The state list updates when the selected country changes.
Try connected dropdownsInclude the script once with your website's domain-restricted public key. Use these bindings in your existing form.
<script src="https://cdn.parseapi.com/v1/form.js"
data-key="parse_public_YOUR_KEY" defer></script>
<label for="form-country">Country</label>
<select id="form-country" name="country" data-parse="country">
<option value="">Choose a country</option>
<option value="US">United States</option>
<option value="CA">Canada</option>
<option value="GB">United Kingdom</option>
</select>
<label for="form-state">State or province</label>
<select id="form-state" name="state"
data-parse-from="form-country" data-parse-fill="states">
<option value="">Choose a state or province</option>
</select>From the first request to your app
One key.
Your language.
Copy a request, keep the country code, and use the names in your interface. Expand language and regional codes with the related APIs when you need more detail.
Country API referenceHTTP, SDKs and MCP
Use the same API key across ParseAPI. The reference covers parameters, responses, authentication and errors.
Before you build.
Can I draw country outlines on a map?
Add format=geojson for a simplified country land outline, with the country code as its feature ID and the same selected facts in properties. Use countries on the GeoJSON collection to select up to 50 codes. Missing outlines keep null geometry.
Can I use an ISO code or a country name?
Yes. Use a two-letter ISO2 code, a three-letter ISO3 code or a supported country name. US, USA and United States resolve to the same record. Name matching is case-insensitive and accepts supported local names.
How do I build country and state dropdowns?
GET /country returns the country list with codes, names, flags and calling codes. After a country is selected, GET /country/{code}/states returns its recorded subdivisions with codes, names and types. Both lists are available on every plan.
What is included with a free API key?
Country lookup, the country list and state lists use your API request allowance on every plan. The ordinary lookup includes country names and codes, demonym, region, currency, calling code, flag, language codes, timezone IDs, borders, memberships and capital. Deep country profiles are included on paid plans.
What does Deep add?
Add ?deep=true to the same country lookup on a paid plan for population, area, economic statistics, physical geography, local conventions, postal formats, tax references and specialist identifiers. Capital, borders and country-group memberships are already in Core. Core fields keep the same values. Unavailable detail stays null. A Free request with Deep returns an empty deep object.
Is name_local a translated label?
name is the English display name. name_local is the country's own name, such as Japan and 日本. It is null when absent or identical to name. It does not change with the visitor's language.
Which timezone should I use for a person or address?
Country returns a list of IANA timezone IDs associated with the country. Use a more specific place or coordinate to choose the timezone for an address. The Time API resolves local time and conversions for supported locations.
How should I read statistics and geography?
Population and geographic fields are reference facts with separate coverage. Area is in square kilometers, coastline in kilometers and elevations in meters. Geographic detail includes archived observations. Missing values stay null.
Can I calculate checkout tax from tax.rate?
deep.tax.rate is the standard national reference rate in percent, so 19 means 19%. It is not a transaction-specific tax calculation. Product, location and exemption rules can change the amount due. The US has a null national rate because it has no national sales tax.
Country API pricing
Put country data to work.
Start free with country lookups and state lists. Add Deep profiles on a paid plan. Your request allowance is shared across ParseAPI products.
Free
Start with a free API key.
Country data and state lists
Room to grow
Choose your capacity on Plans.
Country data, state lists and Deep profiles