# PapaCasper IP Geolocation & ASN Lookup

> PapaCasper IP Geolocation & ASN Lookup is a paid API for AI agents from papacasper.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Resolves a hostname or IPv4 address to its geographic location and Autonomous System Number (ASN) details

## Facts

- Endpoint: POST https://papacasper.com/mcp/pay/ip_geolocation_asn_lookup
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/papacasper-ip-geolocation-asn-lookup-da1aafc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b_BeUi9ycFa0EsOmKyBew

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

Example prompt: Can you look up the IP geolocation and ASN info for the hostname api.example.com — I want to know what country it's in and which network provider owns it?

## When to prefer this

Use this endpoint when you need quick, pay-per-use IP geolocation and ASN resolution without managing API keys for MaxMind or ip-api.com. Ideal for agents that need on-demand network enrichment at very low cost ($0.0003/call) via x402 micropayment, with no subscription required.

## Known failure modes

- Invalid or unresolvable hostname returns an error or empty result
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no geolocation data
- Hostnames that don't resolve in DNS will fail lookup
- Payment failure (HTTP 402) if USDC balance is insufficient

## How this service works

A hosted MCP server exposing utility tools any AI agent can call over HTTP — page-to-markdown, SEO audits, robots/sitemap checks, and more.

## Output

Returns a JSON object containing the resolved IP's geographic information (country, region, city) and ASN details (ASN number, organization/ISP name), given a hostname or raw IPv4 address as input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "host"
 ],
 "properties": {
  "host": {
   "type": "string",
   "description": "Hostname or bare IPv4 address to look up"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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