# IP Network Lookup

> IP Network Lookup is a paid API for AI agents from agentpay.agentpay-apis.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns the network owner, IP range, country, and reverse DNS for a given IPv4 or IPv6 address.

## Facts

- Endpoint: GET https://agentpay.agentpay-apis.workers.dev/lookup/v1/ip?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-network-lookup-87ec8fd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1I8FfWw3VoyPflMSvJzsP

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 ip-network-lookup-87ec8fd4
```

Example prompt: Who owns the IP address 198.51.100.42? I need to know the network owner, country, IP range it belongs to, and its reverse DNS hostname.

## When to prefer this

Use this endpoint when you need a single call to get all basic IP intelligence — owner, range, country, and rDNS — without having to separately query WHOIS, RDAP, and DNS PTR records. It is ideal for log enrichment, security investigations, and bot/fraud detection pipelines where speed and simplicity matter more than exhaustive ASN-level data.

## Known failure modes

- Invalid or malformed IP address returns an error or empty response
- Private/reserved IP addresses (e.g. 192.168.x.x, 10.x.x.x) may return no meaningful owner data
- IP not found in WHOIS/routing databases returns null or minimal fields
- IPv6 addresses may have incomplete reverse DNS entries
- Payment failure or x402 auth issue blocks the request entirely

## How this service works

Web extraction, domain lookups and document tools for AI agents. Pay per call in USDC via x402 on Base or Algorand.

## Output

Returns the network owner (organization/ISP name), the IP address range or CIDR block the IP belongs to, the country associated with the IP, and the reverse DNS (PTR) record for the given 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4 or IPv6 address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-network-lookup-87ec8fd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpay.agentpay-apis.workers.dev](https://www.zero.xyz/host/agentpay.agentpay-apis.workers.dev/llms.txt)
