Not able to pull VoterInfo

67 views
Skip to first unread message

Eric Rosenfeld

unread,
Feb 26, 2024, 5:46:28 PMFeb 26
to Google Civic Information API
Hello I am new to this API, I am trying to pull the VoterInfo, however my response is limited, and not displaying all of the ballot information for an election. 
(I've taken out my address for privacy). Would anyone be able to let me know why I am not seeing the full results as shown in the documenation?

this is my curl: https://civicinfo.googleapis.com/civicinfo/v2/voterinfo?address=California&electionId=8108&key=[YOUR_API_KEY]

{
  "election": {
    "id": "8108",
    "name": "California Presidential Primary",
    "electionDay": "2024-03-05",
    "ocdDivisionId": "ocd-division/country:us/state:ca"
  },
  "normalizedInput": {
    "line1": "",
    "city": "",
    "state": "CA",
    "zip": ""
  },
  "state": [
    {
      "name": "California",
      "electionAdministrationBody": {
        "name": "Secretary of State",
        "electionInfoUrl": "https://www.sos.ca.gov/elections/",
        "electionRegistrationUrl": "https://registertovote.ca.gov/?t=s",
        "electionRegistrationConfirmationUrl": "https://voterstatus.sos.ca.gov",
        "absenteeVotingInfoUrl": "https://elections.cdn.sos.ca.gov/vote-by-mail/replacement-application.pdf",
        "votingLocationFinderUrl": "https://voterstatus.sos.ca.gov",
        "ballotInfoUrl": "https://www.sos.ca.gov/elections/ballot-status/wheres-my-ballot/",
        "correspondenceAddress": {
          "line1": "1500 11th Street, 5th Floor",
          "city": "Sacramento",
          "state": "California",
          "zip": "95814"
        }
      },
      "sources": [
        {
          "name": "",
          "official": false
        }
      ]
    }
  ],
  "kind": "civicinfo#voterInfoResponse"
}

Google Civic Information API

unread,
Feb 26, 2024, 6:02:00 PMFeb 26
to Google Civic Information API
Hi! I'm not able to reproduce what you're seeing without knowing the address you're using, but here is a working example for the CA election that is returning the full results, I hope it helps!

https://developers.google.com/civic-information/docs/v2/elections/voterInfoQuery?apix=true&apix_params=%7B%22address%22%3A%22345%20Spear%20st%20San%20Francisco%20CA%20%22%2C%22electionId%22%3A8108%7D#try-it

Best,
Carolyn on behalf of Civic Info API team

Message has been deleted
Message has been deleted

Eric Rosenfeld

unread,
Feb 26, 2024, 7:59:44 PMFeb 26
to Google Civic Information API
Hello Carolyn, Do you happen to know why the candidates do not show in your request parameters? Is there a way I can retrieve the candidates for the electionId 8108

Regards,
Eric

Reply all
Reply to author
Forward
Message has been deleted
0 new messages