# Google Maps Leads Scraper: Phones, Emails & Ad Audiences (`ksvan/google-maps-leads`) Actor

Businesses from Google Maps with E.164 phones and a mobile flag, emails and social profiles from their websites, free filters, de-duplication, and a ready customer-list CSV for Meta, Google and LinkedIn ad audiences. Fast HTTP, no browser.

- **URL**: https://apify.com/ksvan/google-maps-leads.md
- **Developed by:** [K.S. Van](https://apify.com/ksvan) (community)
- **Categories:** Lead generation
- **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/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

## Google Maps Leads Scraper: Phones, Emails & Socials

Turn any Google Maps search into a clean lead list: businesses with **phones in E.164 format and a mobile flag**, **emails and social profiles from their websites**, ratings, opening hours and coordinates, plus a **customer-list CSV you can upload straight to Meta, Google or LinkedIn ads**.

Plain HTTP, no browser: fast and low-cost. About **$3 per 1,000 places with contacts**.

### What you get

| Field | Example |
|---|---|
| `name`, `category`, `categories` | Smile Dental, Dentist |
| `address`, `street`, `city`, `postalCode`, `countryCode`, `neighborhood` | 123 Main St, Austin, 78701, US |
| `phone` (E.164), `phoneIsMobile` | +15125550123, true / false / null |
| `emails` (own-domain addresses first) | info@…, anna.smith@… |
| `socials` | facebook, instagram, linkedin, youtube, tiktok, x |
| `website`, `websitePhones` | https://… |
| `rating`, `reviewsCount` | 4.8, 312 |
| `openingHours`, `timezone` | Monday 9:00–17:00 … |
| `lat`, `lng`, `placeId`, `cid`, `googleMapsUrl` | |
| `businessStatus`, `permanentlyClosed`, `temporarilyClosed`, `claimedByOwner` | OPEN, false, false, true |
| `searchString`, `rank` | dentist Austin TX, 3 |

### Why this one

- **Emails from contact and team pages, not just the home page.** Agencies and clinics often list every person on a team page, so you get named emails (`anna.smith@…`), not only `info@`. Cloudflare-protected emails are decoded.
- **Phones ready for ads and SMS tools.** Every number is normalized to E.164 (`+48512345678`) and flagged as mobile when the numbering plan allows it (in the US and Canada the number alone does not tell, so the flag is `null` instead of a guess).
- **Free filters.** Skip permanently closed places, keep only categories that contain a word, exclude names, set a minimum rating, require a phone or website. You only pay for places you keep.
- **De-duplication across searches.** Search 20 cities with 5 terms; a business found twice is saved and charged once.
- **Ad-audience export.** `CUSTOMER_LIST.csv` (email, phone, country, company) and `CUSTOMER_LIST_SHA256.csv` (hashed) in the run's key-value store, ready for Meta Custom Audiences, Google Customer Match and LinkedIn Matched Audiences.
- **Up to ~200 places per search**, paged automatically. Add more search terms or smaller areas to cover a big city.

### Input

```json
{
  "searchStrings": ["real estate agency", "property management"],
  "locations": ["Austin TX", "Dallas TX"],
  "maxPlacesPerSearch": 200,
  "language": "en",
  "countryCode": "us",
  "scrapeContacts": true,
  "skipClosed": true,
  "categoryMustContain": ["real estate"],
  "excludeNameContains": ["bank"]
}
```

Every search term is combined with every location. `countryCode` sets the Google region and the phone format.

### Pricing

Pay per result:

- **Place**: $0.002 per business saved.
- **Website contacts**: $0.001 per business where emails or social profiles were found.

Filtered-out and duplicate places are free. You can cap the cost of a run with the **Maximum cost per run** setting.

### Tips

- For B2B lead lists, turn on `requirePhone` or `requireWebsite`.
- To reach more places in a large city, add district names to `locations` (e.g. "Brooklyn NY", "Queens NY").
- Use `language` matching the country so categories and opening hours come back in the local language.

### Is it legal?

The actor collects publicly listed business information. Personal data (for example sole traders' names, emails and phones) is protected by laws such as GDPR. Use it for legitimate purposes and follow the rules on direct marketing in your country.

# Actor input Schema

## `searchStrings` (type: `array`):

What to look for, e.g. 'real estate agency', 'dentist'.

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

Cities or areas. Every term is searched in every location.

## `maxPlacesPerSearch` (type: `integer`):

Google returns up to ~200 places for one search.

## `language` (type: `string`):

Language.

## `countryCode` (type: `string`):

Used for Google results and to format phone numbers.

## `scrapeContacts` (type: `boolean`):

Emails & social profiles from websites.

## `skipClosed` (type: `boolean`):

Skip permanently closed (free).

## `categoryMustContain` (type: `array`):

Keep only places whose Google category contains one of these words.

## `excludeNameContains` (type: `array`):

Exclude names containing (free filter).

## `minRating` (type: `number`):

Minimum rating.

## `requirePhone` (type: `boolean`):

Only places with a phone.

## `requireWebsite` (type: `boolean`):

Only places with a website.

## `maxConcurrency` (type: `integer`):

Parallel searches.

## `proxyConfiguration` (type: `object`):

Proxy.

## Actor input object example

```json
{
  "searchStrings": [
    "real estate agency"
  ],
  "locations": [
    "Austin TX"
  ],
  "maxPlacesPerSearch": 200,
  "language": "en",
  "countryCode": "us",
  "scrapeContacts": true,
  "skipClosed": true,
  "minRating": 0,
  "requirePhone": false,
  "requireWebsite": false,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One record per business.

## `customerList` (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 = {
    "searchStrings": [
        "real estate agency"
    ],
    "locations": [
        "Austin TX"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ksvan/google-maps-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 = {
    "searchStrings": ["real estate agency"],
    "locations": ["Austin TX"],
}

# Run the Actor and wait for it to finish
run = client.actor("ksvan/google-maps-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 '{
  "searchStrings": [
    "real estate agency"
  ],
  "locations": [
    "Austin TX"
  ]
}' |
apify call ksvan/google-maps-leads --silent --output-dataset

```

## MCP server setup

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