# AmanChain IP Geolocation

> AmanChain IP Geolocation is a paid API for AI agents from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai, paid per call via x402, $0.001866/call, status unknown (last checked 2026-09-16).

Resolves an IP address to its country, city, ASN, and geographic coordinates via a pay-per-call x402 micropayment settled in USDC on Base.

## Facts

- Endpoint: POST https://preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/api/x402/aman-geo-ip
- Price: $0.001866/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-ip-geolocation-0332df8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p-pmjtICimNkVwloDPXGU

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 amanchain-ip-geolocation-0332df8a -d '<json body>'
```

Example prompt: Can you look up where the IP address 203.0.113.42 is located — I need the country, city, ASN, and coordinates?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call IP geolocation lookup with no API key or account setup, especially in agent workflows that already use x402/USDC micropayments on Base. It is ideal for single IP lookups where you need country, city, ASN, and coordinates in one call without a subscription commitment.

## 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 geolocation data
- Payment failure or insufficient USDC balance blocks the call
- Unrecognized serviceId value causes request rejection
- Network timeout if the AmanChain node is temporarily unreachable

## How this service works

IP Geolocation: IP geolocation: country, city, ASN, coordinates Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-geo-ip","request":"<input>"}. No account, no API key.

## Output

Returns the geographic location of the queried IP address, including country name and code, city, autonomous system number (ASN), and latitude/longitude coordinates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "example": {
      "ok": true
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-ip-geolocation-0332df8a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai](https://www.zero.xyz/host/preview-chat-c6089071-758a-449d-b4a7-6fa19ebc955c.space-z.ai/llms.txt)
