< back to index

HTTP request

GET https://api.wevoteusa.org/apis/v1/measureListForUpcomingElectionsRetrieve (Jump to "Try It Now")

Required Parameters

Parameter name Value Description
google_civic_election_id_list[] integerlist List of election ids we care about.

Response

{
  "status": string,
  "success": boolean,
  "google_civic_election_id_list": list
  [
  integer,
  ],
  "measure_list": list
   [
     "ballot_item_display_name": string,
     "ballot_item_website": string,
     "candidate_contact_form_url": string,
     "candidate_we_vote_id": string,
     "alternate_names": list,
     [
     "String here",
     ],
     "google_civic_election_id": string,
     "office_we_vote_id": string,
     "measure_we_vote_id": string,
   ],
}

Response Status Codes

Code Description
VALID_OFFICE_ID_AND_OFFICE_WE_VOTE_ID_MISSING A valid internal office_id parameter was not included, nor was a office_we_vote_id. Cannot proceed.
CANDIDATES_RETRIEVED Candidates were returned for these elections.
NO_CANDIDATES_RETRIEVED There are no candidates stored for these elections.

Try It Now: API Variables

Retrieve all of the measures in upcoming elections. This shares the same response package format with candidateListForUpcomingElectionsRetrieve.

Parameter name Value  
google_civic_election_id_list[]:

(opens in new window)