OpenStreetMap API: Search places
Finds named places or kinds of places in a city or area, in search order, using OpenStreetMap Nominatim. Results may be fewer than requested. Data © OpenStreetMap contributors (ODbL).
Unofficial. Not affiliated with or endorsed by OpenStreetMap.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- What, required
what Kind of place or name to find, for example museum or Starbucks.
museum
- Where, required
where City or area to search, for example Vienna, Austria.
Vienna, Austria
- Language optional
language Language for names and addresses, for example en or de.
en
Default
en.- Max Results optional
max_results Maximum places to return, for example 20.
20
Whole number from 1 to 50. Default
20.
Input as JSON
{ "what": "museum", "where": "Vienna, Austria", "language": "en", "max_results": 20}Output
{ "places": [ { "name": "Virgilkapelle", "type": "museum", "osm_id": 388758689, "latitude": 48.2083315, "osm_type": "way", "longitude": 16.3722708, "full_address": "Virgilkapelle, Stephansplatz, Stubenviertel, Katastralgemeinde Innere Stadt, Innere Stadt, Vienna, 1010, Austria", "openstreetmap_link": "https://www.openstreetmap.org/way/388758689" }, { "name": "Treasure of St. Stephen's Cathedral", "type": "museum", "osm_id": 485310799, "latitude": 48.2086963, "osm_type": "way", "longitude": 16.3726951, "full_address": "Treasure of St. Stephen's Cathedral, Stephansplatz, Stubenviertel, Katastralgemeinde Innere Stadt, Innere Stadt, Vienna, 1010, Austria", "openstreetmap_link": "https://www.openstreetmap.org/way/485310799" }, { "name": "Imperial Treasury", "type": "museum", "osm_id": 441696312, "latitude": 48.20674, "osm_type": "node", "longitude": 16.3658462, "full_address": "Imperial Treasury, Swiss Courtyard, Widmerviertel, Katastralgemeinde Innere Stadt, Innere Stadt, Vienna, 1010, Austria", "openstreetmap_link": "https://www.openstreetmap.org/node/441696312" } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"openstreetmap.org/search_places","input":{"what":"museum","where":"Vienna, Austria","language":"en","max_results":20}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "openstreetmap.org/search_places" , "input": { "what": "museum", "where": "Vienna, Austria", "language": "en", "max_results": 20 }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "openstreetmap.org/search_places" , "input": { "what": "museum", "where": "Vienna, Austria", "language": "en", "max_results": 20 } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run openstreetmap.org/search_places# with {"what":"museum","where":"Vienna, Austria","language":"en","max_results":20}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "what", "where" ], "properties": { "what": { "type": "string", "minLength": 1, "description": "Kind of place or name to find, for example museum or Starbucks." }, "where": { "type": "string", "minLength": 1, "description": "City or area to search, for example Vienna, Austria." }, "language": { "type": "string", "default": "en", "description": "Language for names and addresses, for example en or de." }, "max_results": { "type": "integer", "default": 20, "maximum": 50, "minimum": 1, "description": "Maximum places to return, for example 20." } }}Output schema
{ "type": "object", "required": [ "places" ], "properties": { "places": { "type": "array", "items": { "type": "object", "required": [ "latitude", "longitude" ], "properties": { "name": { "type": [ "string", "null" ] }, "type": { "type": [ "string", "null" ] }, "osm_id": { "type": [ "integer", "null" ] }, "latitude": { "type": "number" }, "osm_type": { "type": [ "string", "null" ] }, "longitude": { "type": "number" }, "full_address": { "type": [ "string", "null" ] }, "openstreetmap_link": { "type": [ "string", "null" ] } } }, "description": "Matching places in search order." } }}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
openstreetmap.org/search_places- Returns
- name, type, full address, coordinates, OpenStreetMap link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method openstreetmap.org/search_places with the inputs above.
Ask your agent
- find vegan restaurants in Portland, Oregon
- I need a list of pharmacies near Lyon, France with addresses and coordinates
- show me the top 10 bakeries in Kyoto in German
- any hiking trailheads around Boulder, Colorado? give me 15 results
- look up Starbucks locations in Toronto, Ontario on openstreetmap.org
See more
All OpenStreetMap methodsFinds map coordinates and address details for an address or place on OpenStreetMap, optionally restricted to a country.
openstreetmap.org/get_coordinatesTurns map coordinates into a readable address with OpenStreetMap Nominatim, at address, street or city detail, with the address parts and an OpenStreetMap link. Results reflect the nearest mapped feature.
openstreetmap.org/get_addressFinds businesses and places near a location on Google Maps, in Google Maps order, with rating, hours, contact details and links when shown.
google.com/search_placesLooks up a public Google Maps place by name and location and returns its profile: address, rating, hours, phone, website and photos.
google.com/get_placeFinds Starbucks cafés near a city, address or ZIP code, nearest first, with whether each is open now, today's local hours and amenities; optionally only cafés open now.
starbucks.com/search_storesFinds local US businesses on Yellow Pages by name or category and a city, state or ZIP. Returns listings with phone numbers in Yellow Pages order, excluding labeled ads; contact details, ratings and hours appear when listed.
yellowpages.com/search_businessesFinds a place on Google Maps by name and location and returns its public reviews in the chosen order.
google.com/get_place_reviewsFinds Open Charge Map charging locations near an address, city, or postcode, nearest first.
openchargemap.org/search_chargers