{"uid":"cap_bBDBBgXdDEnmxJOrIw4_S","slug":"locus-x402-forward-geocoding-mapbox-58ff9da6","name":"Locus x402 Forward Geocoding (Mapbox)","description":"Locus public pay-per-use API","url":"https://mapbox.x402.paywithlocus.com/mapbox/geocode-forward","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"q":{"type":"string"},"bbox":{"type":"string"},"limit":{"type":"number"},"types":{"type":"string"},"country":{"type":"string"},"language":{"type":"string"},"proximity":{"type":"string"},"worldview":{"type":"string"},"autocomplete":{"type":"boolean"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.00375","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.00375/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00375","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.00375","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IOt-dU-1urwENFuicqzM1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.00375","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 string into geographic coordinates and structured location data, billed per-call via x402 micropayments","exampleAgentPrompt":"Can you geocode '1600 Pennsylvania Avenue NW, Washington DC' and give me the coordinates? Limit results to 1 and filter to addresses only in the US.","exampleUseCases":[{"title":"Address to coordinates for delivery app","prompt":"I need the latitude and longitude for '221B Baker Street, London, UK' — can you geocode it and return just the top result for addresses in GB?"},{"title":"City search for travel planning","prompt":"Find me up to 5 places matching 'Springfield' in the United States, filtered to the 'place' feature type, so I can show a disambiguation list to my user."},{"title":"Autocomplete suggestions for search bar","prompt":"I'm building a location search bar — can you run a forward geocode for the partial query 'Eiff' with autocomplete enabled, biased near coordinates 2.3488,48.8534 in France, and return up to 5 suggestions in French?"}],"resultDescription":"Returns a GeoJSON FeatureCollection of matching places, each with geometry (coordinates), place_name (formatted address), text (short name), place_type, relevance score, and context array (country, region, postcode, etc.). Results are ranked by relevance and proximity bias.","failureModes":["Empty features array if no match found for the query string","Rate limiting or payment failure if x402 USDC balance is insufficient","Invalid bbox format returns a 400 error","Unsupported language tag may fall back to English results","Overly vague queries may return low-relevance or irrelevant results","Country or type filters may reduce results to zero if too restrictive"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use forward geocoding without a monthly subscription, especially in agentic or serverless workflows where usage is unpredictable. Prefer it over direct Mapbox API access when you want micropayment billing via x402 USDC with no API key management. It is well-suited for agents that geocode addresses on-demand, need autocomplete for partial queries, or require worldview-aware results for international use cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:42:54.612Z","isFirstParty":false}