OpenStreetMap Nominatim Geocoder
Geocode street addresses, landmarks, and cities into WGS84 latitude/longitude coordinates and bounding boxes via OpenStreetMap Nominatim.
curl -sG "https://api.agentapigate.ai/v1/geo/nominatim/geocode" \ --data-urlencode "query=Empire State Building" \ --data-urlencode "limit=5" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# OpenStreetMap Nominatim Geocoder (`geo.nominatim.geocode`) **query**: Empire State Building · **count**: 1 ## locations - [1] place_id: 358220252, osm_type: way, osm_id: 34633854, lat: 40.7484421, lon: -73.9856589
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:geo.nominatim.geocode · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | Empire State Building | Free-form address or place query (e.g. Empire State Building, Tokyo Tower) |
| country_codes | string | optional | — | Optional comma-separated ISO2 country filter (e.g. us,gb) |
| limit | number | optional | 5 | Max geocode matches (1-10) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | geo_nominatim_geocode | OAuth 2.1 Hub & /mcp/local |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 174 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 266t → 57t (-79%) | Partner credit: eligible |
More Maps & Reviews Real-Time APIs
Search Google Maps places and local businesses with ratings, review counts, addresses, phones, and websites.
Inspect detailed place profile, operating hours, contact links, and coordinates for a business name and city.
Fetch recent customer ratings, review titles, app versions, and review text from the Apple iOS App Store.
Inspect company TrustScore rating, review count, and recent verified customer reviews on Trustpilot.
Search real-time hotel availability, total stay pricing, guest review scores, star class, and check-in windows by city destination and dates.
Inspect live FAA National Airspace System (NAS) airport ground stops, arrival/departure delays, and carrier flight-number routing metadata (commercial ADS-B live track feed in partner onboarding preview).
Frequently Asked Questions
How do I call OpenStreetMap Nominatim Geocoder (geo.nominatim.geocode) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/geo/nominatim/geocode with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool geo_nominatim_geocode on https://mcp.agentapigate.ai/mcp.
What does geo.nominatim.geocode cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on geo.nominatim.geocode?
Passing ?format=md transforms the response into normalized Markdown (~57 tokens vs ~266 raw tokens, saving 79% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only local endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["local"], optional allowed_endpoints: ["geo.nominatim.geocode"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.