# 24K Labs IP Geolocation

> 24K Labs IP Geolocation is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Geolocates an IP address and returns country-level location data

## Facts

- Endpoint: POST https://api.24klabs.ai/api/ip-geolocate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-ip-geolocation-62c1a519
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fao6MtmYPGrsSTU2BYb5v

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 24k-labs-ip-geolocation-62c1a519 -d '<json body>'
```

Example prompt: Can you geolocate the IP address 203.0.113.42 and tell me which country it's from?

## When to prefer this

Choose this endpoint when you need a fast, pay-per-call IP-to-country lookup without a subscription, especially within an x402-compatible agent workflow. It is ideal for lightweight geolocation needs where only country-level data is required and cost-per-query matters.

## 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 not resolve to a country
- IPv6 addresses may not be supported or may return incomplete data
- Rate limiting or payment failure returns a 402 or 429 error
- Unroutable or bogon IPs may return null or empty country field

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON object containing the resolved country name for the queried IP address, e.g. {"country": "United States"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ip": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "country": "United States"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-ip-geolocation-62c1a519/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
