# CertainData IP Geolocation

> CertainData IP Geolocation is a paid API for AI agents from api.certaindata.ai, paid per call via x402, $0.007/call, status unknown (last checked 2026-09-14).

Returns country, city, subdivisions, network (ASN), and approximate geographic coordinates for a given IPv4 or IPv6 address.

## Facts

- Endpoint: GET https://api.certaindata.ai/ca054d66abad4d6ea80ba43013b61743-cd/ip-geolocation/:address
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/certaindata-ip-geolocation-2cdd5027
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MRTIEbgTsnqMj2GL3sdY1

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 certaindata-ip-geolocation-2cdd5027
```

Example prompt: Can you look up the country, city, and network details for the IP address 203.0.113.47?

## When to prefer this

Use this endpoint when you need fast, per-IP geolocation enrichment including ASN/network data, city-level resolution, and subdivision details for both IPv4 and IPv6 addresses. Prefer this over free or unauthenticated alternatives when reliability and structured output with network context are required. Well-suited for fraud detection, analytics pipelines, or access control logic where you need to pay per lookup at low cost.

## Known failure modes

- Invalid IP address format returns a 400 or error response
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no location data
- Payment failure or missing x402 payment header returns 402 Payment Required
- Unknown or unroutable IP addresses may return partial or empty location fields
- Rate limiting may occur for high-frequency requests

## How this service works

Country, city, subdivisions, network (ASN), and approximate location for an IPv4 or IPv6 address.

## Output

Returns structured geolocation data for the queried IP address including country name and ISO codes, city, administrative subdivisions, ASN and network name, and approximate geographic 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "IPv4 or IPv6 address."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/certaindata-ip-geolocation-2cdd5027/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.certaindata.ai](https://www.zero.xyz/host/api.certaindata.ai/llms.txt)
