Developers

The IP-Info.app API

Resolve any IPv4 or IPv6 address into location, timezone, ASN and network ownership from your own code or an AI agent, one GET request per address.

  • REST + JSON
  • x-api-key
  • MCP server
  • IPv4 + IPv6
APIhttps://api.ip-info.app

Quick start

  1. Sign up and open your workspace.
  2. Under API keys, create a key and copy it: it is shown once.
  3. Send it in the x-api-key header with the address to look up, as below. Leave out ip to look up the caller.
Look up an IP addressbash
curl --get "https://api.ip-info.app/ip/details" \
  --data-urlencode "ip=8.8.8.8" \
  -H "x-api-key: $API_KEY"
Look up from TypeScriptts
const response = await fetch('https://api.ip-info.app/ip/details?ip=' + encodeURIComponent('8.8.8.8'), {
  headers: { 'x-api-key': process.env.API_KEY ?? '' },
});
const details = await response.json();
if (details.countryCode !== details.registeredCountryCode) {
  // observed and registered country differ: one signal for review
}

What a lookup answers

One GET request per address, 1 credit each. Fields the data does not hold for an address are left out.

FieldAnswers
ipThe address looked up.
continentCode, countryName, countryCodeWhere the address is used.
registeredCountryCodeThe country the address block is registered to, which can differ from where it is used.
cityCity name, region, latitude, longitude, accuracyRadius (km) and timeZone.
asn, asnOrganizationThe autonomous system number and the organization that owns it.

Existing integrations keep working.

The previous path (/v1-get-ip-details) answers with the same JSON as before, with the same API keys.

Authentication

  • Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace and spends that workspace’s credits.
  • Keep keys on your server, never in browser code, analytics events or shared spreadsheets.
  • Revoke a key under API keys and it stops working at once.

Errors, credits and limits

  • Errors answer { "error": "CODE", "message": "…" } with the HTTP status that fits.
  • Each lookup spends 1 credit; 402 INSUFFICIENT_CREDITS means the workspace has none left (top up on the pricing page, or turn on auto top-up).
  • Over the rate limit you get 429 with Retry-After in seconds; back off and retry after that time.

MCP server for AI agents

Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.ip-info.app/mcp with your API key, and your agent looks up addresses with the same credits and answers as the REST API.

Claude Codebash
claude mcp add --transport http ip-info-app https://mcp.ip-info.app/mcp --header "x-api-key: <your-api-key>"

Adds the server to the current project; add --scope user to use it in every project.

API reference

Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.