← Docs

District API

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.

Lookup

GET
api.parseapi.com/district/{code}
One district by code or name. ?state= or ?country= when it collides
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

district
District code (US county FIPS, FR INSEE department, GB GSS)
name
Name
type
County, department, district, etc.
state
State or province code
state_name
State or province name
country
ISO2 country code
country_name
Country name
latitude
Centroid latitude
longitude
Centroid longitude
population
Population estimate
area
Total area in km² (land + water, or the official total)
land_area
Land area in km² (null when the source publishes total only)
water_area
Water area in km² (null when the source publishes total only)
seat
Seat of government (county seat, prefecture, admin centre)
timezone
Primary timezone (most-populated zone)
timezones
Every IANA timezone in the district

Every district in a state instead? Use /state/{code}/districts.

Questions? Email