A state or province, by code.
Look up a state or province by code. Country is required because codes aren't unique worldwide. CA is California with country=US, Ontario with country=CA.
curl "https://api.parseapi.com/state/nc?country=US" \
-H "X-API-Key: YOUR_API_KEY"{
"state": "NC",
"name": "North Carolina",
"local_name": "North Carolina",
"type": "state",
"country": "US",
"country_name": "United States",
"latitude": 35.5,
"longitude": -79.8,
"population": 10439388,
"area": 139391,
"timezone": "America/New_York"
}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