# IP Lookup

> IP Lookup is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Looks up network metadata for an IPv4 or IPv6 address, returning CIDR range, country, owning organisation, ASN, abuse contact, and reverse DNS.

## Facts

- Endpoint: GET https://api.gadgethumans.com/ip-geo?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-lookup-5ac97007
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YtChRrwhQ9HfEWSMC_raJ

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-lookup-5ac97007
```

Example prompt: Can you look up 203.0.113.42 and tell me what country it's in, who owns the network, their abuse contact, and the ASN?

## When to prefer this

Use this endpoint when you need comprehensive network-layer metadata about a specific IP address — particularly when you need ASN, CIDR range, abuse contacts, and reverse DNS together in one call. Prefer it over a simple geolocation API when you need ownership and routing information rather than just city/country coordinates.

## Known failure modes

- Invalid or malformed IP address returns an error
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no organisation data
- Very new IP allocations may not yet be in the WHOIS database
- Reverse DNS may be absent if no PTR record is configured
- Rate limiting or payment failure returns a 402 or 429 error

## How this service works

IP address lookup: allocated network, CIDR range, country, owning organisation, abuse contact, ASN and reverse DNS.

## Output

Returns structured data about the IP address including: allocated network name, CIDR range, country of registration, owning organisation, ASN number, abuse contact email/details, and reverse DNS hostname.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4 or IPv6 address"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## More

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