# IP Geolocation Lookup (24K Labs)

> IP Geolocation Lookup (24K Labs) 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-15).

Returns country, city, region, ISP/org, latitude, and longitude for a given IPv4 or IPv6 address using the ipwho.is data source, with no API key required.

## Facts

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

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

Example prompt: Can you look up the geolocation for the IP address 203.0.113.42 and tell me what country, city, region, and ISP it belongs to?

## When to prefer this

Choose this endpoint when you need a keyless, pay-per-call IP geolocation lookup with no account registration, suitable for one-off enrichment or low-volume agent workflows. It is ideal for agents operating in x402-enabled environments where micropayment-based access is preferred over subscription APIs. Best for use cases requiring country, city, region, ISP, and coordinates without needing advanced features like threat scoring or proxy detection.

## Known failure modes

- Invalid or malformed IP address returns an error or empty result
- Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no geolocation data
- IPv6 addresses with limited coverage may return partial or null fields
- Network timeouts or upstream ipwho.is unavailability cause lookup failures
- Payment failure via x402 protocol results in 402 response before lookup is attempted

## How this service works

Country, city, region, ISP/org, and lat/lon for an IPv4/IPv6 address (ipwho.is, keyless).

## Output

A structured response containing the IP address's resolved country (name and code), region, city, latitude, longitude, ISP name, and organization name, sourced from the ipwho.is dataset.

## 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/ip-geolocation-lookup-24k-labs-c1097c83/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)
