{"uid":"cap_eza0VZ0deTGFv5TDvzqEU","slug":"geocode-batch-api-openstreetmap-nominatim-731c0148","name":"Geocode Batch API (OpenStreetMap Nominatim)","description":"Geocode batch: up to 5 addresses or place names (separated by |) to coordinates and a structured address in one call, optional country filter. OpenStreetMap Nominatim, cached, ODbL attribution.","url":"https://freetier-agent-api.pages.dev/api/geocode-batch?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"],"type":"string"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"addresses separated by |, max 5"},"country":{"type":"string","description":"optional ISO-2 country filter"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":2,"found":2,"results":[{"q":"Eiffel Tower, Paris","result":{"lat":48.8582,"lon":2.2945,"display_name":"Tour Eiffel, ..."}}]}},"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_SoFiiZir8bhyaUybBFo0E","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":"Geocodes up to 5 addresses or place names in a single call to coordinates and structured addresses, with optional country filter, using cached OpenStreetMap Nominatim data.","exampleAgentPrompt":"Can you geocode these three locations for me: '10 Downing Street, London', 'Eiffel Tower, Paris', and 'Colosseum, Rome'? Limit results to European countries if possible.","exampleUseCases":[{"title":"Mapping store locations from addresses","prompt":"I have a list of store addresses — '123 Main St, Austin TX', '456 Oak Ave, Dallas TX', and '789 Pine Rd, Houston TX' — can you get the lat/lon coordinates for all of them at once?"},{"title":"Validating user-submitted place names","prompt":"These three places were submitted by users: 'Times Square', 'Golden Gate Bridge', and 'Space Needle'. Can you look up their coordinates and structured addresses to confirm they resolve correctly?"},{"title":"Enriching delivery addresses with coordinates","prompt":"I need to geocode these two delivery addresses in Germany — 'Brandenburger Tor, Berlin' and 'Marienplatz, Munich' — make sure to filter results to Germany only so I get accurate matches."}],"resultDescription":"Returns a JSON object with a count and found fields, plus a results array where each entry echoes the original query string and includes the matched latitude, longitude, and a full display_name structured address string. Unmatched queries may return null results.","failureModes":["More than 5 addresses submitted — API only accepts up to 5 per call","Place name not recognized by Nominatim — result entry may have null coordinates","Invalid ISO-2 country code filter — may return no results or ignore the filter","Network or cache errors — may return HTTP 5xx","Ambiguous place names without country filter may return unexpected matches"],"whenToPreferThis":"Choose this endpoint when you need to geocode a small batch (1–5) of addresses or place names quickly and cheaply without setting up a full geocoding account. It is especially useful for agents doing lightweight enrichment, mapping, or validation where OSM Nominatim coverage is acceptable and ODbL attribution is compatible. For single-address lookups it still works fine, but for more than 5 addresses you will need to make multiple calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:07:34.427Z","isFirstParty":false,"canonicalSlug":"geocode-batch-api-openstreetmap-nominatim-731c0148"}