# Business Leads Scraper: Local Businesses with Emails & Phones (`johto.data/osm-business-leads`) Actor

Google Maps alternative for lead generation. Pick a category and a city, get local businesses with name, address, phone, website, opening hours, plus emails and socials from each business website. Open data (OpenStreetMap, ODbL). $2 per 1,000 places.

- **URL**: https://apify.com/johto.data/osm-business-leads.md
- **Developed by:** [Johto Data](https://apify.com/johto.data) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 place returneds

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

## Business Leads Scraper: Local Businesses with Emails & Phones

A low-cost Google Maps alternative for B2B lead generation. Give it a business category and a location. It returns local businesses with name, address, phone, website and opening hours from OpenStreetMap, then visits each business website (homepage plus contact page) to collect public emails, phones and social links.

### What you get

- Business name, category, brand
- Phone, email, website
- Street address, city, postcode, latitude and longitude
- Opening hours
- Emails, phones and socials (Facebook, Instagram, LinkedIn, X, YouTube, TikTok) found on the business website
- `bestEmail`: the first usable email for outreach
- OpenStreetMap link and attribution on every row

### Use cases

- Local lead lists: dentists in Austin, plumbers in Leeds, lawyers in Toronto
- Agency prospecting and cold email lists
- Market maps and territory planning
- Enriching a CRM with phone, website and address

### Input example

```json
{
  "categories": ["dentist", "orthodontist"],
  "location": "Austin, Texas, USA",
  "maxResults": 200,
  "scrapeWebsiteContacts": true,
  "onlyWithEmail": false
}
```

Categories accept plain words (restaurant, cafe, dentist, doctor, pharmacy, hotel, gym, hairdresser, beauty salon, car repair, car dealer, plumber, electrician, roofer, lawyer, accountant, real estate agent, insurance, it company) or any OpenStreetMap tag such as `shop=bakery`. You can also pass `latitude`, `longitude` and `radiusKm`.

### Output example

```json
{
  "name": "Sample Family Dental",
  "category": "dentist",
  "bestEmail": "office@sampledental.com",
  "phone": "+1 512 555 0100",
  "website": "https://sampledental.com/",
  "fullAddress": "100 Main Street, Austin, 78701",
  "openingHours": "Mo-Fr 08:00-17:00",
  "emailsFromWebsite": ["office@sampledental.com"],
  "socialsFromWebsite": {"facebook": "https://www.facebook.com/sampledental"},
  "latitude": 30.2672,
  "longitude": -97.7431,
  "osmUrl": "https://www.openstreetmap.org/node/123",
  "attribution": "Data (c) OpenStreetMap contributors, ODbL 1.0."
}
```

### Pricing

Pay per event, no start fee:

- $0.002 per place returned ($2 per 1,000)
- $0.001 extra per place where website contacts are found ($1 per 1,000)

Compared with Google Maps scrapers that charge about $4 to $5 per 1,000 places plus $2 to $4 per 1,000 for contact details.

### Coverage and limits

OpenStreetMap coverage is strong in Europe and big cities and thinner in some rural areas. Not every place has a phone or website. No ratings or reviews. Emails come only from tags and the business's own public website. No people profiles, no logins, no purchased databases.

### Data licence

Place data (c) OpenStreetMap contributors, available under the Open Database License (ODbL). Credit OpenStreetMap when you publish results. Location lookup uses Nominatim once per run.

### FAQ

**Is this Google Maps data?** No. It is OpenStreetMap open data, which you may reuse commercially with attribution.
**Can I get more than 5,000 places?** Run several categories or cities.
**Do you verify emails?** No SMTP checks. Pair with an email validator before sending.

# Actor input Schema

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

Plain words like restaurant, dentist, plumber, lawyer, hotel, gym, hairdresser, car repair, accountant, real estate agent. Or any OpenStreetMap tag like shop=bakery.

## `location` (type: `string`):

City, region or country, for example Austin, Texas, USA. Geocoded once with OpenStreetMap Nominatim.

## `latitude` (type: `string`):

Use with longitude and radius instead of a location name.

## `longitude` (type: `string`):

Use with latitude.

## `radiusKm` (type: `integer`):

Search radius when latitude and longitude are set.

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

Maximum places to return across all categories.

## `scrapeWebsiteContacts` (type: `boolean`):

Visit each business homepage and its contact page for public emails, phones and social links. Extra $1 per 1,000 places where contacts are found.

## `onlyWithWebsite` (type: `boolean`):

Skip places with no website tag.

## `onlyWithPhone` (type: `boolean`):

Skip places with no phone tag.

## `onlyWithEmail` (type: `boolean`):

Return only places where an email was found (OpenStreetMap or website).

## Actor input object example

```json
{
  "categories": [
    "dentist"
  ],
  "location": "Austin, Texas, USA",
  "radiusKm": 5,
  "maxResults": 20,
  "scrapeWebsiteContacts": true,
  "onlyWithWebsite": false,
  "onlyWithPhone": false,
  "onlyWithEmail": false
}
```

# Actor output Schema

## `results` (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 = {
    "categories": [
        "dentist"
    ],
    "location": "Austin, Texas, USA",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("johto.data/osm-business-leads").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 = {
    "categories": ["dentist"],
    "location": "Austin, Texas, USA",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("johto.data/osm-business-leads").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 '{
  "categories": [
    "dentist"
  ],
  "location": "Austin, Texas, USA",
  "maxResults": 20
}' |
apify call johto.data/osm-business-leads --silent --output-dataset

```

## MCP server setup

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

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/S8gWJfATptI5ifPI8/builds/NtsF2dVdeHmYJuDaO/openapi.json
