---
title: "Get Caller Location"
method: GET
path: "/geolocate"
tags: ["Service"]
---

# Get Caller Location

`GET /geolocate`

## Request

- Base URL: `https://trace.wandb.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://trace.wandb.ai/geolocate`
- Auth: none declared

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.

## Query parameters

- `ip` string, nullable: IP address to geolocate, defaults to client IP address

## Response `200`

Successful Response

- GeolocationRes
  - `ip` string, required: Resolved IP address, useful for debugging
  - `location` Geolocation
    - `file_index` integer, required: row in CSV file
    - `range_start_int` integer, required: Start of IP range as integer
    - `range_end_int` integer, required: End of IP range as integer
    - `range_start_ip` string, required: Start of IP range in dotted decimal notation
    - `range_end_ip` string, required: End of IP range in dotted decimal notation
    - `country_code` string, required: 2-letter country code in ISO 3166-1 Alpha 2 format
    - `country_name` string, nullable: Country name, None if could not be determined
  - `allowed` boolean: Whether the IP address is allowed to be used for inference.

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-16** `dd89fadfe4e4`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-07** `d6e39f7c717d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/changes/geolocate/get.md)

---

[API](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api.md) - [All operations](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wandb/apis/weights-biases-weave-stainless-api/revisions/f7643c49bf2e?raw)
