/elections_by_state

Election ballots and results (candidates running) by state

Given a state and an election date, a list of candidates, ballot measures and races will be returned along with district, office, and person information for the entire state.

Races with no official candidates are not returned.

If the election date is in the future, a list of candidates and ballot measures are returned who are on the ballot in the upcoming election. If the election date is in the past, a list of candidates and ballot measures will be returned who were on the ballot for that past election.

Results of the election will be returned if included in your API package. Including which candidates won/lost, vote totals, and which ballot measures were approved or defeated.

Required parameters: abbreviated state, election_date

Optional parameters:

  • collections=social,contact

  • office_level=Federal,State,Local

  • office_branch=Legislative,Executive,Judicial

  • district_type=Country,Congress,State,State Legislative (Upper),State Legislative (Lower),Judicial District,County,County subdivision,City-town,School District,State subdivision,Special district subdivision,Judicial district subdivision,Special District,City-town subdivision,School district subdivision

  • page={number}

Example for statewide results

Results for Wisconsin congressional offices on November 3rd, 2020...

chevron-rightExample callhashtag
https://api4.ballotpedia.org/data/elections_by_state?state=WI&election_date=2020-11-03&office_level=Federal
chevron-rightExample responsehashtag

Partisan primaries

circle-info

When a race is a partisan primary, multiple objects will exist in the races array for the respective political party primary. This is defined as stage_party. This applies to both the By Point and By State endpoints. Example below.

chevron-rightExample callhashtag
chevron-rightExample responsehashtag

Ranked-choice voting

circle-info

When a race utilizes Ranked Choice Voting, is_ranked_choice will be true. The ranked_choice_voting_rounds array will be populated with the candidate's round results. The cand_status data point reflects their result at the end of the RCV voting. The votes_for_cand reflects the total number of votes throughout the rounds. This applies to both the By Point and By State endpoints in which the race uitilizes RCV. Example below.

chevron-rightExample responsehashtag

Last updated