# OpenStreetMap Scraper: Business Leads by Category & City (`latamdatatools/osm-business-poi-extractor`) Actor

Extract local businesses from OpenStreetMap by category and area (city, district, bounding box or radius): name, address, phone, website, email, opening hours, cuisine and coordinates. An open alternative to Google Maps scraping. ODbL data with attribution.

- **URL**: https://apify.com/latamdatatools/osm-business-poi-extractor.md
- **Developed by:** [Julian Genuario](https://apify.com/latamdatatools) (community)
- **Categories:** Lead generation, Travel, Real estate
- **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 business places

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Scraper: Business Leads by Category & City

Get a list of **local businesses** of any category in any **city, district, bounding box or radius**, straight from **OpenStreetMap**: name, category, full address, **phone, website, email**, Facebook/Instagram, **opening hours**, cuisine, wheelchair access and coordinates.

It is the open-data alternative to scraping Google Maps: no login, no proxies, no ToS risk, and the data can be reused under the **ODbL** license.

### What does OpenStreetMap Business Scraper do?

OpenStreetMap Business Scraper extracts local businesses and points of interest (POI) from OpenStreetMap by category and area (city, district, bounding box or radius): name, address, phone, website, email, opening hours, cuisine and coordinates. An open-data alternative to Google Maps scraping for local lead generation, ODbL licensed with attribution.

### How to use OpenStreetMap Business Scraper

1. Click **Try for free** on this page (a free Apify account is enough to start).
2. Fill in the input (see the examples below) or keep the prefilled example.
3. Click **Start** and wait for the run to finish.
4. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or read them with the Apify API.
5. Optional: create a **Schedule** to run it daily or weekly, and connect a webhook or an integration (Make, Zapier, n8n, Slack).

### Who uses it

- **Lead generation and local sales**: all dentists in a district, all car repair shops in a city, all hotels in a region, with phone and website.
- **Market research and franchises**: count and map competitors, find white spots.
- **Delivery, logistics and field sales**: geocoded business lists for route planning.
- **Data teams**: enrich with the website (for example with a company-enrichment or email-finder Actor).

### Features

- 40+ ready-made categories (restaurants, cafes, bars, hotels, dentists, doctors, pharmacies, vets, hairdressers, beauty, gyms, car repair, dealers, supermarkets, clothes, electronics, hardware, furniture, real estate, lawyers, accountants, insurance, IT companies, coworking, plumbers, electricians...) plus **any OSM tag** (`shop=bicycle`, `craft=winery`, `cuisine=sushi`).
- Areas by **place name** (resolved to the official boundary with Nominatim), **bounding box** or **center + radius**.
- Ways and buildings are returned with their center point, so every business has coordinates.
- De-duplicated across categories and areas; `categories` lists every category a place matched.
- Filters: only named places, only places with phone/website/email.
- **Only new** mode: schedule it monthly and get only businesses that were added to the map since the last run.
- Polite use of the public Overpass servers: one query per area, several servers, exponential backoff when they are busy. You can also point it to your own Overpass instance.

### Input example

```json
{
  "locations": ["Palermo, Buenos Aires", "Austin, Texas"],
  "categories": ["dentist", "doctor"],
  "customTags": ["shop=bicycle"],
  "onlyWithContact": true,
  "maxResults": 2000
}
```

Other area types: `"boundingBoxes": ["-34.60,-58.45,-34.57,-58.40"]` (south,west,north,east) or `"centers": ["40.7484,-73.9857,800"]` (lat,lon,meters).

### Output

```json
{
  "osmType": "node",
  "osmId": 1383914860,
  "osmUrl": "https://www.openstreetmap.org/node/1383914860",
  "name": "The Breslin",
  "categories": ["restaurant"],
  "type": "amenity=restaurant",
  "brand": null,
  "cuisine": "gastropub",
  "street": "West 29th Street",
  "houseNumber": "16",
  "city": "New York",
  "postcode": "10001",
  "state": "NY",
  "country": null,
  "fullAddress": "West 29th Street 16, 10001 New York, NY",
  "phone": "+1 212-679-1939",
  "website": null,
  "email": null,
  "facebook": null,
  "instagram": null,
  "openingHours": "Mo-Su 07:00-02:00",
  "wheelchair": "yes",
  "latitude": 40.7456818,
  "longitude": -73.9881244,
  "searchArea": "40.7484,-73.9857,400",
  "attribution": "© OpenStreetMap contributors, ODbL 1.0 (https://www.openstreetmap.org/copyright)"
}
```

Only business information is returned: no OpenStreetMap user names, no edit history.

### Pricing

Pay per event: **USD 1.50 per 1,000 businesses** (USD 0.0015 each) + **USD 0.01 per run**. Duplicates, places filtered out and places already delivered in "only new" mode are free. Your "max charge per run" is respected.

### Coverage and limits

- OpenStreetMap is built by volunteers. Coverage is excellent in Europe and big cities, and thinner elsewhere; phone/website/opening hours are present for part of the places (in a test in Buenos Aires and Manhattan: ~65 % with address, ~28 % with website, ~22 % with phone). Check a small area first.
- Maximum area per query: 30,000 km² for a place name, 5,000 km² for a bounding box, 50 km radius. For a whole country, split it into cities or regions.
- The public Overpass servers are shared and sometimes busy; the Actor waits and retries (a large city can take a few minutes). Results are never invented: if a server cannot answer, the area is reported in the status message and nothing is charged for it.
- "Only new" means new **in OpenStreetMap**, which is not always a newly opened business.

### License and attribution (ODbL)

Data © **OpenStreetMap contributors**, available under the [Open Database License (ODbL) 1.0](https://www.openstreetmap.org/copyright). Every row carries the `attribution` field. If you publish or share a database made from this data, you must credit OpenStreetMap and share that database under the ODbL (share-alike). Using it internally (CRM, outreach, analysis) is allowed.

Place names are resolved with [Nominatim](https://nominatim.org) (max 1 request per second, per its usage policy) and data is read with the [Overpass API](https://overpass-api.de). Not affiliated with or endorsed by the OpenStreetMap Foundation.

### Cost examples

Prices at the current pay-per-event rate: USD 0.01 per run and USD 1.50 per 1,000 businesses (duplicates, filtered places and places already delivered in only-new mode are free). You can set a maximum charge per run in the run options.

| Job | Approximate cost |
|---|---|
| Test run: dentists in Palermo, Buenos Aires (measured: 6 businesses, 46 s with Overpass waiting) | about $0.019 |
| All restaurants and cafés of a mid-size city (~2,000 places) | about $3.01 |
| 500 businesses with phone or website only | about $0.76 |
| Monthly only-new check of 5 categories in one city (~50 new places) | about $0.085 per run |

### Use it from your code, an integration or an AI agent

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("latamdatatools/osm-business-poi-extractor").call(run_input={
  "locations": [
    "Palermo, Buenos Aires"
  ],
  "categories": [
    "dentist",
    "restaurant"
  ],
  "onlyWithContact": True,
  "maxResults": 500
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["fullAddress"], item["phone"], item["website"])
```

**JavaScript / Node.js** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('latamdatatools/osm-business-poi-extractor').call({
  locations: [
    'Palermo, Buenos Aires'
  ],
  categories: [
    'dentist',
    'restaurant'
  ],
  onlyWithContact: true,
  maxResults: 500
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => [i.name, i.phone, i.website]));
```

**No code:**

- **Schedules:** save your input as a Task and run it monthly from Apify Console (Schedules).
- **Integrations:** send the results to Google Sheets, Slack, email, Make, Zapier, n8n or Airbyte from the Integrations tab, or call your own webhook when a run finishes.
- **AI agents:** add it as a tool in Claude, Cursor, VS Code and other MCP clients through the Apify MCP server (`https://mcp.apify.com`), so the agent can find local businesses of a category in a city with their public contact details.

### FAQ

**Can I call it from my own code or from an AI agent?** Yes. Start runs and fetch results with the Apify API or the JavaScript / Python clients, or use it as a tool from Claude, Cursor and other MCP clients through the Apify MCP server (`mcp.apify.com`).

**Can I run it automatically?** Yes. Create a Schedule in Apify Console (for example every morning) and add a webhook or an integration to get the results where you need them.

**Which export formats are available?** JSON, JSONL, CSV, Excel (XLSX), XML, RSS and HTML table, from the Output tab or the API.

**What does it cost?** See the Pricing section above. You only pay for the events listed there.

# Actor input Schema

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

Place names, one per line (e.g. "Palermo, Buenos Aires", "Austin, Texas", "Lyon, France"). Resolved with OpenStreetMap Nominatim to the official boundary. Max 30,000 km² per place.

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

One or more. A business matching several categories appears once.

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

Any other OpenStreetMap tag, one per line: shop=bicycle, craft=winery, cuisine=sushi, office=architect, amenity=dentist|clinic, or just a key (craft).

## `boundingBoxes` (type: `array`):

"south,west,north,east" in decimal degrees, max 5,000 km² each.

## `centers` (type: `array`):

"lat,lon,radiusMeters" (max 50,000 m), e.g. 40.7484,-73.9857,800.

## `requireName` (type: `boolean`):

Skip objects without a name (usually not useful for leads).

## `onlyWithContact` (type: `boolean`):

Keep only businesses that have at least one contact field in OpenStreetMap.

## `includeExtraTags` (type: `boolean`):

Adds an extraTags object: cuisine details, diets, takeaway, delivery, payment methods, wheelchair, operator, stars...

## `onlyNew` (type: `boolean`):

Return only places not delivered in earlier runs with the same alert name (newly mapped businesses). Schedule weekly or monthly.

## `alertName` (type: `string`):

Separate memory per alert.

## `maxResults` (type: `integer`):

Total cap (and charge cap).

## `overpassUrl` (type: `string`):

Leave empty to use the public Overpass servers (with backoff when they are busy). If you run your own Overpass instance, put its /api/interpreter URL here.

## Actor input object example

```json
{
  "locations": [
    "Palermo, Buenos Aires"
  ],
  "categories": [
    "dentist"
  ],
  "requireName": true,
  "onlyWithContact": false,
  "includeExtraTags": false,
  "onlyNew": false,
  "alertName": "default",
  "maxResults": 1000
}
```

# Actor output Schema

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

No description

## `runSummary` (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": [
        "Palermo, Buenos Aires"
    ],
    "categories": [
        "dentist"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("latamdatatools/osm-business-poi-extractor").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": ["Palermo, Buenos Aires"],
    "categories": ["dentist"],
}

# Run the Actor and wait for it to finish
run = client.actor("latamdatatools/osm-business-poi-extractor").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": [
    "Palermo, Buenos Aires"
  ],
  "categories": [
    "dentist"
  ]
}' |
apify call latamdatatools/osm-business-poi-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,latamdatatools/osm-business-poi-extractor"
        }
    }
}
```

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/EUvt2KZ7b8HeQKxzF/builds/LUUAM3Ra3vvca88ZL/openapi.json
