# 24K Labs Geocode — Address to Coordinates

> 24K Labs Geocode — Address to Coordinates 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).

Converts a text address or place name into geographic coordinates (latitude and longitude)

## Facts

- Endpoint: POST https://api.24klabs.ai/api/geocode
- 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-geocode-address-to-coordinates-ac0b6a5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SszkGE7VCNq_OttXK8y7X

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-geocode-address-to-coordinates-ac0b6a5f -d '<json body>'
```

Example prompt: Can you geocode '1600 Amphitheatre Parkway, Mountain View, CA' and give me the latitude and longitude?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call geocoding lookup without managing API keys or subscription tiers, especially within an x402-enabled agent workflow. It is well-suited for lightweight address-to-coordinate conversions where you need lat/lon output quickly and cost-predictably at $0.003 per call.

## Known failure modes

- Address not found or ambiguous — may return null coordinates or an error response
- Malformed or incomplete address string may yield inaccurate results
- Non-existent or fictional addresses will fail to resolve
- Rate limiting or payment failure resulting in a 402 or 429 response
- Very new or unmapped locations may not be in the underlying dataset

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

Returns a JSON object containing the latitude (lat) and longitude (lon) as decimal numbers corresponding to the input address or place name.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 35.68,
  "lon": 139.69
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-geocode-address-to-coordinates-ac0b6a5f/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)
