---
title: "Look up the caller's IP"
method: GET
path: "/"
---

# Look up the caller's IP

`GET /`

Resolves the country of the caller's IP address. When behind Cloudflare, the CF-IPCountry header is preferred.

## Query parameters

- `fields` string

## Response `200`

Successful lookup

- LookupResult
  - `ip` string, required
  - `country` string, nullable, required
  - `city` string, nullable
  - `continent` string, nullable
  - `subdivision` string, nullable
  - `postal` string, nullable
  - `location` object, nullable
    - `latitude` number
    - `longitude` number
    - `accuracy_radius` integer
    - `time_zone` string, nullable
  - `asn` object, nullable
    - `number` integer
    - `organization` string

## Other responses

- `404` — IP could not be resolved

## Changes

- **2026-04-04** `27f9cc100260` — 6 breaking
  - removed the enum value `asn` from the `query` request parameter `fields`
  - removed the enum value `city` from the `query` request parameter `fields`
  - removed the enum value `continent` from the `query` request parameter `fields`
  - removed the enum value `location` from the `query` request parameter `fields`
  - …2 more
- **2026-02-23** `b0b34fdebff1` — 1 breaking, 6 info
  - the `query` request parameter `fields` was restricted to a list of enum values
  - added the new enum value `asn` to the `query` request parameter `fields`
  - added the new enum value `city` to the `query` request parameter `fields`
  - added the new enum value `continent` to the `query` request parameter `fields`
  - …3 more

[Change history](https://skmtc.dev/lineofflight/apis/country/changes/get.md)

---

[API](https://skmtc.dev/lineofflight/apis/country.md) · [All operations](https://skmtc.dev/lineofflight/apis/country/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lineofflight/country/revisions/b2ef1b167513/schema)
