# agent402.tools Reverse Geocode

> agent402.tools Reverse Geocode is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts latitude/longitude coordinates into a structured postal address including road, house number, city, state, postcode, and country using OpenStreetMap/Nominatim — no API key required.

## Facts

- Endpoint: GET https://agent402.tools/api/reverse-geocode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-reverse-geocode-db1b57cb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cGYxICXhngeMun2ERUZDI

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 agent402-tools-reverse-geocode-db1b57cb
```

Example prompt: What's the street address at coordinates 38.8977 latitude, -77.0365 longitude?

## When to prefer this

Choose this endpoint when you need to resolve a lat/lon to a structured postal address without managing an API key. It is powered by OpenStreetMap/Nominatim and is ideal for agents that need street-level address enrichment from GPS coordinates, device location data, or coordinate-tagged records. Prefer this over forward geocoding endpoints when you already have coordinates and need a human-readable address.

## Known failure modes

- Coordinates outside valid range (-90 to 90 lat, -180 to 180 lon) return a validation error
- Coordinates in remote or unmapped areas may return incomplete address fields (missing road or house number)
- Ocean or uninhabited coordinates may return only country-level data
- Payment failure (x402) returns 402 status before the geocode is attempted
- Nominatim upstream outage results in a 5xx error

## How this service works

Resolve a lat/lon to a structured postal address: road, house number, city, state, postcode, country (with ISO code). OpenStreetMap/Nominatim, no key. ?lat=38.8977&lon=-77.0365.

## Output

Returns a structured postal address object with fields including road name, house number, city, state, postcode, country name, and ISO country code corresponding to the provided coordinates.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 40.7128,
   "lon": -74.006,
   "zoom": 18
  }
 }
}
```

## 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",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude, -90 to 90"
      },
      "lon": {
       "type": "number",
       "description": "Longitude, -180 to 180"
      },
      "zoom": {
       "type": "number",
       "description": "Detail level, 3 (country) to 18 (building). Default 18."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "lat",
      "lon",
      "displayName",
      "address",
      "type",
      "class",
      "osm",
      "source"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "osm": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "class": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "address": {
       "type": "object"
      },
      "displayName": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 38.8977,
  "lon": -77.0365,
  "osm": "way/238241022",
  "type": "attraction",
  "class": "tourism",
  "source": "nominatim.openstreetmap.org (ODbL)",
  "address": {
   "city": "Washington",
   "road": "Pennsylvania Avenue Northwest",
   "state": "District of Columbia",
   "country": "United States",
   "postcode": "20500",
   "countryCode": "us",
   "houseNumber": "1600"
  },
  "displayName": "White House, 1600, Pennsylvania Avenue Northwest, Washington, District of Columbia, 20500, United States"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-reverse-geocode-db1b57cb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
