{"uid":"cap_FfSeJwdhd61pohRLdrsQZ","slug":"photon-geocoder-via-x402-4b2aee12","name":"Photon Geocoder via x402","description":"Komoot Photon geocoder (keyless). POST {q|query|text,limit?,lat?,lon?}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. Soft disclose geocode-search / census-geocode.","url":"https://x402-v2-mint-photon.vercel.app/v1/photon?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"q":{"type":"string","maxLength":200},"lat":{"type":"number"},"lon":{"type":"number"},"text":{"type":"string","maxLength":200},"limit":{"type":"integer","maximum":20,"minimum":1},"query":{"type":"string","maxLength":200},"request_id":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"photon","charged":true,"summary":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020204","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.020204/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020204","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020204","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_p4vC3KLJbdujXUFOPaArD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.020204","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a place name or address text query into geocoded location results (coordinates, place details) using the Komoot Photon geocoding engine, billed per call via x402 micropayments.","exampleAgentPrompt":"Can you geocode '1600 Pennsylvania Ave NW, Washington DC' and give me its coordinates? Return up to 5 results.","exampleUseCases":[{"title":"Address to coordinates for delivery app","prompt":"I need the latitude and longitude for '221B Baker Street, London' — can you look that up and give me up to 3 results?"},{"title":"Bias geocode search near user location","prompt":"Search for 'Central Park' near latitude 40.7829, longitude -73.9654 and return the top result with its coordinates."},{"title":"Resolve place name for mapping workflow","prompt":"Geocode the place name 'Eiffel Tower, Paris' for me — I need the coordinates to drop a pin on a map, give me the best match."}],"resultDescription":"Returns a JSON object with ok:true, the skill name ('photon'), a charged:true flag confirming the micropayment was applied, and a summary field. On success, geocoding results include place name, coordinates, and location details sourced from OpenStreetMap via the Photon engine. On unpaid calls returns HTTP 402; on settled but invalid queries returns 400 with charged:false.","failureModes":["HTTP 402 returned when payment is not settled before call — no results returned","HTTP 400 with charged:false when query is empty or malformed after payment — charge not applied","No results found for highly ambiguous or non-existent place names","Rate limiting or service unavailability on the Vercel deployment","Query exceeds 200 character limit — rejected at input validation"],"whenToPreferThis":"Choose this endpoint when you need keyless, pay-per-use forward geocoding (address/place name to coordinates) without managing API keys or subscriptions, especially in agentic workflows that use x402 micropayment settlement. Prefer over key-based geocoders when operating in trustless or multi-agent environments. Backed by Komoot Photon (OpenStreetMap data), making it well-suited for global place search including POIs, cities, streets, and landmarks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T12:40:10.579Z","isFirstParty":false,"canonicalSlug":"photon-geocoder-via-x402-4b2aee12"}