{"uid":"cap_5dvS6QPz4RF2AdXtJVnas","slug":"x402-geocoding-api-11364c7d","name":"x402 Geocoding API","description":"Convert addresses to coordinates or coordinates to addresses for $0.001 per request. No API key or subscription. Pay with USDC on Base via x402.","url":"https://geocoding-x402.royaldemocracy.workers.dev/api/geocode","method":"GET","headers":{},"bodySchema":{"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"}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"lat":38.8976763,"lon":-77.0365298,"display_name":"1600 Pennsylvania Ave NW, Washington, DC 20500, USA"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_huz-9Wk8SUESJRigZa65V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a street address to lat/lon coordinates (forward geocoding) or coordinates to a human-readable address (reverse geocoding) for $0.001 USDC per request via x402 pay-per-call.","exampleAgentPrompt":"What are the latitude and longitude coordinates for 1600 Pennsylvania Avenue NW, Washington DC?","exampleUseCases":[{"title":"Enrich delivery addresses with coordinates","prompt":"I have a list of delivery addresses and I need to map them — can you convert '221B Baker Street, London' to GPS coordinates so I can plot it?"},{"title":"Reverse geocode a GPS ping","prompt":"I've got a GPS ping at 42.36 latitude and -71.06 longitude — what's the actual street address at that location?"},{"title":"Locate business for mapping app","prompt":"I'm building a map of coffee shops and I need coordinates for 'Blue Bottle Coffee, 300 S Broadway, Los Angeles, CA' — can you look those up?"}],"resultDescription":"Returns a JSON object with latitude (lat), longitude (lon), and a human-readable display_name string representing the resolved location (e.g. {\"lat\":42.36,\"lon\":-71.06,\"display_name\":\"Boston, MA, USA\"}).","failureModes":["Address not found or ambiguous — may return empty or null result","Invalid coordinate format for reverse geocoding — malformed lat/lon","Payment failure via x402 — request rejected if USDC payment not completed","Rate or quota limits on the underlying geocoding data source","Network timeout from Cloudflare Workers edge node"],"whenToPreferThis":"Choose this endpoint when you need lightweight, on-demand geocoding without managing API keys or subscriptions — ideal for AI agents that need pay-per-use access to geocoding via x402 and USDC on Base. Best for low-volume or bursty workloads where a flat per-call fee is preferable to a monthly subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:49.097Z","isFirstParty":false}