# AmanChain IP Geolocation

> AmanChain IP Geolocation is a paid API for AI agents from amanchain-relay.gitajhd.workers.dev, paid per call via x402, $0.001866/call, status unknown (last checked 2026-09-14).

Looks up geolocation data (country, city, ASN, coordinates) for a given IP address, paid per call via x402 USDC micropayment.

## Facts

- Endpoint: POST https://amanchain-relay.gitajhd.workers.dev/api/x402/aman-geo-ip
- Price: $0.001866/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-ip-geolocation-21830c51
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PUss8douBctuAFwIqmE2y

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-21830c51 -d '<json body>'
```

Example prompt: What country, city, and ISP are associated with the IP address 203.0.113.42?

## When to prefer this

Choose this endpoint when you need a pay-per-call IP geolocation lookup with no API key or account required, settled in USDC on Base via x402 micropayments. Ideal for agent workflows that need on-demand, accountless geolocation without managing subscriptions or rate limits.

## Known failure modes

- Invalid or malformed IP address input returns an error
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no geolocation data
- Payment failure via x402 causes request rejection
- Unrecognized serviceId returns a service-not-found error
- Network timeout at the AmanChain relay worker

## How this service works

IP geolocation API — country, city, ASN, organization and coordinates for any IPv4 or IPv6 address. Deterministic on-chain execution by the AmanChain node — live consensus state, real blocks, pools and balances. Pay per call via x402 (USDC on Base), no account, no API key. POST JSON {"serviceId":"aman-geo-ip","request":"<input>"}.

## Output

Returns geolocation data for the queried IP address, including country, city, ASN (autonomous system number), and geographic coordinates (latitude/longitude).

## 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
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-ip-geolocation-21830c51/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from amanchain-relay.gitajhd.workers.dev](https://www.zero.xyz/host/amanchain-relay.gitajhd.workers.dev/llms.txt)
