# AmanChain IP Geolocation

> AmanChain IP Geolocation is a paid API for AI agents from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai, paid per call via x402, $0.001866/call, status unknown (last checked 2026-09-15).

Looks up the geographic location and network details (country, city, ASN, coordinates) for any IP address, paid per call via x402 in USDC on Base.

## Facts

- Endpoint: POST https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-geo-ip
- Price: $0.001866/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-ip-geolocation-0ce74697
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cwMrRtPZjMYBG27ZnIc7B

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-0ce74697 -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 using x402 micropayments on Base. Prefer it over subscription-based geolocation APIs when usage is sporadic and cost-per-call at $0.0019 is acceptable. Ideal for fraud detection, audience enrichment, or security log analysis within AmanChain-native pipelines.

## Known failure modes

- Invalid or malformed IP address returns an error
- Private or reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no location data
- Payment failure via x402 results in rejected request
- Unrecognized IP with no database entry may return partial or null fields
- Service unavailability on AmanChain node returns a timeout or node error

## 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 geographic and network details for the queried IP address, including country, city, ASN (Autonomous System Number), and latitude/longitude coordinates.

## 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": {
     "type": "object",
     "properties": {
      "request": {
       "type": "string",
       "description": "service input (see body example)"
      },
      "serviceId": {
       "type": "string",
       "description": "the service id, \"aman-geo-ip\""
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-ip-geolocation-0ce74697/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai](https://www.zero.xyz/host/preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/llms.txt)
