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.
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
}IP address to geolocate, defaults to client IP address
"1.2.3.4"
Successful Response
Was this page helpful?