Political & Geo Demographics

ZIP-to-congressional-district lookups, representative info, TIGER geocoding and boundary data, and district/state-level population and commute demographics.

Congressional district by ZIP

GET /v1/geo/congressional-district

curl "https://api.cornerdatastore.com/v1/geo/congressional-district?zip=10001" \
  -H "X-Api-Key: YOUR_API_KEY"
Response
{
  "zip": "10001",
  "state_fips": "36",
  "state": "NY",
  "district": 12,
  "at_large": false,
  "congress": 119,
  "representative": {
    "name": "Jerry Nadler",
    "party": "Democrat",
    "party_short": "D",
    "website": "https://nadler.house.gov"
  },
  "source": "Census 2020 ZCTA5-to-Congressional-District relationship file + unitedstates/congress-legislators"
}

Confirmed exact shape from source; representative name/party are illustrative. zip is required (exactly 5 characters). district is null + at_large: true for single-district states/DC. representative is null if no match. 404 if the ZIP isn't in the crosswalk.

All geo & political endpoints

MethodEndpointDescription
GET/v1/geo/congressional-districtZIP → district + representative (?zip)
GET/v1/politics/summaryNational political summary
GET/v1/politics/state-summaryState-level political summary (?state)
GET/v1/politics/districtDistrict detail (?state&district)
GET/v1/politics/all-districtsAll congressional districts
GET/v1/politics/senate-by-stateSenators by state
GET/v1/geo/district-populationPopulation by congressional district
GET/v1/geo/state-populationPopulation by state
GET/v1/geo/district-commute-modeCommute mode share by district
GET/v1/geo/state-commute-modeCommute mode share by state
POST/v1/geo/geocodeAddress/point → TIGER geography + lat/lon
GET/v1/geo/containmentWhich geographies contain a lat/lon point
GET/v1/geo/state-boundariesState boundary polygons
GET/v1/geo/congressional-district-boundariesDistrict boundary polygons