UnifyAPI
← Back to catalog

openstates.people_search

mock data$0.001 / call

Search 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).

Government & Legalprovider: Openstates#openstates#government

Input schema

name

Search legislators by full or partial name (e.g. "Pelosi", "Nancy Pelosi"). Case-insensitive substring match.

string
page

Page number for pagination (default 1).

integer
party

Filter by political party affiliation (e.g. "Democratic", "Republican", "Independent").

string
district

Filter by legislative district number or name (e.g. "12", "Senate District 5").

string
per_page

Number of results per page (1–50, default 20).

integer
jurisdiction

State or jurisdiction abbreviation to filter legislators (e.g. "ca" for California, "tx" for Texas, "ny" for New York). Required unless name is provided.

string

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>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.