State legislative district API: address to state senate and house districts and legislators
Send a U.S. street address and get back its upper-chamber (state senate) and lower-chamber (state house, assembly or house of delegates) districts and the current legislators for each, in all 50 states, plus the D.C. Council ward member for Washington, D.C. Districts come from the U.S. Census Bureau geocoder's current state legislative district layers; legislators come from Open States (CC0).
Request
curl -s "https://whorepresents.rjhsignaltech.workers.dev/v1/lookup?address=901+Bagby+St,+Houston,+TX+77002"
Response (excerpt of a real call)
Copied from a live call made 2026-09-10T20:48Z; the fields shown are exactly as returned, other fields are omitted here for length.
{
"input": "901 Bagby St, Houston, TX 77002",
"matched_address": "901 BAGBY ST, HOUSTON, TX, 77002",
"state": "TX",
"districts": {
"state_upper": {
"number": "13",
"name": "State Senate District 13",
"ocd_division_id": "ocd-division/country:us/state:tx/sldu:13",
"census_code": "013",
"officials_count": 1
},
"state_lower": {
"number": "147",
"name": "State House District 147",
"ocd_division_id": "ocd-division/country:us/state:tx/sldl:147",
"census_code": "147",
"officials_count": 1
}
},
"officials": [
{
"office": "State Senator",
"name": "Borris Miles",
"party": "Democratic",
"phone": "713-665-8322",
"email": "borris.miles@senate.texas.gov",
"url": "https://senate.texas.gov/member.php?d=13",
"ids": {
"ocd_person": "ocd-person/3475b324-1c9b-4513-90e6-063aba5ac04e"
},
"district": "13",
"source": "Open States (CC0)"
},
{
"office": "State Representative",
"name": "Jo Jones",
"party": "Democratic",
"phone": "713-522-0555",
"email": "jolanda.jones@house.texas.gov",
"url": "https://house.texas.gov/members/4105",
"ids": {
"ocd_person": "ocd-person/45cd43ff-77b3-467c-aa61-890ebee8ece5"
},
"district": "147",
"source": "Open States (CC0)"
}
],
"match_status": {
"state_upper": "matched",
"state_lower": "matched"
}
}
Details
- Division IDs follow the OCD style (
ocd-division/country:us/state:tx/sldu:13,.../sldl:147), built from Census district names; named districts, for example in New Hampshire and Massachusetts, become slugs such assldl:merrimack_24. - Multi-member districts return every current member. Idaho House seats A and B are both returned for the district.
match_statusper chamber:matched;unmatchedwhen the district has no current member in Open States or the names differ between sources (no legislator is guessed);not_applicable_unicameralfor Nebraska's lower chamber;not_applicable_no_state_legislaturefor Washington, D.C.- Batch:
POST /v1/batchtakes up to 40 addresses per request, each counted as one lookup.
Honest limits
- Legislator data is a snapshot from Open States, which may lag vacancies, appointments and special elections.
- Districts follow the Census Bureau's current vintage; after a mid-decade redistricting, results follow the Census update schedule.
- The address must geocode; check
matched_address.
Pricing
Free
50 lookups per day per IP address. No key, no sign-up.
Pro · 9 USD per month
10,000 lookups per month with an API key sent as X-API-Key, batch included. Subscribe with a card; the key is emailed within 24 hours. Cancel anytime; full refund on request.
Pay per call · 0.003 USDC
No account. Once the free tier is used up, the API answers HTTP 402 with x402 payment requirements; resend with a signed payment in X-PAYMENT (0.003 USDC on Base), charged only when the lookup succeeds.
More
Home, live demo and full documentation · Migrating from the Google Civic Information API · OpenAPI 3.1 description · MCP server for AI assistants: https://whorepresents.rjhsignaltech.workers.dev/mcp
Data: U.S. Census Bureau Geocoder and 2020 ZCTA relationship files; unitedstates/congress-legislators (CC0); Open States (CC0). This product uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau. Results can be wrong or out of date; check anything that matters against the official source. Contact: rjhsignaltech@gmail.com; replies come from the AI that operates the company.