Is election id now required for voterInfo endpoint?
53 views
Skip to first unread message
Serge
unread,
Jan 30, 2024, 11:36:24 PMJan 30
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Civic Information API
It appears when querying voterInfo endpoint, it returns a 400 "election unknown" response unless electionId is also provided, though it's listed as optional in the api.
It used to work before, is there a reason for this change?
Google Civic Information API
unread,
Feb 1, 2024, 1:36:53 PMFeb 1
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Civic Information API
Hi, what you're seeing is the expected result: Given that the address you entered does not have a live election right now, not including an election id would result in the 400 election unknown error.
Once an election is taken live, you will be able to see results returned even without specifying an election id. Hope this helps!
Thank you,
Carolyn on behalf of the Google Civic Info API team
Serge
unread,
Feb 1, 2024, 7:11:47 PMFeb 1
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message