AI-generated Key Takeaways
-
The Elections Query request lets you see the list of elections currently available to query.
-
It's an HTTP GET request to the endpoint
https://www.googleapis.com/civicinfo/v2/elections
with no request body. -
A successful response will contain a list of
elections
resources, providing details of each election.
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 |