< back to index

HTTP request

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

Required Parameters

Parameter name Value Description
api_key string (from post, cookie, or get (in that order)) The unique key provided to any organization using the WeVoteServer APIs
voter_device_id string An 88 character unique identifier linked to a voter record on the server

Response

NOTE: Success returns a single entry in a json list, so you need to loop through that list to get to the single election entry.

SUCCESS:
[{
  "google_civic_election_id": integer,
  "election_name": string,
  "election_day_text": string,
  "get_election_state": string,
  "ocd_division_id": string,
  "include_in_list_for_voters": boolean,
}]
FAILURE:
{
  "status": string,
  "voter_device_id": string (88 characters long),
}

Try It Now: API Variables

Export the raw elections data stored in the database to JSON format. This API call does not reach out to the Google Civic API, but simply returns data that was retrieved earlier.

Parameter name Value  
voter_device_id:

(opens in new window)