---
title: "Echo the caller IP"
method: GET
path: "/v1/echo-ip"
tags: ["public"]
---

# Echo the caller IP

`GET /v1/echo-ip`

## Request

- Base URL: `https://api.portproof.org`
- URL: `https://api.portproof.org/v1/echo-ip`
- Auth: none required

The address the request came from, as the API sees it. `country` is present only when a Cloudflare edge in front of the API sets it (`TRUST_CF_IPCOUNTRY`); the API does no geolocation of its own, so a client-sent `CF-IPCountry` header is ignored.

## Response `200`

Default Response

- object
  - `ip` string, required
  - `family` 'v4' | 'v6', required
  - `ts` string, date-time, required
  - `country` string

---

[API](https://skmtc.dev/portproof/apis/portproof-api.md) · [All operations](https://skmtc.dev/portproof/apis/portproof-api/llms.txt) · [OpenAPI document](https://skmtc.dev/portproof/apis/portproof-api/revisions/4143916c0fac?raw)
