Skip to content
IP Checker

How can an AI agent check its outbound IP?

Autonomous agents, scripts and workers can check their public IP, country, ASN and network type with a single HTTP call. Examples for curl, Python and tool calling.

Why agents need this

Agents that browse, scrape or call region-restricted APIs need to know which network they are actually exiting from. It confirms that a proxy is applied, that a worker runs in the expected country, and gives support agents hard facts when a customer reports a connectivity problem.

Plain text: just the IP

The fastest check returns only the address, with nothing to parse.

bash
curl https://ipcheck.trytorchlabs.com/ip

Compact JSON for tool calls

format=agent returns a small object with stable keys, designed to be cheap in tokens and trivial to parse deterministically.

bash
curl "https://ipcheck.trytorchlabs.com/api/v1/me?format=agent"

Only the fields you need

Request an explicit list of fields to keep responses minimal.

bash
curl "https://ipcheck.trytorchlabs.com/api/v1/me?fields=ip,country,asn,isp,network_type"

Discovery

Agents can read https://ipcheck.trytorchlabs.com/llms.txt for a plain-language summary of every endpoint, or import https://ipcheck.trytorchlabs.com/openapi.json directly as a tool definition.