openstates.people_search
mock data$0.001 / callSearch State Legislators
Search current US state legislators across all 50 states. Filter by state jurisdiction, name, political party, or district. Returns legislator profiles including name, party affiliation, chamber role (Senator/Representative/Delegate), district, jurisdiction, and profile image. Powered by OpenStates (open-data, CC-licensed). Use jurisdiction codes such as "ca" (California), "tx" (Texas), "ny" (New York).
Input schema
Search legislators by full or partial name (e.g. "Pelosi", "Nancy Pelosi"). Case-insensitive substring match.
Page number for pagination (default 1).
Filter by political party affiliation (e.g. "Democratic", "Republican", "Independent").
Filter by legislative district number or name (e.g. "12", "Senate District 5").
Number of results per page (1–50, default 20).
State or jurisdiction abbreviation to filter legislators (e.g. "ca" for California, "tx" for Texas, "ny" for New York). Required unless name is provided.
Call via REST
curl -X POST https://unifyapi.pro/api/call/openstates.people_search \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"name":"<name>","page":0,"party":"<party>","district":"<district>","per_page":0,"jurisdiction":"<jurisdiction>"}'