{"uid":"cap_-gHXK2cF9nTAYD788wcpF","slug":"nojunk-geo-geocode-577a1ea0","name":"NoJunk Geo — Geocode","description":"NoJunk Geo geocode: Place name or address -> coordinates, structured address and bounding box (OpenStreetMap Nominatim).","url":"https://nojunk-geo.mick8511.workers.dev/geocode?utm_source=zero.xyz","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","maxLength":200,"minLength":1,"description":"Place name or address to look up, 1-200 characters"},"limit":{"type":"string","description":"Max results, 1-5 (default 1)"},"country":{"type":"string","description":"Optional 2-letter ISO country code to restrict results, e.g. us"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"query":"Sunrise, Florida","source":"OpenStreetMap Nominatim","country":"us","results":[{"lat":26.1669711,"lon":-80.2567739,"type":"city","address":{"city":"Sunrise","road":null,"state":"Florida","county":"Broward County","country":"United States","postcode":null,"country_code":"us","house_number":null},"category":"boundary","importance":0.5327,"bounding_box":[26.1193,26.1897,-80.3618,-80.2178],"display_name":"Sunrise, Broward County, Florida, United States"}],"fetched_at":"2026-10-15T12:00:00.000Z","attribution":"Data © OpenStreetMap contributors, ODbL"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IDoNd9QjA4vaITiL3m_-N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 a structured address object, charged per successful result in USDC via x402.","exampleAgentPrompt":"What are the latitude and longitude coordinates for 1600 Pennsylvania Avenue NW, Washington DC? Just give me the top result.","exampleUseCases":[{"title":"Pinpointing restaurant location for routing","prompt":"I need the exact coordinates for 'Nobu Restaurant, Malibu, California' — can you look that up and give me the lat/lon and structured address?"},{"title":"Geocoding user-submitted address before weather lookup","prompt":"The user entered '221B Baker Street, London, UK' as their location — can you geocode that to coordinates so I can pull the current weather for them?"},{"title":"Resolving city name to bounding box for map display","prompt":"What are the coordinates and bounding box for Sunrise, Florida? I want to center a map on it."}],"resultDescription":"Returns a JSON object with the original query, data source attribution, and an array of results — each result containing latitude, longitude, place type, importance score, bounding box, a human-readable display name, and a structured address (city, road, state, county, country, postcode, country code, house number). Also includes a fetched_at timestamp and ODbL attribution string.","failureModes":["Query string too short or too long (outside 1–200 characters) — returns 400 validation error","No matching location found — returns empty results array, no charge","Ambiguous query with no country filter — may return unexpected country's result","Nominatim upstream outage — 502 or 503 response","Payment failure or insufficient USDC balance — 402 response, no result returned","Rate limits from upstream Nominatim if query volume is very high"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-successful-call geocoding solution for AI agents that already use the x402 micropayment protocol on Base. It is ideal when you need structured address output plus coordinates from a plain text place name or address, especially when feeding into the sibling /weather endpoint. Prefer this over free geocoding APIs when you want usage-based billing without subscription overhead, and over proprietary geocoding (Google, HERE) when cost per call and open data licensing (ODbL) are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:30:07.623Z","isFirstParty":false,"canonicalSlug":"nojunk-geo-geocode-577a1ea0"}