Forward and reverse geocoding for $0.001 USDC per request. No API key or subscription. Developers and AI agents can pay automatically with USDC on Base using x402.
Make a geocoding request. The server returns HTTP 402 with a payment challenge. Sign the payment and retry with the PAYMENT-SIGNATURE header.
| Price | $0.001 USDC |
| Network | Base mainnet (eip155:8453) |
| Payment | x402 V2 |
| Authentication | No API key |
GET /api/geocode?q=1600 Pennsylvania Ave NW, Washington, DC 20500
{
"lat": 38.8976763,
"lon": -77.0365298,
"display_name": "1600 Pennsylvania Ave NW, Washington, DC 20500, USA"
}
Convert street addresses, cities, landmarks, and other locations into geographic coordinates. Reverse geocoding converts latitude and longitude back into readable addresses. Each standard operation costs $0.001 USDC, handled through the x402 protocol on Base mainnet. No subscription is needed. No traditional API key is needed.
The geocoding API returns structured JSON for easy integration into applications, scripts, and autonomous agents.
Convert an address or place name to latitude and longitude coordinates. Pass a location string as the q parameter and receive coordinates in the response.
GET /api/geocode?q=1600+Pennsylvania+Ave+NW,+Washington,+DC
{
"lat": 38.8976763,
"lon": -77.0365298,
"display_name": "1600 Pennsylvania Ave NW, Washington, DC 20500, USA"
}
See the full forward geocoding guide and the API documentation for parameters, error codes, and examples.
Convert latitude and longitude coordinates into a human-readable address. Pass lat and lon parameters to resolve coordinates into a street address, city, and country.
GET /api/reverse?lat=40.7128&lon=-74.006
{
"address": "New York, NY, USA",
"place": "New York"
}
See the full reverse geocoding guide for use cases and examples.
This API is designed for autonomous agents and programmatic consumers. No permanent API credential is required. Payment is handled per-request via x402 V2. All responses are structured JSON. Machine-readable documentation is available for automated discovery.
x402 embeds payments directly into HTTP using the 402 status code. Here is the request flow:
PAYMENT-REQUIRED header.PAYMENT-SIGNATURE header.PAYMENT-RESPONSE.Protocol details: x402Version: 2, network eip155:8453, asset USDC, price $0.001 (1000 base units). See the x402 integration guide for complete client examples.
An agent can translate hotel, venue, or destination names into coordinates for itinerary building.
Convert customer addresses into locations for routing and distance calculations.
Turn business or customer address data into geographic coordinates for territory mapping.
Resolve property addresses into map coordinates for listing displays and proximity searches.
Allow autonomous agents to translate natural-language location references into structured coordinates.
Translate GPS coordinates into readable place information for dashboards and reports.