Googleapis Civicinfo
Google Civic Information API provides election, polling place, representative, and civic geography information.
- Base URL:
https://civicinfo.googleapis.com - Auth:
bearer(pass your key via theapiKeyinput)
Operations
civicinfo_divisions_search— GET /civicinfo/v2/divisions — Searches for political divisions by their natural name or OCD ID.civicinfo_elections_electionquery— GET /civicinfo/v2/elections — List of available elections to query.civicinfo_representatives_representativeinfobyad— GET /civicinfo/v2/representatives — Looks up political geography and representative information for a single addresscivicinfo_representatives_representativeinfobydi— GET /civicinfo/v2/representatives/{ocdId} — Looks up representative information for a single geographic division.civicinfo_elections_voterinfoquery— GET /civicinfo/v2/voterinfo — Looks up information relevant to a voter based on the voter's registered address
Inputs
apiKey— your googleapis-civicinfo API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: civicinfo_divisions_search
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: civicinfo_divisions_search, civicinfo_elections_electionquery, civicinfo_representatives_representativeinfobyad, civicinfo_representatives_representativeinfobydi, civicinfo_elections_voterinfoquery |
ocdId |
string | no | — | Path parameter ocdId (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |