# AI Rook IP Lookup

> AI Rook IP Lookup is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Looks up geolocation, ASN, organization, VPN, and proxy status for a given IPv4 or IPv6 address (or the caller's own IP).

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/ip-lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-ip-lookup-ff170109
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tHBFv5FjNbf7Wa3afI5MO

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 ai-rook-ip-lookup-ff170109
```

Example prompt: Can you look up the IP address 8.8.8.8 and tell me what country and organization it belongs to, and whether it's a VPN or proxy?

## When to prefer this

Use this endpoint when you need pay-per-call IP geolocation with VPN/proxy detection and no API key signup, paying $0.002 USDC via x402 on Base mainnet. Prefer it for agent-native workflows where micropayments are acceptable and anonymity/proxy detection is required alongside basic geo data.

## Known failure modes

- Invalid IP address format returns an error
- IP not found in database returns empty or partial result
- Caller IP detection may fail in certain proxy/NAT environments
- Payment failure (insufficient USDC balance) returns HTTP 402

## How this service works

IP geolocation, ASN, and proxy/VPN detection. Pass ?ip=x.x.x.x or omit for caller IP.

## Output

Returns a JSON object with the IP address, ASN (e.g. AS15169), organization name (e.g. Google LLC), city, country code, and boolean flags indicating whether the IP is a VPN or proxy.

## 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",
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4 or IPv6 address to look up (optional, defaults to caller IP)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "8.8.8.8",
  "asn": "AS15169",
  "org": "Google LLC",
  "vpn": false,
  "city": "Mountain View",
  "proxy": false,
  "country": "US"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-ip-lookup-ff170109/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
