Using Voterinfoquery

129 views
Skip to first unread message

KYP, LLC

unread,
Mar 16, 2022, 8:12:36 PM3/16/22
to Google Civic Information API
Hi I am testing the voterinfoquery and when I test addresses I get blank results in the google civic api screen:

{
  "normalizedInput": {
    "line1": "40 East 55th Street",
    "city": "Brooklyn",
    "state": "NY",
    "zip": "11203"
  },
  "kind": "civicinfo#voterInfoResponse"
}

How do we get the results for that address to appear?

Sudipta Chatterjee

unread,
Mar 17, 2022, 1:02:12 AM3/17/22
to google-civ...@googlegroups.com
Hi - I tried that same address in a freeform string and I'm able to get the desired result (for the test election ID 2000):

curl "https://www.googleapis.com/civicinfo/v2/voterinfo?key=<YOUR_API_KEY>&address=40%20E%2055th%20St%20Brooklyn%20NY%&electionId=2000"

Maybe you're framing the address incorrectly?

- Sudipta
                                                                                                  

  Sudipta Chatterjee

  agent...@google.com

  Technical Solutions Consultant

  gTech Users and Products, GBO

  Normal is boring




--
You received this message because you are subscribed to the Google Groups "Google Civic Information API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-civicinfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-civicinfo-api/09e2894e-d8b9-4c90-a6ae-a4e96f1ca57bn%40googlegroups.com.

KYP, LLC

unread,
Mar 17, 2022, 9:02:29 PM3/17/22
to Google Civic Information API
Two Questions: 
  • How are you pulling the election IDs? I try to go the website provided and I keep getting a 404 error. 
  • Since that was a test election ID, what is a election ID that is in production I can use to test if the address returns

Mekesia Brown

unread,
Oct 12, 2022, 3:58:14 PM10/12/22
to Google Civic Information API
Like Sudipta, I also got results using the electionID. Even with just the state (using a PHP curl request):
Similar to the GGroup post here, on voterInfoQuery. Not liking the fact that things work with a test id but... Guess that's better than nothing?! :/

Mekesia

Robert Guttersohn

unread,
Oct 12, 2022, 4:31:58 PM10/12/22
to Google Civic Information API
The New York State election ballot info is not ready for the midterm election. You have to use VIP test election id of 2000 to essentially setup a prototype. When the ballot info is added (I think October 25th is when they VIP is aiming to have NY State info up), you can just swap out the election ID.
Reply all
Reply to author
Forward
0 new messages