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
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? Screenshot 2024-01-30 at 11.25.04 PM.png

Google Civic Information API

unread,
Feb 1, 2024, 1:36:53 PMFeb 1
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
to Google Civic Information API
I see, thank you!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages