# Google Maps & Local Business Lead, Email & Phone Extractor (`tungnguyen84/google-maps-lead-email-phone-extractor`) Actor

Extract verified business names, addresses, phone numbers, emails, websites, ratings, and social media profiles (LinkedIn, Facebook, Instagram, X/Twitter, TikTok) from Google Maps links, local directories, and company websites.

- **URL**: https://apify.com/tungnguyen84/google-maps-lead-email-phone-extractor.md
- **Developed by:** [Tung Nguyen](https://apify.com/tungnguyen84) (community)
- **Categories:** Lead generation, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 extracted local 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.

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 & Local Business Lead, Email, Phone & Social Media Extractor

Extract verified **Business Names**, **Email Addresses**, **Phone Numbers**, **Physical Addresses**, **Ratings & Reviews**, **Categories**, and **Social Media Profiles** (`LinkedIn`, `Facebook`, `Instagram`, `X/Twitter`, `YouTube`, `TikTok`) from Google Maps links, local business directories, and company websites.

### Why Use This Local Business & Google Maps Lead Extractor?

Google Maps and local directories rarely display business email addresses directly on the listing card. Instead, emails and decision-maker social profiles live on the business's official website (`/contact`, `/about-us`, `/locations`, `/impressum`, and embedded `LocalBusiness` JSON-LD schema).

This Actor combines **local listing metadata parsing** with **automatic website & contact page deep-crawling** to deliver ready-to-contact B2B lead lists in seconds.

#### Key Features

- **Deep Email & Phone Discovery**: Extracts `mailto:` and `tel:` links, inline de-obfuscated emails, and international/local phone numbers while filtering out false positives (`sentry.io`, image extensions, dummy emails).
- **Schema.org `LocalBusiness` & Microdata Extraction**: Automatically parses `application/ld+json` (`LocalBusiness`, `Organization`, `Store`, `Restaurant`, `ProfessionalService`) for structured street addresses, postal codes, aggregate ratings, and review counts.
- **Full Social Media Enrichment**: Captures LinkedIn company/founder links, Facebook pages, Instagram handles, X/Twitter profiles, YouTube channels, and TikTok accounts.
- **Blazing Fast & Cost-Effective**: Built on `@crawlee/cheerio` on Node.js 24, scanning hundreds of business domains per minute with minimal compute cost.

***

### Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | `array` | Required | List of Google Maps place URLs, directory listings, or company websites. |
| `enrichCompanyWebsites` | `boolean` | `true` | Automatically crawl `/contact`, `/about`, and `/locations` pages on each domain to maximize email discovery. |
| `maxBusinesses` | `integer` | `50` | Maximum number of pages/businesses to process per run. |

#### Example Input JSON

```json
{
  "startUrls": [
    { "url": "https://apify.com/contact" },
    { "url": "https://crawlee.dev" }
  ],
  "enrichCompanyWebsites": true,
  "maxBusinesses": 50
}
```

***

### Output Dataset Sample

```json
{
  "businessName": "Apify",
  "category": "Organization",
  "domain": "apify.com",
  "website": "https://apify.com",
  "sourceUrl": "https://apify.com/contact",
  "address": "Prague, Czech Republic",
  "rating": 4.9,
  "reviewCount": 320,
  "emails": ["hello@apify.com"],
  "phones": ["+1 415 555 0199"],
  "linkedin": "https://www.linkedin.com/company/apify",
  "facebook": null,
  "instagram": null,
  "twitter": "https://x.com/apify",
  "youtube": "https://www.youtube.com/@apify",
  "tiktok": null,
  "scrapedAt": "2026-11-01T09:30:00.000Z"
}
```

***

### API Integration (Python & Node.js)

#### Python (`requests`)

```python
import requests

API_TOKEN = "YOUR_APIFY_TOKEN"
url = f"https://api.apify.com/v2/acts/tungnguyen84~google-maps-lead-email-phone-extractor/run-sync-get-dataset-items?token={API_TOKEN}"

payload = {
    "startUrls": [{"url": "https://apify.com/contact"}],
    "enrichCompanyWebsites": True,
    "maxBusinesses": 20
}

response = requests.post(url, json=payload, timeout=120)
for lead in response.json():
    print(lead["businessName"], lead["emails"], lead["phones"])
```

# Actor input Schema

## `startUrls` (type: `array`):

List of Google Maps place URLs, local business directory pages, or company websites to extract verified business names, phones, emails, addresses, ratings, and social media profiles from.

## `enrichCompanyWebsites` (type: `boolean`):

Automatically visit official business websites and /contact, /about pages to extract verified email addresses and social media handles not listed directly on Maps.

## `maxBusinesses` (type: `integer`):

Maximum number of business pages and contact subpages to process per run.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com/contact"
    },
    {
      "url": "https://crawlee.dev"
    }
  ],
  "enrichCompanyWebsites": true,
  "maxBusinesses": 50
}
```

# Actor output Schema

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

Dataset containing enriched local business contact records.

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com/contact"
        },
        {
            "url": "https://crawlee.dev"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tungnguyen84/google-maps-lead-email-phone-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 = { "startUrls": [
        { "url": "https://apify.com/contact" },
        { "url": "https://crawlee.dev" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tungnguyen84/google-maps-lead-email-phone-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 '{
  "startUrls": [
    {
      "url": "https://apify.com/contact"
    },
    {
      "url": "https://crawlee.dev"
    }
  ]
}' |
apify call tungnguyen84/google-maps-lead-email-phone-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tungnguyen84/google-maps-lead-email-phone-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/sFgnjxRuVW5ho8gdz/builds/qxwazLao4k8EIsEoE/openapi.json
