GET
/
geolocate
Get Caller Location
curl --request GET \
  --url https://trace.wandb.ai/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
}

Query Parameters

ip
string | null

IP address to geolocate, defaults to client IP address

Response

Successful Response

ip
string
required

Resolved IP address, useful for debugging

location
object | null

Information about the location of the IP address, None if could not be determined

allowed
boolean
default:false

Whether the IP address is allowed to be used for inference.