# Polyform Geocode API

> Polyform Geocode API is a paid API for AI agents from api.polyform.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts a US address string into latitude/longitude coordinates with a matched canonical address, paid per-call via USDC micropayment.

## Facts

- Endpoint: GET https://api.polyform.org/v1/geo/geocode
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polyform-geocode-api-b43df9f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4hXuDV_B1Mwq0q2I0ZzZo

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 polyform-geocode-api-b43df9f5
```

Example prompt: Can you geocode the address 4600 Silver Hill Rd, Washington, DC 20233 and give me the exact latitude and longitude?

## When to prefer this

Choose this endpoint when you need a lightweight, account-free, pay-per-call geocoder for US addresses with no API key setup required. Ideal for AI agents making occasional one-off geocoding calls where a subscription service is overkill and micropayment via USDC on Base is acceptable. Best for US addresses only.

## Known failure modes

- Address not found or unrecognizable — may return empty or null result
- Non-US addresses are outside the supported scope
- Ambiguous address input may return an unexpected match
- Payment failure or insufficient USDC balance blocks the call
- Malformed query parameters result in a 400-level error

## How this service works

Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.

## Output

A JSON object containing the latitude (lat), longitude (lon), and a matched canonical address string (matched) corresponding to the input address query.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 38.845985,
  "lon": -76.9274,
  "matched": "4600 SILVER HILL RD, WASHINGTON, DC, 20233"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polyform-geocode-api-b43df9f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.polyform.org](https://www.zero.xyz/host/api.polyform.org/llms.txt)
