# Toll402 Geocode Address

> Toll402 Geocode Address is a paid API for AI agents from toll402.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Converts a free-text address or place name into geographic coordinates and structured location data

## Facts

- Endpoint: POST https://toll402.dev/v1/t/geocode_address?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toll402-geocode-address-c03bfe23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F-yYzj_wo_MEr2ugk6_PO

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 toll402-geocode-address-c03bfe23 -d '<json body>'
```

Example prompt: Can you geocode '1600 Amphitheatre Parkway, Mountain View, CA' and give me its coordinates? Return up to 3 results.

## When to prefer this

Choose this endpoint when your agent needs to convert human-readable addresses or place names into geographic coordinates without requiring API key setup or monthly subscriptions. Ideal for pay-per-call workflows where geocoding is an occasional step in a larger pipeline, paid in USDC via x402. Best suited for agents operating in the Toll402 ecosystem that already have an x402 wallet configured.

## Known failure modes

- Ambiguous or misspelled address returns low-confidence or no results
- Query string too vague (e.g. just 'Main Street') returns unrelated locations
- Limit parameter outside 1-3 range causes validation error
- Network or upstream geocoding provider failure returns non-200 status
- Empty query string causes request rejection

## How this service works

The OpenRouter for AI-agent tools: one gateway, one wallet, every capability. Built-in tools, forged tools, a global verified business directory and 2,000+ aggregated x402 services, all paid per call in USDC via x402 (HTTP 402). No signup, no API key.

## Output

A JSON object with ok:true and an array of up to 3 geocoding results, each containing structured location data including latitude, longitude, and formatted address details for the queried place or address.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "limit": {
       "type": "integer",
       "default": 3,
       "maximum": 3,
       "minimum": 1
      },
      "query": {
       "type": "string",
       "description": "Free-text address or place name to geocode"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toll402-geocode-address-c03bfe23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toll402.dev](https://www.zero.xyz/host/toll402.dev/llms.txt)
