This API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.
Resource types
Elections
For Elections Resource details, see the resource representation page.
Method | HTTP request | Description |
---|---|---|
URIs relative to https://www.googleapis.com/civicinfo/v2, unless otherwise noted | ||
electionQuery |
GET /elections
|
List of available elections to query. |
voterInfoQuery |
GET /voterinfo
|
Looks up information relevant to a voter based on the voter's registered address.
Required query parameters:
address |
Representatives
For Representatives Resource details, see the resource representation page.
Method | HTTP request | Description |
---|---|---|
URIs relative to https://www.googleapis.com/civicinfo/v2, unless otherwise noted | ||
representativeInfoByAddress |
GET /representatives
|
Looks up political geography and representative information for a single address. |
representativeInfoByDivision |
GET /representatives/ocdId
|
Looks up representative information for a single geographic division. |
Divisions
For Divisions Resource details, see the resource representation page.
Method | HTTP request | Description |
---|---|---|
URIs relative to https://www.googleapis.com/civicinfo/v2, unless otherwise noted | ||
search |
GET /divisions
|
Searches for political divisions by their natural name or OCD ID. |