Elections: electionQuery
Stay organized with collections
Save and categorize content based on your preferences.
List of available elections to query.
Try it now.
Request
HTTP request
GET https://www.googleapis.com/civicinfo/v2/elections
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{
"kind": "civicinfo#electionsQueryResponse",
"elections": [
elections Resource
]
}
Property name |
Value |
Description |
Notes |
kind |
string |
Identifies what kind of resource this is. Value: the fixed string "civicinfo#electionsQueryResponse" . |
|
elections[] |
list |
A list of available elections |
|
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."],[[["\u003cp\u003eThe Elections Query request lets you see the list of elections currently available to query.\u003c/p\u003e\n"],["\u003cp\u003eIt's an HTTP GET request to the endpoint \u003ccode\u003ehttps://www.googleapis.com/civicinfo/v2/elections\u003c/code\u003e with no request body.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will contain a list of \u003ccode\u003eelections\u003c/code\u003e resources, providing details of each election.\u003c/p\u003e\n"]]],[],null,["# Elections: electionQuery\n\nList of available elections to query.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/civicinfo/v2/elections\n```\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"kind\": \"civicinfo#electionsQueryResponse\",\n \"elections\": [\n elections Resource\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|---------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | Identifies what kind of resource this is. Value: the fixed string `\"civicinfo#electionsQueryResponse\"`. | |\n| `elections[]` | `list` | A list of available elections | |\n\nTry it!\n-------"]]