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 bills API (OpenAPI) Open States committees API (OpenAPI) Open States events API (OpenAPI) Open States jurisdictions API (OpenAPI) Open States Metrics API (OpenAPI) Open States people API (OpenAPI)
Back to Open States · All GraphQL Specs · GitHub

Work with this as data

Every GraphQL schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for graphql

4 MCP tools reach this
  • find_graphqlBrowse and filter every GraphQL schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This GraphQL schema
curl "https://apis.io/api/v1/graphql/openstates-graphql"
All graphql
curl "https://apis.io/api/v1/graphql?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.