# Local Business Leads Scraper: Emails, Phones, Websites (`rawtojson/local-business-leads-finder`) Actor

Get local business leads by category and city: website, phone, public company email and social profiles, deduplicated. Uses OpenStreetMap open data or your own Google Places key; missing contacts are completed from each business website. Cheaper than Google Maps email extractors.

- **URL**: https://apify.com/rawtojson/local-business-leads-finder.md
- **Developed by:** [Juan Francisco](https://apify.com/rawtojson) (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

Pay per event

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/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

## Local Business Leads Scraper: emails, phones, websites and socials by city

**Local business leads finder** that returns a deduplicated list of businesses (dentists, restaurants, lawyers, gyms, plumbers, real estate agencies...) for any city, with **website, phone, public company email and social profiles**, ready for outreach. Pick a category and a place and get a clean JSON/CSV/Excel table in minutes.

It combines two legal data paths: **OpenStreetMap open data** (default, no key, no scraping of Google) and the **official Google Places API (New)** using your own Google Cloud key and quota. Contact details missing in the source are then looked up on the business's own website (home and contact page, respecting `robots.txt`).

### Who is it for

- Agencies and freelancers selling web design, SEO, ads or software to local businesses.
- Sales teams building prospect lists by niche and city.
- Franchise and expansion analysts mapping competitors.

### Input

| Field | Description |
|---|---|
| `location` | City or area, e.g. `Valencia, Spain`. Required. |
| `category` | 32 ready-made categories (dentist, restaurant, lawyer...). |
| `customOsmTags` | Any OpenStreetMap tag `key=value` instead of the category. |
| `maxResults` | Leads to return (you pay per lead). |
| `enrichFromWebsite` | Look for public company emails, phones and socials on the business website. Default on. |
| `onlyWithContact` | Return only businesses with a website, phone or email. Default on. |
| `mode` | `openstreetmap` (default) or `google-places`. |
| `googlePlacesApiKey` | Secret. Your own key, only for `google-places` mode. Google bills your account. |
| `searchQuery` | Free text for Google mode, e.g. `vegan restaurants in Madrid`. |

```json
{ "category": "dentist", "location": "Valencia, Spain", "maxResults": 25 }
```

### Example output

```json
{
  "name": "Art & Dent",
  "category": "dentist",
  "phone": "+34963891868",
  "email": "info@clinicaartident.com",
  "emails": ["info@clinicaartident.com"],
  "website": "https://clinicadentalartident.es/",
  "socials": {
    "facebook": "https://www.facebook.com/clinicaartident",
    "instagram": "https://www.instagram.com/clinicaartident/",
    "youtube": "https://www.youtube.com/user/clinicaartident"
  },
  "latitude": 39.4728242,
  "longitude": -0.3534794,
  "source": "openstreetmap",
  "sourceUrl": "https://www.openstreetmap.org/node/6443870729",
  "searchLocation": "Valencia, Spain",
  "checkedAt": "2026-11-23T15:55:04.353Z"
}
```

Real test (Valencia, dentists): of 31 leads, 30 had a phone, 19 a website, 14 a public company email (OpenStreetMap alone has an email for only about 8 %) and 14 at least one social profile.

### Pricing (pay per event)

| Event | Price |
|---|---|
| `lead` (one valid business) | **0.002 USD** (2 USD per 1,000 leads) |

You are charged only for valid leads (with a way to contact if `onlyWithContact` is on), never for duplicates or failures.

| Actor | Users (30 d) | Approx. price per 1,000 places |
|---|---|---|
| **This Actor (OpenStreetMap mode)** | new | **2 USD**, contact enrichment included |
| compass/crawler-google-places (Google Maps Scraper) | 48,262 | about 4 USD plus add-ons for contact details (check its page) |
| scraperlink/google-maps-scraper | 1,956 | 0.25 USD, Google Maps data without website email search |

This Actor is not a Google Maps scraper: it trades coverage for open data and company emails found on each website. In `google-places` mode Google also bills your own account.

### Honest limits

- **OpenStreetMap coverage is thinner than Google Maps** and varies by country and category: fewer businesses, and addresses are often incomplete. Ratings and review counts are only available in Google mode.
- Google mode returns at most 60 results per search (Google API limit). Run several searches (districts, keywords) for more.
- The public Overpass servers can be slow or busy; the Actor retries on several mirrors.
- Emails are found only on the business's own website and only generic company mailboxes (`info@`, `contacto@`, `reservas@`...). Personal-looking addresses are skipped.

### Schedule and send to Sheets or webhooks

Run weekly on a city/category and use the Apify **Google Sheets** integration or a webhook on `ACTOR.RUN.SUCCEEDED` to push new leads to your CRM. Dataset export works as JSON, CSV or Excel.

### FAQ

**Does it scrape Google Maps?** No. It uses OpenStreetMap or the official Google Places API with your own key.

**Do I need an API key?** Not for the default OpenStreetMap mode.

**Is my Google key stored?** No. It is a secret input field used only during the run.

### Legal notice / GDPR

OpenStreetMap data is © OpenStreetMap contributors, licensed under the ODbL; attribution is required if you republish it. Google Places data is subject to Google's terms, which are your responsibility when you use your own key. The Actor collects only business-level public contact data (company mailboxes, business phones, company social pages) and skips personal-looking emails. You remain the data controller of any list you build: if you contact people, respect GDPR and ePrivacy rules (legitimate interest, opt-out, anti-spam law of the target country).

### En español

Encuentra negocios locales por categoría y ciudad con web, teléfono, email público de empresa y redes sociales, deduplicados y listos para captación. Usa datos abiertos de OpenStreetMap (sin clave) o la API oficial de Google Places con tu propia clave. Solo se devuelven datos de negocio públicos; cumple el RGPD en tus envíos comerciales. Precio: 0,002 USD por lead.

# Actor input Schema

## `mode` (type: `string`):

openstreetmap = free open data (ODbL), no key needed. google-places = Google Places API (New) using YOUR OWN Google Cloud key and quota (max 60 results per search).

## `category` (type: `string`):

Type of business to find. For other types use 'Custom OSM tags' (OpenStreetMap mode) or 'Search query' (Google mode).

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

City, district or region, for example 'Valencia, Spain' or 'Berlin'. Required.

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

Maximum number of leads to return (you are charged per lead). Google mode returns at most 60 per search.

## `enrichFromWebsite` (type: `boolean`):

Visits the home page and contact page of each business website (respecting robots.txt) to find public company emails (info@, contacto@...), phones and social profiles.

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

Skip businesses that have no website, phone or email, so you only pay for usable leads.

## `customOsmTags` (type: `array`):

OpenStreetMap mode only. Overrides the category. List of key=value tags, for example amenity=dentist or shop=bakery. See wiki.openstreetmap.org/wiki/Map_features.

## `searchQuery` (type: `string`):

Google Places mode only. Free text such as 'vegan restaurants in Madrid'. If empty, the category and location are used.

## `googlePlacesApiKey` (type: `string`):

Only for google-places mode. Your Google Cloud API key with Places API (New) enabled. Google bills your own account; the key is never stored.

## `languageCode` (type: `string`):

Optional language code for Google results, for example en, es or de.

## Actor input object example

```json
{
  "mode": "openstreetmap",
  "category": "dentist",
  "location": "Valencia, Spain",
  "maxResults": 25,
  "enrichFromWebsite": true,
  "onlyWithContact": true
}
```

# Actor output Schema

## `leads` (type: `string`):

Business leads with phone, email, website and socials.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("rawtojson/local-business-leads-finder").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("rawtojson/local-business-leads-finder").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 '{}' |
apify call rawtojson/local-business-leads-finder --silent --output-dataset

```

## MCP server setup

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

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/33zvqTeIljkdhjSEy/builds/lbeQOZr8Dqo1L5US9/openapi.json
