Search State Legislators
openstates.legislature.people_searchSearch current US state legislators by jurisdiction, name, party, or district to retrieve profiles including party affiliation, chamber role, district, and image.
Instructions
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
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Search legislators by full or partial name (e.g. "Pelosi", "Nancy Pelosi"). Case-insensitive substring match. | |
| page | No | Page number for pagination (default 1). | |
| party | No | Filter by political party affiliation (e.g. "Democratic", "Republican", "Independent"). | |
| district | No | Filter by legislative district number or name (e.g. "12", "Senate District 5"). | |
| per_page | No | Number of results per page (1–50, default 20). | |
| jurisdiction | No | State or jurisdiction abbreviation to filter legislators (e.g. "ca" for California, "tx" for Texas, "ny" for New York). Required unless name is provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |