# WorldData402 Geocoding

> WorldData402 Geocoding is a paid API for AI agents from worlddata402.worlddata402.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Converts a free-text location query string into structured geographic coordinates and metadata

## Facts

- Endpoint: GET https://worlddata402.worlddata402.workers.dev/v1/geocode?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worlddata402-geocoding-c8b654bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f5fb9NYlfyT-DWJCUM2YI

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 worlddata402-geocoding-c8b654bf
```

Example prompt: Can you geocode 'Paris, France' and give me its latitude and longitude coordinates?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call geocoding without a subscription, especially in agent workflows that already use x402 USDC micropayments on Base mainnet. It is a good fit when you need to enrich location strings with coordinates on demand, and you want to avoid committing to a monthly geocoding plan. Prefer alternatives like Google Maps or Mapbox Geocoding API if you need batch geocoding, high-volume throughput, or autocomplete suggestions.

## Known failure modes

- Ambiguous query with multiple matching places may return unexpected results or the first best match
- Unrecognized or misspelled place names may return empty results or an error
- Missing required 'q' parameter returns a 400-level error
- Payment failure over x402 protocol returns a 402 Payment Required response
- Rate limits or service unavailability may cause 5xx errors

## How this service works

Global market, government and reference data for AI agents. Pay-per-call over x402 (USDC on Base mainnet).

## Output

A JSON object containing structured geographic information for the queried location, including latitude, longitude, formatted address, and potentially additional place metadata such as country, region, and bounding box.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-geocoding-c8b654bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worlddata402.worlddata402.workers.dev](https://www.zero.xyz/host/worlddata402.worlddata402.workers.dev/llms.txt)
