English
cURL
curl --request GET \ --url https://api.example.com/geolocate
{ "ip": "<string>", "location": { "file_index": 123, "range_start_int": 123, "range_end_int": 123, "range_start_ip": "<string>", "range_end_ip": "<string>", "country_code": "<string>", "country_name": "<string>" }, "allowed": false }
Lookup the geographic location of a user based on their IP address.
This API exists for debugging purposes and may not be available in the future.
IP address to geolocate, defaults to client IP address
"1.2.3.4"
Successful Response
Resolved IP address, useful for debugging
Information about the location of the IP address, None if could not be determined
Show child attributes
Whether the IP address is allowed to be used for inference.
Was this page helpful?