Open States · GraphQL Specification

Open States GraphQL API

The Open States GraphQL API (v2) provides programmatic access to US state legislative data through a flexible GraphQL interface. The API exposes data covering all 50 states, Washington DC, and Puerto Rico, including bills, legislators, committees, jurisdictions, legislative sessions, and voting records. Queries support filtering by jurisdiction, session, chamber, subject, sponsor, and date, as well as geolocation-based legislator lookups using latitude and longitude coordinates.

Documentation Endpoint View on GitHub GovernmentLegislative DataCivic TechnologyState LegislatureBillsLegislatorsCommitteesOpen DataRESTGraphQLGraphQL

Overview

Open States GraphQL API is a GraphQL API specification published by Open States on the APIs.io network.

The Open States GraphQL API (v2) provides programmatic access to US state legislative data through a flexible GraphQL interface. The API exposes data covering all 50 states, Washington DC, and Puerto Rico, including bills, legislators, committees, jurisdictions, legislative sessions, and voting records. Queries support filtering by jurisdiction, session, chamber, subject, sponsor, and date, as well as geolocation-based legislator lookups using latitude and longitude coordinates.

The GraphQL endpoint is available at https://openstates.org/graphql/. documentation is published at https://docs.openstates.org/graphql/.

The specification includes 3 reference links.

Tagged areas include Government, Legislative Data, Civic Technology, State Legislature, and Bills.

Endpoint

https://openstates.org/graphql/

References

Related API Specs

Open States API v3 (OpenAPI)
Back to Open States · All GraphQL Specs · GitHub