gov

Resolve a US street address to its congressional district...

Resolve a US street address to its congressional district (119th Congress), state, and county, via the US Census Bureau geocoder. Returns the matched/normalized address, latitude/longitude, state (name + 2-letter abbreviation), county, and the district number within the state (null for at-large or non-voting delegate districts). The point-in-polygon district lookup is something an agent can't do from a sandbox. Pair it with the gov/congress.* endpoints to find the representatives once you have the state + district. Public domain, keyless.

get/api/gov/district

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/gov/district
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

addressstring required

A US street address (one line, e.g. "1600 Pennsylvania Ave NW, Washington, DC 20500").

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.