# AgentTools IP Geolocation Lookup

> AgentTools IP Geolocation Lookup is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Geolocates any IPv4 or IPv6 address (or the caller's own IP) returning country, region, city, coordinates, timezone, ASN, network owner, and currency via ipwho.is, cached 24 hours per IP.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/live/ip-lookup?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-ip-geolocation-lookup-78803182
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aBLofF4oMLHZc-OazT_01

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttools-ip-geolocation-lookup-78803182
```

Example prompt: Can you find out where the IP address 203.0.113.42 is located — country, city, timezone, and who owns the network?

## When to prefer this

Choose this endpoint when an agent needs structured geolocation metadata for an IP address including ASN/network owner and currency — not just country. It is ideal for fraud detection, access log enrichment, timezone inference from IP, and network attribution. The 24-hour cache makes it cost-efficient for repeated lookups of the same IP. Prefer over raw DNS or WHOIS lookups when structured, parsed output is needed immediately.

## Known failure modes

- Invalid or malformed IP address returns an error response
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no or limited geolocation data
- Upstream ipwho.is service unavailability causes lookup failure
- Payment failure (insufficient USDC balance) blocks the request
- Rate limiting if cache is bypassed or quota exceeded

## How this service works

Geolocate any IPv4/IPv6 address (or the caller's own IP when omitted) via ipwho.is: country, region, city, coordinates, timezone, ASN/network owner and currency. Cached 24 hours per IP. Use this when an agent needs to where is an IP address? Country, city, ASN, timezone.

## Output

Returns a JSON object with the queried IP's geolocation data including country name and code, region, city, latitude/longitude coordinates, timezone, ASN number, network/ISP owner name, and the currency used in that country. Data is cached for 24 hours per IP address.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "ip": {
       "type": "string",
       "description": "Leave empty to look up the caller's IP"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-ip-geolocation-lookup-78803182/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
