# OpenStreetMap POI & Business Extractor (`dabooti/openstreetmap-poi-scraper`) Actor

Extract businesses and places from OpenStreetMap for any city or district: name, category, address, coordinates, website, phone and opening hours. 35+ ready categories or any OSM tag. No key or proxy.

- **URL**: https://apify.com/dabooti/openstreetmap-poi-scraper.md
- **Developed by:** [Danial Maqbool](https://apify.com/dabooti) (community)
- **Categories:** Lead generation, Travel, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 places

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OpenStreetMap POI & Business Extractor

Extract businesses and points of interest from OpenStreetMap for any city, district, region or country: name, category, full address, latitude and longitude, website, phone, opening hours, brand, cuisine, operator, wheelchair access and all raw OSM tags. Choose from 35+ ready categories (restaurants, cafes, pharmacies, clinics, hotels, shops, offices and more) or any OSM tag. Export to JSON, CSV or Excel.

It uses the public OpenStreetMap Nominatim and Overpass APIs. No login, API key or proxy needed.

### What you can use it for

- **Local business lists**: every restaurant, salon, pharmacy or car repair shop in a city.
- **Market and location research**: count competitors per district, find gaps, plan new branches.
- **Maps and apps**: import POIs with coordinates and opening hours into your own map or database.
- **Data enrichment**: add coordinates, websites and opening hours to your own lists.

### What data you get

| Field | Description |
|---|---|
| `name`, `nameEn` | Place name (and English name when tagged) |
| `category` | Matched OSM tag, for example amenity=cafe |
| `street`, `postcode`, `city`, `country`, `fullAddress` | Address (when mapped) |
| `latitude`, `longitude` | Coordinates (centre point for buildings and areas) |
| `website`, `phone`, `openingHours` | Business details (when mapped) |
| `brand`, `operator`, `cuisine`, `wheelchair` | Extra details |
| `osmId`, `osmUrl`, `googleMapsUrl` | OpenStreetMap ID and links |
| `tags` | All raw OSM tags (e-mail tags excluded) |
| `location`, `areaName`, `scrapedAt` | Your search location and the matched area |

### How to use it

1. Add **Locations**, for example `Kreuzberg, Berlin`, `Austin, Texas` or `Lahore`.
2. Pick **Categories**, and optionally **Custom OSM tags** such as `cuisine=pizza` or `craft=brewery`.
3. Set **Max places per location** and click **Start**.

#### Example input

```json
{
  "locations": ["Manhattan, New York", "Shoreditch, London"],
  "categories": ["cafe", "restaurant"],
  "customTags": ["cuisine=vegan"],
  "namedOnly": true,
  "maxPlacesPerLocation": 1000
}
```

#### Example output

One record from a real run:

```json
{
  "location": "Kreuzberg, Berlin",
  "osmId": "node/272811519",
  "osmUrl": "https://www.openstreetmap.org/node/272811519",
  "name": "Cuongs Creative Market",
  "nameEn": null,
  "category": "amenity=cafe",
  "cuisine": null,
  "brand": null,
  "street": null,
  "city": null,
  "postcode": null,
  "country": null,
  "fullAddress": null,
  "latitude": 52.4980559,
  "longitude": 13.4435002,
  "website": "https://www.bizim-kiez.de/",
  "phone": null,
  "openingHours": "Mo-Sa 12:00-20:00",
  "wheelchair": "limited",
  "operator": null,
  "googleMapsUrl": "https://www.google.com/maps/search/?api=1&query=52.4980559,13.4435002",
  "areaName": "Kreuzberg, Friedrichshain-Kreuzberg, Berlin, Germany",
  "tags": {
    "amenity": "cafe",
    "created_by": "Potlatch 0.9c",
    "description": "Nachbarschaftsinitiative gegen Verdrängung  momentan geschlossen  https://www.google.com/maps/place/Caf%C3%A9+B%C3%A4ckerei+Bizim+Kiez,+Wrangelstra%C3%9Fe+76,+10997+Berlin/@52.4980594,13.4435099,16z/data=!4m6!3m5!1s0x47a84fd1967bb061:0x9f8cd7ef01cd0720!8m",
    "name": "Cuongs Creative Market",
    "opening_hours": "Mo-Sa 12:00-20:00",
    "shop": "bakery",
    "website": "https://www.bizim-kiez.de/",
    "wheelchair": "limited"
  },
  "scrapedAt": "2026-11-14T18:11:41.800Z"
}
```

### Pricing

Pay per event: **$1.50 per 1,000 places** saved, plus a tiny standard start fee and Apify platform usage (usually a fraction of a cent per run). Set **Max cost per run** to cap spending.

### Tips and limits

- Data quality depends on OpenStreetMap volunteers: big cities in Europe and North America are very complete, other areas vary. Address, phone and website are only present when someone mapped them.
- Up to 5,000 places per location. For whole countries or very large cities, use districts or neighbourhoods as locations; large areas also take longer (one to two minutes).
- Locations are matched by OpenStreetMap's own search. Add the country or state to avoid look-alike names ("Paris, Texas" vs "Paris, France").
- The Actor follows the Nominatim and Overpass usage policies (one geocoding request per second, small bounded queries) and falls back to a second public Overpass server if the first is busy.

### FAQ

**Is this Google Maps data?** No. All data comes from OpenStreetMap. The `googleMapsUrl` field is only a convenience link to the coordinates.

**Are e-mail addresses included?** No. E-mail tags are left out on purpose.

### Legal note

Data © OpenStreetMap contributors, available under the Open Database License (ODbL). If you publish or share the data, credit "© OpenStreetMap contributors" and keep derived databases under the ODbL.

# Actor input Schema

## `locations` (type: `array`):

Cities, districts, regions or countries, for example "Kreuzberg, Berlin", "Austin, Texas" or "Lahore". Each is looked up on OpenStreetMap and its boundary is used.

## `categories` (type: `array`):

Kinds of places to extract.

## `customTags` (type: `array`):

Optional extra filters as key=value or key, for example cuisine=pizza, craft=brewery or healthcare=physiotherapist.

## `namedOnly` (type: `boolean`):

Skip places without a name (recommended for business lists).

## `maxPlacesPerLocation` (type: `integer`):

Up to 5,000.

## Actor input object example

```json
{
  "locations": [
    "Kreuzberg, Berlin"
  ],
  "categories": [
    "cafe"
  ],
  "namedOnly": true,
  "maxPlacesPerLocation": 100
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `resultsFull` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "locations": [
        "Kreuzberg, Berlin"
    ],
    "categories": [
        "cafe"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dabooti/openstreetmap-poi-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "locations": ["Kreuzberg, Berlin"],
    "categories": ["cafe"],
}

# Run the Actor and wait for it to finish
run = client.actor("dabooti/openstreetmap-poi-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "locations": [
    "Kreuzberg, Berlin"
  ],
  "categories": [
    "cafe"
  ]
}' |
apify call dabooti/openstreetmap-poi-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dabooti/openstreetmap-poi-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PVwy1DzJ9zSSQzcFl/builds/zyQFPvJMcckpFfyZA/openapi.json
