HTTP request
GET https://api.wevoteusa.org/apis/v1/voterLocationRetrieveFromIP (Jump to "Try It Now")
Required Parameters
Parameter name | Value | Description |
api_key | string (from post, cookie, or get (in that order)) | The unique key provided to any organization using the WeVoteServer APIs |
ip_address | string | The IP Address of the browser |
Response
{ "status": string, "success": boolean, "voter_location_found": boolean, "voter_location": string (88 characters long), "ip_address": string, }
Try It Now: API Variables
Retrieve a printable string with the location of the voter, based on the browser's IP address.
Ex: 'Oakland, CA 94602'
Requisite: set up GeoIP