Ballot measures endpoints

Ballotpedia offers a ballot measures-only package, which includes access to the following two endpoints. Access requires an API key passed via the x-api-key request header.

/data/election_dates/ballot_measures

Returns all states and dates that have ballot measures for a given year. Use this to discover which election dates have ballot measure data before querying for details.

Parameter
Type
Required?
Description

year

string

Yes

Four-digit year (e.g. 2024)

state

string

No

Two-letter state abbreviation to filter results (e.g. CA)

chevron-rightExample callhashtag
  GET /data/election_dates/ballot_measures?year=2024&state=CA
  x-api-key: YOUR_API_KEY
chevron-rightExample responsehashtag
{
  "success": true,
  "data": [
    { "state": "CA", "date": "2024-03-05" },
    { "state": "CA", "date": "2024-11-05" }
  ],
  "message": null
}

/data/ballot_measures

Returns ballot measures grouped by district for a given state and election date.

Parameter
Type
Required?
Description

state

string

Yes

Two-letter state abbreviation to filter results (e.g. CA)

election_date

string

Yes

Election date in YYYY-MM-DD format

district_type

string

No

Comma-separated list of district types to filter by (e.g. State,County)

chevron-rightExample callhashtag
chevron-rightExample responsehashtag

Last updated