Elections
Stay organized with collections
Save and categorize content based on your preferences.
A collection of information about elections and voter information.
For a list of methods for this resource, see the end of this page.
Resource representations
Information about the election that was queried.
{
"id": long,
"name": string,
"electionDay": string,
"ocdDivisionId": string
}
Property name |
Value |
Description |
Notes |
electionDay |
string |
Day of the election in YYYY-MM-DD format. |
|
id |
long |
The unique ID of this election. |
|
name |
string |
A displayable name for the election. |
|
ocdDivisionId |
string |
The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us). |
|
Methods
- electionQuery
- List of available elections to query.
- voterInfoQuery
- Looks up information relevant to a voter based on the voter's registered address.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["This resource provides information about elections, including the election's unique ID, name, date, and political division."],["Users can access details about specific elections by querying with available methods."],["The resource also offers voter information based on registered address using the voterInfoQuery method."],["Representations of the election data are provided in JSON format for easy integration."]]],[]]