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
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/geo/congressional-district | ZIP → district + representative (?zip) |
| GET | /v1/politics/summary | National political summary |
| GET | /v1/politics/state-summary | State-level political summary (?state) |
| GET | /v1/politics/district | District detail (?state&district) |
| GET | /v1/politics/all-districts | All congressional districts |
| GET | /v1/politics/senate-by-state | Senators by state |
| GET | /v1/geo/district-population | Population by congressional district |
| GET | /v1/geo/state-population | Population by state |
| GET | /v1/geo/district-commute-mode | Commute mode share by district |
| GET | /v1/geo/state-commute-mode | Commute mode share by state |
| POST | /v1/geo/geocode | Address/point → TIGER geography + lat/lon |
| GET | /v1/geo/containment | Which geographies contain a lat/lon point |
| GET | /v1/geo/state-boundaries | State boundary polygons |
| GET | /v1/geo/congressional-district-boundaries | District boundary polygons |