OpenStreetMap POI Extractor (Overpass API: shops, amenities) avatar

OpenStreetMap POI Extractor (Overpass API: shops, amenities)

Pricing

from $0.30 / 1,000 places

Go to Apify Store
OpenStreetMap POI Extractor (Overpass API: shops, amenities)

OpenStreetMap POI Extractor (Overpass API: shops, amenities)

OpenStreetMap POI Extractor returns shops, cafes, restaurants and any tagged place within a radius, a bounding box, or a named area — one row per point of interest, powered by the free Overpass API.

Pricing

from $0.30 / 1,000 places

Rating

0.0

(0)

Developer

Murat Uzun

Murat Uzun

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

Price: $0.35 per 1,000 places on the Free, Bronze and Silver plans ($0.30 on Gold and higher), plus a $0.00005 run-start fee. Only POI rows written to the dataset are charged; failed or empty searches write no rows and cost nothing beyond the start fee. Live Pricing data checked on 29 November 2026.

What is OpenStreetMap POI Extractor?

OpenStreetMap POI Extractor is an Apify Actor that finds shops, cafes, restaurants and any other tagged place on OpenStreetMap and returns one clean row per point of interest (POI). Search by radius around a coordinate, by a bounding box, or by a named area (a city, district or country resolved automatically via Nominatim). Every lookup runs through the free, community-run Overpass API — no API key, no proxy, no headless browser. Each row carries the name, category, coordinates, address, phone, website, opening hours and any other OSM tag the place carries.

What data does OpenStreetMap POI Extractor extract?

FieldTypeDescription
osmType, osmId, osmUrlstring, integer, stringThe OSM element (node/way/relation) and a permalink to openstreetmap.org
name, categorystringThe place name and which requested key=value tag it matched, e.g. amenity=cafe
lat, lonnumberCoordinates — node position, or the computed center for a way/relation
address, street, houseNumber, postcode, city, countrystringAddress fields joined from addr:* tags
phone, email, websitestringContact details from phone/contact:phone, email/contact:email, website/contact:website
openingHours, cuisine, brand, wheelchairstringopening_hours, cuisine, brand and wheelchair tags
openAtLocal, openUntil, timeZonestringOnly with openAt: the local time the place was checked open, when it closes next (null = around the clock), and its IANA time zone
tagsobjectEvery other OSM tag on the element, so nothing unusual is silently dropped
query, scrapedAt, errorstringA summary of the search that produced the row, the run timestamp, and a legacy error field (always null on result rows)

How to use OpenStreetMap POI Extractor

  1. Pick a Search mode: radius (default — a point plus a distance in meters), bbox (a south,west,north,east box), or area (a free-text place name such as "Prague, Czechia" or "Brooklyn, New York").
  2. Fill in the fields for that mode — coordinates and radius, or the bbox string, or the area name.
  3. List the OSM categories to search, each as key=value, e.g. amenity=cafe, shop=supermarket, tourism=hotel. Look up tag values on the OpenStreetMap Wiki if you're not sure which one to use.
  4. Optional: type a Name or brand contains text (nameContains), e.g. starbucks, billa or dr. max, to keep only places whose OSM name or brand tag contains it (case-insensitive literal text, so dr.max does not match "Dr. Max"; combined with the categories). The filter runs inside the Overpass query, so other places are never returned and never charged.
  5. Optional: set Open at (openAt) to now, or to a weekday and 24-hour time such as Sunday 10:00 or Fr 22:30, to keep only places that are open at that moment in their own local time. The Actor reads each place's OSM opening_hours tag with the reference opening_hours.js parser (weekday ranges, past-midnight hours like Fr,Sa 18:00-02:00, 24/7, off/closed, public holidays when the place has a country tag), finds the time zone from the coordinates, and adds openAtLocal and openUntil (when it closes) to each kept row. Closed places, places without opening hours and places whose hours can't be read are dropped before anything is written, so they are never charged; OUTPUT.openAt counts each group.
  6. Click Start. All rows are written to the dataset in one batch when the query returns; export as JSON, CSV, Excel or HTML. The run's OUTPUT record holds resultCount and an errorCode (see Run outcome codes).

Example input

{
"mode": "radius",
"latitude": 50.0755,
"longitude": 14.4378,
"radiusMeters": 1000,
"categories": ["amenity=cafe", "amenity=restaurant"],
"maxResults": 500
}

Example output

{
"osmType": "node",
"osmId": 296508369,
"osmUrl": "https://www.openstreetmap.org/node/296508369",
"name": "Prosekárna",
"category": "amenity=cafe",
"lat": 50.0761663,
"lon": 14.445271,
"address": "Slezská 1345/48, 12000",
"phone": null,
"website": "https://www.prosekarna.cz/",
"openingHours": "Mo-Su 10:00-22:00",
"wheelchair": null,
"query": "radius:1000m around 50.0755,14.4378 [amenity=cafe, amenity=restaurant]",
"scrapedAt": "2026-09-12T23:33:30.236Z",
"error": null
}

Input parameters

ParameterTypeDefaultDescription
modestringradiusradius, bbox or area
latitude, longitudenumber50.0755, 14.4378Center point for radius mode (defaults to Prague)
radiusMetersinteger1000Search radius in meters (max 20000)
bboxstring50.05,14.35,50.13,14.55south,west,north,east for bbox mode
areaNamestringPrague, CzechiaPlace name for area mode, resolved via Nominatim
categoriesarray["amenity=cafe","amenity=restaurant"]OSM key=value tags to search for
nameContainsstringemptyKeep only places whose name or brand contains this text (case-insensitive, AND with categories); non-matching places are not charged
openAtstringemptynow or <weekday> HH:MM (e.g. Sunday 10:00): keep only places open then, in their local time; closed / no-hours places are not charged
maxResultsinteger100Cap on rows returned (max 20000)
overpassEndpointstringhttps://overpass-api.de/api/interpreterPrimary Overpass endpoint; on failure falls back to maps.mail.ru then overpass.kumi.systems

Pricing

OpenStreetMap POI Extractor uses pay-per-event pricing, charged per place row:

PlanPer placePer 1,000 places
Free$0.00035$0.35
Bronze$0.00035$0.35
Silver$0.00035$0.35
Gold and higher$0.0003$0.30

Plus a $0.00005 actor-start fee. A typical 1 km-radius cafe search in a city center returns tens of rows and costs a fraction of a cent. Set Maximum cost per run and the Actor trims maxResults to fit your budget automatically.

How much does a run cost?

Rows × your plan's per-place price + the start fee. A 500-row search costs $0.175 on the Free plan and $0.15 on Gold. A search that finds nothing, an invalid input, or a run where every Overpass endpoint fails writes no rows, so it is not charged per place.

OpenStreetMap POI Extractor vs. Google Places API

Google Places charges per request and requires a billing-enabled API key with usage caps. OpenStreetMap POI Extractor reads the same category of data — business names, categories, addresses, phone numbers, websites — for free public map data, with no key and no quota to manage, at a fraction of the cost. Coverage varies by region (OSM is strongest in Europe and community-mapped cities) and some listings lack phone/website tags that a commercial directory would have — trade the completeness of a paid API for zero cost and no rate-limit headaches on moderate volumes.

Using OpenStreetMap POI Extractor with AI agents and MCP

OpenStreetMap POI Extractor is pay-per-event with limited permissions — the two requirements for an Actor to be callable through the Apify MCP server at mcp.apify.com. An agent passes a mode, a location and a category list, and gets back structured POI rows ready for a lead list, a travel itinerary, or a market-coverage map. The same run works from n8n, Make, Zapier and LangChain through Apify's integrations.

FAQ

Can I get only the pharmacies or cafés that are open right now, or on Sunday morning? Yes. Set categories to amenity=pharmacy and openAt to now (each place is checked in its own time zone), or to Sunday 10:00 for the coming Sunday. Only open places are returned and charged, and each row says when it closes (openUntil). On real Prague data (29 Nov 2026, 56 cafés and pharmacies with hours within 600 m of the centre), Sunday 21:30 kept the places that were still open, such as a 24/7 pharmacy and a café open until 22:00, and dropped the rest without charging them. Places with no opening_hours tag are dropped, because OSM doesn't say when they are open. Hours based on sunrise or sunset are only approximate. As of 29 Nov 2026, none of the OpenStreetMap POI Actors we compared in the Store documents an open-at-a-time filter: some return the raw hours string, one returns a parsed weekly schedule and a minimum-open-days filter, and they charge for closed places too.

Can I find every branch of one chain, e.g. all Starbucks in a city? Yes. Set mode to area, areaName to the city, categories to amenity=cafe and nameContains to starbucks. Matching is a case-insensitive substring on the name and brand tags, so "Starbucks Reserve" and a café tagged brand=Starbucks both match. You pay only for the matching branches. Leave nameContains empty to get every place in the categories, as before.

Do I need an API key? No. Overpass and Nominatim are both free public OpenStreetMap services.

What is the OSM/ODbL attribution requirement? OpenStreetMap data is licensed under the Open Database License (ODbL). If you publish or redistribute this data, you must credit "© OpenStreetMap contributors" and note that the data is available under the ODbL — the same requirement Overpass itself states in every response.

Is there a fair-use limit? Yes. The public Overpass API instances (overpass-api.de and the maps.mail.ru / kumi.systems mirrors this Actor falls back to) are volunteer-run and ask that clients query gently — this Actor paces requests at roughly one every 2 seconds and never runs multiple Overpass requests in parallel. Very large areas or categories can still return a 429 (rate limited) or 504 (server too busy); the Actor automatically retries on the fallback mirrors (also on 502/503 and blocked responses) and reports the last error message Overpass returned if every endpoint fails.

Why is my dataset empty? The search could not produce rows — an unresolvable areaName, a malformed bbox, no matching places, or every Overpass endpoint failing. No row is written (and none is charged). The reason is in the run's status message, in the OUTPUT record (errorCode, zeroResultReason) and in the DIAGNOSTIC record. Input problems and empty searches end SUCCEEDED; source failures end FAILED.

What happens with a short run timeout? The Actor reads the run's timeout and stops in time: each Overpass request is cut to the time left, the server-side query timeout shrinks with it, a hanging endpoint gets at most half of the remaining time so the fallback mirror still has a chance, and no new request starts when less than 5 seconds remain. Instead of a TIMED-OUT run with no explanation you get a FAILED run with errorCode: "TIME_LIMIT" and a hint. Overpass can take up to 60 s per endpoint on busy days, so keep the timeout at 120 s or more for city-sized areas.

Why is city or phone empty for some POIs? OSM tagging is contributed by volunteers and coverage is uneven — a POI only has the tags someone added. Missing fields are not a bug in this Actor.

Can I search for something other than cafes or restaurants? Yes — any key=value OSM tag works in OSM categories, e.g. shop=bakery, leisure=fitness_centre, tourism=hotel, amenity=pharmacy.

Run outcome codes

Every run writes OUTPUT.errorCode:

CodeRun statusMeaning
OKSUCCEEDEDRows were written; resultCount and the Overpass endpoint used are in OUTPUT
NO_RESULTSSUCCEEDEDThe query ran but no place matched; widen the radius/bbox, shorten nameContains, pick another openAt time or change categories
INVALID_INPUTSUCCEEDEDMissing coordinates, bad bbox, empty categories, an invalid endpoint URL or an unreadable openAt
AREA_NOT_FOUNDSUCCEEDEDNominatim found no place (or no Overpass area) for areaName
NO_BUDGETSUCCEEDEDMaximum cost per run leaves no budget for a single row
SOURCE_FAILEDFAILEDNominatim or every Overpass endpoint failed (5xx, 429, block, network)
TIME_LIMITFAILEDThe run timeout arrived before Overpass answered; raise the timeout

Run it from code

JavaScript (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('webdatatools/overpass-poi-extractor').call({
mode: 'area',
areaName: 'Prague, Czechia',
categories: ['amenity=cafe'],
maxResults: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]?.name);

Python (apify-client)

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("webdatatools/overpass-poi-extractor").call(run_input={
"mode": "radius", "latitude": 51.5072, "longitude": -0.1276,
"radiusMeters": 800, "categories": ["shop=supermarket"],
})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Apify CLI

$apify call webdatatools/overpass-poi-extractor --input '{"mode":"bbox","bbox":"50.05,14.35,50.13,14.55","categories":["tourism=hotel"]}'

MCP (Apify MCP server)

Call the tool for actor webdatatools/overpass-poi-extractor with the same JSON input. The result is the dataset rows described above.

Part of the webdatatools web-intelligence suite — every Actor is pay-per-event, reads public data without a login, and returns one clean row per entity:

Browse the whole suite at webdatatools, or call ten of these Actors straight from Claude, Cursor or Cline with the webdatatools MCP server.

Website & domain intelligence

Content for AI, LLMs and RAG

Search, video and social

Leads, jobs and company data

Developer, app and research data

Support and feedback

Found a tag mapping worth adding, or a region where results look wrong? Open an issue on the Issues tab.

If this Actor saved you time, please leave a short review on its Apify Store page — it helps other users find it.