# B2B Lead Enricher — Google Maps Places & Direct Email Extractor (`drain54/b2b-lead-enricher`) Actor

All-in-one local B2B lead generation pipeline. Discovers commercial places on Google Maps and crawls their websites to extract verified business emails, dialer phones, and social media handles in one automated run.

- **URL**: https://apify.com/drain54/b2b-lead-enricher.md
- **Developed by:** [Indra Darmawan](https://apify.com/drain54) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 20.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 enriched lead extracted (phone + verified email)s

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

## B2B Lead Enricher — Google Maps Places & Direct Email Extractor

An all-in-one automated B2B prospecting pipeline on Apify. It extracts local business listings from **Google Maps** and crawls each target's official website in the same run to discover verified business emails, phone numbers, and social profiles.

Stop manually copying business directories or paying recurring enterprise fees to Apollo and ZoomInfo. Discover and enrich targeted local leads on demand.

***

### ⚡ What does B2B Lead Enricher do?

1. **Google Maps Discovery:** Searches local markets by niche and location (e.g. `commercial solar in Austin TX`, `dental clinics in London`, `HVAC contractors in Miami`).
2. **Contact & Place Data Extraction:** Collects business name, category, direct telephone number, full address, review ratings, total reviews, and official website URL.
3. **Deep Website Contact Enrichment:** Automatically crawls the business website, including `/contact`, `/about`, and `/team` subpages, to extract direct business email addresses and official social profiles (LinkedIn, Twitter/X, Instagram, Facebook).
4. **Clean Structured Export:** Outputs unified, CRM-ready records in CSV, Excel, or JSON format.

***

### 🎯 Ideal Use Cases

- **Cold Email & Outbound Agencies:** Generate hyper-targeted lists with valid domains and emails for cold outreach tools (Instantly, Smartlead, Lemlist).
- **Local B2B SaaS Providers:** Target specific service niches (roofing, solar, clinics, law firms) in any city or metro worldwide.
- **Appointment Setters & Telemarketers:** Dialer-ready business phone numbers formatted for instant CRM import.
- **Marketing & SEO Agencies:** Find local business prospects with poor ratings or outdated websites.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchStrings` | Array of Strings | `["commercial solar in Austin TX"]` | Google Maps search queries by niche and metro |
| `maxPlacesPerSearch` | Integer | `20` | Max places to extract per search query (1-100) |
| `enrichWithEmails` | Boolean | `true` | Crawls target websites to discover business emails |
| `maxPagesPerWebsite` | Integer | `3` | Maximum internal subpages crawled per business site |
| `language` | String | `"en"` | Language code passed to Google Maps (en, id, de, etc.) |

***

### 📤 Sample Output Data

Each result returned to the dataset provides clean, enriched commercial attributes:

```json
{
  "title": "Texas Solar & Energy Storage Experts",
  "category": "Solar energy contractor",
  "query": "commercial solar in Austin TX",
  "phone": "+1 512-555-0192",
  "website": "https://www.texassolarexperts.com",
  "domain": "texassolarexperts.com",
  "rating": 4.9,
  "reviewsCount": 142,
  "priceRange": "$$$",
  "googleMapsUrl": "https://www.google.com/maps/place/...",
  "emails": [
    "info@texassolarexperts.com",
    "contact@texassolarexperts.com"
  ],
  "socials": {
    "linkedin": "https://www.linkedin.com/company/texas-solar-experts",
    "twitter": "https://x.com/texassolarenergy",
    "facebook": "https://www.facebook.com/texassolarexperts",
    "instagram": "https://www.instagram.com/texassolar"
  },
  "hasEmail": true,
  "hasPhone": true,
  "scrapedAt": "2026-11-11T06:50:00.000Z"
}
```

***

### 💰 Pricing / Cost Estimation

This Actor operates under Apify's **Pay-Per-Event (PPE)** model:

- You are charged only for the leads successfully discovered and enriched.
- Optimized hybrid crawling: Playwright headless browser for Google Maps listings + ultra-fast lightweight Cheerio engine for website email crawling to minimize compute costs.

***

### ⚖️ Compliance & Privacy Notice

This Actor extracts contact information made publicly available on Google Maps and public corporate websites for lawful B2B communication. Users are responsible for complying with applicable privacy and messaging regulations (such as CAN-SPAM, GDPR/ePrivacy, and local telemarketing rules) when contacting prospects.

# Actor input Schema

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

List of local business categories and locations to search on Google Maps (e.g. 'dental clinic in London', 'commercial roofing in Dallas TX').

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

Maximum number of Google Maps places to collect per search string (max 100).

## `enrichWithEmails` (type: `boolean`):

Automatically crawl discovered websites to extract business emails, contact forms, and social media handles.

## `maxPagesPerWebsite` (type: `integer`):

Maximum depth of internal pages scanned per target website (e.g. /contact, /about, /team).

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

Language parameter passed to Google Maps (e.g. en, id, de, fr).

## Actor input object example

```json
{
  "searchStrings": [
    "commercial solar in Austin TX"
  ],
  "maxPlacesPerSearch": 20,
  "enrichWithEmails": true,
  "maxPagesPerWebsite": 3,
  "language": "en"
}
```

# Actor output Schema

## `dataset` (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": [
        "commercial solar in Austin TX"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("drain54/b2b-lead-enricher").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": ["commercial solar in Austin TX"] }

# Run the Actor and wait for it to finish
run = client.actor("drain54/b2b-lead-enricher").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": [
    "commercial solar in Austin TX"
  ]
}' |
apify call drain54/b2b-lead-enricher --silent --output-dataset

```

## MCP server setup

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

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/aukQwJ3gssjso6R1e/builds/XQX1eIf3aP6aVd7WY/openapi.json
