Legislators & search
Look up a legislator, run unified search across bills and regulations, and find representatives by address.
Beyond bills and regulations, the API exposes legislator lookups and cross-corpus search.
Legislator detail#
GET /api/v1/legislators/:id
Returns the legislator's roles, party, contact details, and sponsored-bills count.
Unified search#
GET /api/v1/search?q=privacy&type=all&semantic=true
Searches bills and regulations together. Use type=bills or type=regulations to scope it, and semantic=true to match on meaning rather than exact words.
Find representatives by address#
GET /api/v1/representatives?address=1600+Pennsylvania+Ave+NW,+Washington+DC
Geocodes the address to a district and returns the matching legislators — the same lookup that powers Who represents me? on our site.
A city and state (Baltimore, MD), a county (Baltimore County, MD) or a ZIP code (21201) works too. A city or ZIP can span several districts, so representatives holds the officials who represent all of it, possible_representatives the members whose districts each cover part of it, and accuracy_level says city, county or zip. A street address narrows it to one.