# payai.agentstools.dev Geocode

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

Forward-geocodes a street address or place name worldwide to coordinates and parsed address components using OpenStreetMap Nominatim

## Facts

- Endpoint: GET https://payai.agentstools.dev/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/payai-agentstools-dev-geocode-f7ee2f49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G7GdrrufKBjR9O5UwS7TN

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 payai-agentstools-dev-geocode-f7ee2f49
```

Example prompt: What are the GPS coordinates for 1600 Pennsylvania Avenue NW, Washington DC? I need the latitude, longitude, and parsed address components.

## When to prefer this

Use this endpoint when you need to resolve a human-readable address or place name to geographic coordinates worldwide without requiring an API key. Ideal for enriching records with lat/lon, routing agents that need to map text addresses to map points, or any workflow requiring geolocation from free-text input. Prefer over paid geocoding APIs when cost matters and OpenStreetMap coverage is sufficient.

## Known failure modes

- Address not found or ambiguous — Nominatim returns empty results array
- Network or upstream Nominatim outage — HTTP 5xx or timeout
- Missing required 'address' query parameter — validation error
- Rate limiting by upstream Nominatim if called at very high frequency

## How this service works

Forward-geocode a street address or place name (WORLDWIDE) to coordinates + parsed address components via OpenStreetMap Nominatim (public, keyless).

## Output

Returns latitude, longitude, and structured/parsed address components (e.g. house number, road, city, country) for the queried address or place name, sourced from OpenStreetMap Nominatim.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Street address or place name (any country)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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