Get Legislators by Location
openstates_get_legislators_by_locationFind every legislator representing a geographic coordinate — both tiers. Pass latitude and longitude to get the state senators and representatives for that location (and potentially governor/executive officials), plus the coordinate's two US Senators and its US Representative. jurisdiction.classification separates the tiers: "state" is a state legislature, "country" is the US Congress. current_role.org_classification does not — it is "upper"/"lower" for a US Senator exactly as for a state senator. Useful for constituent-to-representative matching, address-based policy research, and electoral boundary analysis. This server does not geocode addresses — the caller must provide decimal-degree coordinates. Use include=offices to get contact information alongside the legislator list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Related data to inline. "offices" includes phone, fax, and address. "links" includes website and social links. "other_names" includes alternate/former names, "other_identifiers" cross-system IDs, and "sources" the provenance URLs behind the record. | |
| latitude | Yes | Latitude in decimal degrees (e.g., 47.6062 for Seattle, WA). | |
| longitude | Yes | Longitude in decimal degrees (e.g., -122.3321 for Seattle, WA). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of legislators returned for this coordinate. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Present when no legislators were found — explains why (e.g., location outside US boundaries or unsupported territory). | |
| stateCount | No | Results serving a state legislature (jurisdiction.classification = "state"). | |
| legislators | No | Legislators representing the given coordinate. | |
| federalCount | No | Results serving the US Congress (jurisdiction.classification = "country") — the coordinate's two US Senators and its US Representative. |