# IP ASN & Geolocation Lookup

> IP ASN & Geolocation Lookup is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Resolves any IPv4 or IPv6 address to its ASN number, ASN org, ISP, country, region, city, postal code, lat/lon, and timezone

## Facts

- Endpoint: POST https://x402.agentutility.ai/ip-asn
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ip-asn-geolocation-lookup-de0063b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SFBlNzGJeNNsXoSWpBP1A

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-asn-geolocation-lookup-de0063b7 -d '<json body>'
```

Example prompt: Can you look up the geolocation and ASN info for IP address 203.0.113.42 — I need the country, city, ISP, and ASN org.

## When to prefer this

Choose this endpoint when you need combined ASN + full geolocation data (city, region, ISP, lat/lon, timezone) in a single call for any IPv4 or IPv6 address, especially in agentic or automated workflows that require USDC micropayment settlement via x402 and MCP compatibility. Prefer this over raw ipapi.co/ip-api.com calls when you need a managed, rate-limit-abstracted, agent-native interface with automatic fallback between providers.

## Known failure modes

- Invalid or malformed IP address returns an error
- Private/reserved IP ranges (e.g. 10.x.x.x, 192.168.x.x) may return no geolocation data
- Rate limit exceeded on upstream providers (1k/day for ipapi.co, 45/min for ip-api.com) may cause failures
- IPv6 addresses may have incomplete geolocation data in some regions
- Network timeouts from upstream APIs

## How this service works

Looks up ASN and geolocation for any IPv4 or IPv6 address: ASN number, ASN org, ISP, country, region, city, postal, latitude/longitude, and timezone. Primary backend: ipapi.co (1k req/day free); fallback: ip-api.com (45 req/min free). Both are free public APIs with no auth. Use it as an IP-to-ASN, IP geolocation, IP-to-ISP lookup, WHOIS for IP, or cloud-provider attribution tool.

## Output

Returns a JSON object containing ASN number, ASN organization name, ISP name, country, region/state, city, postal code, latitude, longitude, and timezone for the queried 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "ip"
     ],
     "properties": {
      "ip": {
       "type": "string",
       "description": "IPv4 or IPv6 address."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ip": {
       "type": "string"
      },
      "asn": {
       "type": "integer"
      },
      "city": {
       "type": "string"
      },
      "postal": {
       "type": "string"
      },
      "region": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "asn_org": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "latitude": {
       "type": "number"
      },
      "timezone": {
       "type": "string"
      },
      "longitude": {
       "type": "number"
      },
      "country_code": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ip": "8.8.8.8",
  "asn": 15169,
  "city": "Mountain View",
  "postal": "94043",
  "region": "California",
  "source": "ipapi.co",
  "asn_org": "Google LLC",
  "country": "United States",
  "latitude": 37.4056,
  "timezone": "America/Los_Angeles",
  "longitude": -122.0775,
  "country_code": "US"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ip-asn-geolocation-lookup-de0063b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
