One district by code or name. Seat, timezones, area. US, FR, GB.
Look up one district by code or name. US county FIPS, French INSEE departments, and GB GSS districts, the same codes /point and /postal hand back. /district/guilford county and /district/edinburgh resolve on their own. Type suffixes fold, so /district/guilford works too.
A name shared across districts needs ?state= or ?country=. Washington matches 31. ?state=LA itself matches 11 ADM1 codes, so prefer louisiana or pair it with ?country=US. Codes rarely collide. When one does, you get a 400 asking for country.
curl "https://api.parseapi.com/district/08031" \
-H "X-API-Key: YOUR_API_KEY"{
"district": "08031",
"name": "Denver County",
"type": "county",
"state": "CO",
"state_name": "Colorado",
"country": "US",
"country_name": "United States",
"latitude": 39.76185,
"longitude": -104.881105,
"population": 729019,
"area": 400.74,
"land_area": 396.46,
"water_area": 4.28,
"seat": "Denver",
"timezone": "America/Denver",
"timezones": [
"America/Denver"
]
}Response fields
Every district in a state instead? Use /state/{code}/districts.
Questions? Email