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
https://api.ip-info.appQuick start
- Sign up and open your workspace.
- Under API keys, create a key and copy it: it is shown once.
- Send it in the x-api-key header with the address to look up, as below. Leave out ip to look up the caller.
curl --get "https://api.ip-info.app/ip/details" \
--data-urlencode "ip=8.8.8.8" \
-H "x-api-key: $API_KEY"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.
| Field | Answers |
|---|---|
ip | The address looked up. |
continentCode, countryName, countryCode | Where the address is used. |
registeredCountryCode | The country the address block is registered to, which can differ from where it is used. |
city | City name, region, latitude, longitude, accuracyRadius (km) and timeZone. |
asn, asnOrganization | The 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_CREDITSmeans 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 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.
{
"mcpServers": {
"ip-info-app": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.ip-info.app/mcp",
"--header",
"x-api-key:<your-api-key>"
]
}
}
}claude_desktop_config.json: ~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows. Restart Claude Desktop after saving.
{
"mcpServers": {
"ip-info-app": {
"url": "https://mcp.ip-info.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project.
{
"servers": {
"ip-info-app": {
"type": "http",
"url": "https://mcp.ip-info.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}.vscode/mcp.json in the workspace; start the server from the MCP view or Copilot Chat in Agent mode.
{
"mcpServers": {
"ip-info-app": {
"serverUrl": "https://mcp.ip-info.app/mcp",
"headers": {
"x-api-key": "<your-api-key>"
}
}
}
}~/.codeium/windsurf/mcp_config.json; refresh the MCP servers list after saving.
curl https://mcp.ip-info.app/mcp \
-H "x-api-key: <your-api-key>" \
-H "content-type: application/json" \
-H "accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'Every request is a JSON-RPC 2.0 POST; send tools/list, then tools/call with {"name": "ip_get_details", "arguments": {"ip": "8.8.8.8"}} the same way.
API reference
Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.