{"uid":"cap_Cwm012YuOnh0rE-uUvto2","slug":"agent-data-tools-geocoding-by-place-name-ae9f326c","name":"Agent Data Tools: Geocoding by Place Name","description":"Find places by name in Wikidata (CC0) and get their coordinates, description, country, administrative region, population and elevation where recorded, best match first. Cities, towns, landmarks and other places with coordinates. Use before weather, sun or distance lookups, or to tell two places of the same name apart.","url":"https://agent-data-tools.revmesh2074.workers.dev/geocode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Place name"},"count":{"type":"integer","description":"Max results (1-10, default 5)"}}},"responseSchema":{"type":"object","properties":{"count":{"type":"number"},"source":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"lat":{"type":"number"},"lon":{"type":"number"},"name":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"},"elevation":{"type":"number"},"population":{"type":"number"},"wikidataId":{"type":"string"},"description":{"type":"string"}}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USD","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_msLS7euC-BBW_sEyEYHnr","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 into geographic coordinates (latitude/longitude) with population, elevation, and Wikidata metadata","exampleAgentPrompt":"What are the latitude and longitude coordinates for Uppsala, Sweden? Give me up to 3 results.","exampleUseCases":[{"title":"Routing agent to a delivery destination","prompt":"I need the coordinates for 'Austin, Texas' so I can calculate a delivery route — can you look it up and give me the lat/lon?"},{"title":"Enriching a city list with geodata","prompt":"For my data pipeline, can you look up geographic details for 'Nairobi' — I need the latitude, longitude, country, and population?"},{"title":"Disambiguating a place name","prompt":"I have a place called 'Springfield' — can you geocode it and return up to 5 results so I can see which one is in the US with the largest population?"}],"resultDescription":"A JSON object with a count of results, the data source (Wikidata CC0), and an array of matching places each containing latitude, longitude, place name, region, country, elevation in meters, population, Wikidata ID, and a short description.","failureModes":["Place name not found — returns empty results array with count 0","Invalid or missing 'name' query parameter — returns error","Count parameter out of range (must be 1–10) — may return error or clamp to default","Ambiguous place name returns multiple unrelated results requiring disambiguation","Payment not confirmed — call is not charged and returns 402 status"],"whenToPreferThis":"Choose this endpoint when you need to forward-geocode a human-readable place name into coordinates and get enriched metadata (population, elevation, Wikidata ID) sourced from Wikidata CC0, with no API key required and per-call USDC micropayment pricing. Prefer it for agent workflows where you need lightweight, pay-per-use geocoding without subscription overhead. Not suitable for reverse geocoding (coordinates to name) or street-level address geocoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T06:56:55.331Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-geocoding-by-place-name-ae9f326c"}