# Google Maps B2B Lead Harvester with Emails (`candid_rookery/google-maps-b2b-lead-harvester`) Actor

Extract verified business leads from Google Maps including company name, phone, website, verified email, and social media handles. 100% cloud-hosted with Pay-Per-Result pricing.

- **URL**: https://apify.com/candid_rookery/google-maps-b2b-lead-harvester.md
- **Developed by:** [Dominator](https://apify.com/candid_rookery) (community)
- **Categories:** Lead generation, Business, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 B2B Lead Harvester (Instantly & Cold-Email Ready)

> **Extract verified local business leads from Google Maps with clean company names, direct contact emails, phone numbers, and social media links. 100% formatted for drag-and-drop import into Instantly, Smartlead, Apollo, and HubSpot.**

***

### 🎯 Why This Actor Over Competitors?

Most scrapers return raw, unformatted junk that requires hours of manual spreadsheet cleaning. This Actor is built from the ground up for **cold emailers, sales agencies, and growth marketers**.

| Feature | Ordinary Scrapers | ⚡ This Harvester |
|---|---|---|
| **Company Names** | Messy (`Acme Plumbing, LLC - 24/7 Service`) | **Auto-Cleaned (`Acme Plumbing`)** |
| **Contact Email** | Missing or bury in nested arrays | **Flat `email` column ready for CSV import** |
| **Email Verification** | Includes image assets & junk files | **Regex-filtered verified business emails** |
| **Social Links** | Unstructured text snippets | **Dedicated LinkedIn, Instagram, Facebook columns** |
| **Cold Email Import** | Re-formatting required in Excel | **1-Click Drag & Drop into Instantly / Smartlead** |
| **Account Required** | Demands Google account / API keys | **100% Public & Serverless (Zero API Keys)** |

***

### 🚀 Key Capabilities

- **Clean Personalization Fields**: Automatically strips legal tags like `LLC`, `Inc`, `Corp`, `Services`, and marketing taglines so your email outreach templates (`Hi {{company_name}}`) look natural and human.
- **Deep Website Crawling**: Visits the company's official homepage and `/contact`, `/about`, and `/team` pages to unearth active contact emails.
- **Social Footprint**: Extracts direct company URLs for LinkedIn, Instagram, Facebook, and Twitter.
- **Pay-Per-Result Pricing**: Ultra-cheap pricing ($0.005 per verified lead). Pay only for results extracted.

***

### 📥 Input Configuration

```json
{
  "searchQueries": [
    "Roofing contractors in Dallas",
    "Dentists in Chicago",
    "Real estate brokers in Miami"
  ],
  "maxResultsPerQuery": 25,
  "extractEmailsAndSocials": true
}
```

***

### 📤 Output Format (Instant CSV / JSON Export)

```json
{
  "company_name": "Apex Roofing",
  "raw_business_name": "Apex Roofing & Solar, LLC",
  "website": "https://apexroofing.com",
  "phone": "+1 214-555-0199",
  "email": "contact@apexroofing.com",
  "all_emails": ["contact@apexroofing.com", "estimates@apexroofing.com"],
  "linkedin_url": "https://linkedin.com/company/apex-roofing",
  "instagram_url": "https://instagram.com/apexroofing",
  "facebook_url": "https://facebook.com/apexroofing",
  "twitter_url": null,
  "search_query": "Roofing contractors in Dallas",
  "instantly_ready": true,
  "scraped_at": "2026-10-07T00:00:00Z"
}
```

***

### 💡 How to Launch a Cold Outreach Campaign with This Data

1. **Run the Actor**: Enter your target industry and location (e.g. `Solar installers in California`).
2. **Export Dataset**: Download results as **CSV**.
3. **Import to Cold Email Tool**: Upload directly to **Instantly.ai**, **Smartlead**, or **Apollo.io**. Map `email` to Email and `company_name` to Company.
4. **Hit Send**: Your leads are verified, clean, and ready to convert.

# Actor input Schema

## `searchQueries` (type: `array`):

List of keywords and locations to search (e.g. 'Dentists in Miami', 'Real estate agents in Austin').

## `maxResultsPerQuery` (type: `integer`):

Maximum number of leads to extract for each search query.

## `extractEmailsAndSocials` (type: `boolean`):

When enabled, visits the business website to discover direct contact emails, LinkedIn, Instagram, and Facebook profiles.

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

Optional ISO 2-letter country code (e.g., 'us', 'uk', 'ca', 'au') to prioritize local search results.

## Actor input object example

```json
{
  "searchQueries": [
    "Real estate agents in Miami",
    "Plumbers in Austin"
  ],
  "maxResultsPerQuery": 30,
  "extractEmailsAndSocials": true,
  "countryCode": "us"
}
```

# Actor output Schema

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

URL to the extracted verified B2B leads dataset in JSON format

# 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 = {
    "searchQueries": [
        "Real estate agents in Miami",
        "Plumbers in Austin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("candid_rookery/google-maps-b2b-lead-harvester").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 = { "searchQueries": [
        "Real estate agents in Miami",
        "Plumbers in Austin",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("candid_rookery/google-maps-b2b-lead-harvester").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 '{
  "searchQueries": [
    "Real estate agents in Miami",
    "Plumbers in Austin"
  ]
}' |
apify call candid_rookery/google-maps-b2b-lead-harvester --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,candid_rookery/google-maps-b2b-lead-harvester"
        }
    }
}
```

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/eBZeZfGH8Lsr30jcU/builds/loGvag4yNNdt3Ecsq/openapi.json
