# Local Business & OSM B2B Leads (Phone, Email, GPS) | $2/1K (`kiosklabs/google-maps-b2b-leads`) Actor

Extract verified local B2B business leads worldwide via OpenStreetMap & website contact scraping: business name, phone, email, website, hours, address & GPS.

- **URL**: https://apify.com/kiosklabs/google-maps-b2b-leads.md
- **Developed by:** [batuhan senavci](https://apify.com/kiosklabs) (community)
- **Categories:** Lead generation, Automation, Integrations
- **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 extracted local b2b business leads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Local Business & OpenStreetMap B2B Leads (Phone, Email, GPS)

Extract **local business leads** in any city from **OpenStreetMap** — flattened into one row per business so you can export CSV, Excel, JSON, or Google Sheets straight from Apify Console.

**Data source, stated plainly:** this Actor queries OpenStreetMap through three public services — **Photon** (search and geocoding), **Nominatim** (place details), and **Overpass** (tag queries) — and can optionally visit each business's own website to find a published contact email and phone. **It does not scrape Google Maps**, so there are no Google blocks, CAPTCHAs, or proxies involved. The trade-off is coverage: you get what the OpenStreetMap community has mapped, which varies by city and category and is generally smaller than Google Maps.

***

### Extracted Fields Per Lead Row

- **`name`** — business name
- **`category`** — OpenStreetMap category (`dentist`, `cafe`, `lawyer`, ...)
- **`phone`**, **`phoneSource`** — phone number and where it came from (`openstreetmap` or `website`)
- **`email`**, **`emailSource`** — contact email and where it came from (`openstreetmap` or `website`)
- **`website`** — business website URL
- **`openingHours`** — opening hours in OpenStreetMap syntax
- **`fullAddress`, `street`, `city`, `postcode`, `country`** — address components when mapped
- **`latitude`, `longitude`** — GPS coordinates
- **`osmType`, `osmId`, `osmUrl`** — OpenStreetMap element reference and link
- **`searchQuery`, `searchLocation`, `scrapedAt`**

Fields are `null` when the information is not published. Leads with the most contact data (email, then phone, then website) are returned first.

#### Website contact enrichment (`scrapeWebsiteContacts`, on by default)

Many OpenStreetMap places list a website but no email. When enabled, the Actor fetches the homepage of each such lead (and one contact/about page if the homepage has no email) and extracts a `mailto:`/plain-text email and a `tel:` phone link. It runs 5 websites in parallel with a 5-second timeout per request. Sites that block automated requests or publish no contact details simply stay `null`.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `query` | `string` | `"dentist"` | Business category or keyword. Simple category words (`dentist`, `cafe`, `bakery`, `lawyer`, `hotel`) match best. |
| `location` | `string` | `"New York"` | City or area (e.g. `Austin, TX`, `London`, `Berlin`). |
| `limit` | `integer` | `25` | Max leads per run (`1`–`200`). |
| `scrapeWebsiteContacts` | `boolean` | `true` | Look for email/phone on business websites when OpenStreetMap has none. |

Very large locations (a whole state or country) are searched as a city-scale box (about 110 km × 110 km) around the location's center. For regional coverage, run the Actor once per city.

#### Example Input

```json
{
  "query": "dentist",
  "location": "New York",
  "limit": 25,
  "scrapeWebsiteContacts": true
}
```

***

### Example Output Row

```json
{
  "name": "Example Dental Care",
  "category": "dentist",
  "phone": "+1 212 555 0100",
  "email": "info@exampledental.com",
  "website": "https://www.exampledental.com/",
  "openingHours": "Mo-Fr 09:00-18:00; Sa 09:00-14:00",
  "fullAddress": "120 Example Ave, New York, 10001",
  "street": "120 Example Ave",
  "city": "New York",
  "postcode": "10001",
  "country": null,
  "latitude": 40.7324,
  "longitude": -74.0031,
  "osmType": "node",
  "osmId": 1234567890,
  "osmUrl": "https://www.openstreetmap.org/node/1234567890",
  "phoneSource": "openstreetmap",
  "emailSource": "website",
  "searchQuery": "dentist",
  "searchLocation": "New York, New York, United States",
  "scrapedAt": "2026-11-13T11:16:00.000Z"
}
```

***

### Pricing (Pay-Per-Event)

- **`lead-extracted`** — charged once per lead pushed to the dataset.

If your run's maximum charge limit is reached, the Actor stops and does not push unpaid leads. A search with zero matches succeeds with an empty dataset and no charge.

### Failure Behaviour

- Location cannot be geocoded, or the geocoder is down → run **FAILED**, nothing charged.
- Both Overpass and Photon are unavailable → run **FAILED**, nothing charged.
- Only one of them is unavailable → the run continues with the other and records this in `SUMMARY.sources`.

***

### Automate with n8n, Make.com & Zapier

#### n8n multi-city lead engine

1. Create a **Google Sheet / Loop Over Items** list of target cities.
2. Call **Apify → Run an Actor and Get Dataset** (`kiosklabs/google-maps-b2b-leads`) per city.
3. Filter rows where `email` or `phone` is not empty and push them to your CRM or outreach tool.

#### Make.com & Zapier

1. Trigger on a schedule or form submission → **Apify: Run Actor**.
2. Use **Apify: Fetch Dataset Items** → each lead maps as an individual row into **Google Sheets**, **Excel 365**, or **Pipedrive**.

***

### Data Licence & Responsible Use

Place data © [OpenStreetMap contributors](https://www.openstreetmap.org/copyright), available under the Open Database License (ODbL). If you publish or redistribute the data, keep that attribution. Contact details are business contact information published by the businesses themselves or by map contributors; make sure your outreach complies with the anti-spam and privacy rules that apply to you (e.g. CAN-SPAM, GDPR).

# Actor input Schema

## `query` (type: `string`):

Business type or keyword to search in OpenStreetMap names and categories (e.g., 'dentist', 'cafe', 'lawyer', 'bakery', 'hotel', 'car repair'). Simple category words match best.

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

Target city or area (e.g., 'New York', 'Austin, TX', 'London', 'Toronto'). Very large regions are searched as a city-scale box around their center.

## `limit` (type: `integer`):

Maximum number of business leads to return per run (1–200, default: 25). Each pushed lead is one 'lead-extracted' event.

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

When a lead has a website but no email or phone in OpenStreetMap, fetch its homepage (and one contact page) to look for a published contact email and tel: link. 5 sites in parallel, 5-second timeout each.

## Actor input object example

```json
{
  "query": "dentist",
  "location": "New York",
  "limit": 25,
  "scrapeWebsiteContacts": true
}
```

# Actor output Schema

## `dataset` (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 = {
    "query": "dentist",
    "location": "New York"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kiosklabs/google-maps-b2b-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 = {
    "query": "dentist",
    "location": "New York",
}

# Run the Actor and wait for it to finish
run = client.actor("kiosklabs/google-maps-b2b-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 '{
  "query": "dentist",
  "location": "New York"
}' |
apify call kiosklabs/google-maps-b2b-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kiosklabs/google-maps-b2b-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/QguLyC8Na6m6JIxT8/builds/fXi4czeGH4JCJRS1I/openapi.json
