Guide
Filtering members
Slice the full dataset by state, chamber, district, party or name — filters combine.
/members is the cross-cutting search over every officeholder. Filters combine — each parameter narrows the result.
| parameter | filters by |
|---|---|
| state=tx | Two-letter state code, lowercase. |
| chamber=lower | upper, lower or unicameral. |
| district=30 | District identifier. Leading zeros are ignored — 3 and 03 select the same seat. |
| party=republican | Party, case-insensitive partial match. |
| search=graham | Case-insensitive substring on the name. |
| level=state | federal, state or local. |
| branch=executive | legislative, executive or judicial. |
curl
# One seat: state + chamber + district
curl "https://civiclens.io/api/v1/members?state=tx&chamber=lower&district=30"
# Every statewide executive, coast to coast
curl "https://civiclens.io/api/v1/members?level=state&branch=executive"
# Name search across every jurisdiction
curl "https://civiclens.io/api/v1/members?search=graham"Results are paginated: page starts at 1 and limit sets the page size. Sort with sort=name|state|party and order=asc|desc. The full parameter list is on the /members reference page.