A state or province by code or name. Capital, tax, area codes, timezones.
Look up a state or province by code or name. /state/colorado and /state/texas resolve on their own. CA matches 12 states, so pass ?country=. ISO2, ISO3, and names all work. Accents optional.
curl "https://api.parseapi.com/state/colorado" \
-H "X-API-Key: YOUR_API_KEY"{
"state": "CO",
"name": "Colorado",
"local_name": "Colorado",
"type": "state",
"country": "US",
"country_name": "United States",
"latitude": 38.725178,
"longitude": -105.607716,
"population": 5957493,
"area": 269837,
"timezone": "America/Denver",
"timezones": [
"America/Denver"
],
"iso_3166_2": "US-CO",
"fips": "08",
"capital": "Denver",
"area_codes": [
"303",
"719",
"720",
"970"
],
"tax": "Sales tax",
"tax_rate": 2.9
}Response fields
Counties, parishes, boroughs, and the like under that state. Useful for finer address forms.
curl "https://api.parseapi.com/state/nc/districts?country=US" \
-H "X-API-Key: YOUR_API_KEY"{
"state": "NC",
"state_name": "North Carolina",
"country": "US",
"country_name": "United States",
"districts": [
{
"district": "37119",
"name": "Mecklenburg",
"type": "county"
},
{
"district": "37063",
"name": "Durham",
"type": "county"
},
// ... 98 more
]
}Response fields
Questions? Email