# Afterwren Geocoding API

> Afterwren Geocoding API is a paid API for AI agents from afterwren.cybermaxtools.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-10).

Converts an address or place name into geographic coordinates and structured location data

## Facts

- Endpoint: GET https://afterwren.cybermaxtools.com/x402/api/geocode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/afterwren-geocoding-api-71774721
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8xQj8JIviQkF20o8--3DU

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 afterwren-geocoding-api-71774721
```

Example prompt: Can you geocode the address '1600 Pennsylvania Ave NW, Washington DC' and give me the latitude and longitude?

## When to prefer this

Choose this endpoint when you need a pay-per-use geocoding service with no signup or subscription, especially as an alternative to Clearbit or other retired geocoding APIs. Particularly useful for US addresses due to Census geocoder priority. Ideal for agents that geocode infrequently and want micro-payment billing at $0.002 per call via x402.

## Known failure modes

- Address not found or ambiguous — returns empty or null coordinates
- Invalid or missing 'q' query parameter — returns error
- Unsupported country code format — may fall back to default geocoder
- Service temporarily unavailable — returns HTTP error
- Payment not processed (x402) — request rejected before geocoding

## How this service works

Retired APIs, back in one key. Clearbit API alternative, geocoder and Goodreads API replacement: one REST API + MCP server Try it free in one click, no sign-up.

## Output

Returns a JSON object containing geographic coordinates (latitude and longitude) and potentially structured address components for the queried address or place name. When a US country code is provided, it prioritizes the Census geocoder.

## 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": {
      "q": {
       "type": "string",
       "description": "Address or place name"
      },
      "country": {
       "type": "string",
       "description": "Optional ISO 3166-1 alpha-2 code (us = Census first)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/afterwren-geocoding-api-71774721/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from afterwren.cybermaxtools.com](https://www.zero.xyz/host/afterwren.cybermaxtools.com/llms.txt)
