# Google Maps B2B Lead, Email & Tech-Stack Enricher (`coherent_edelweiss/google-maps-b2b-enricher`) Actor

- **URL**: https://apify.com/coherent_edelweiss/google-maps-b2b-enricher.md
- **Developed by:** [harrison clough](https://apify.com/coherent_edelweiss) (community)
- **Categories:** Lead generation, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 primary lead / record scrapeds

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 B2B Lead, Email & Tech-Stack Enricher

Extract high-intent local business leads by search query and location, then automatically crawl each company's website to enrich **DNS MX-verified emails**, **E.164 phone numbers**, **social profiles (LinkedIn, Instagram, Facebook, X, YouTube, TikTok)**, **CMS platform**, **ad pixels (`meta_pixel`, `google_tag_manager`, `tiktok_pixel`, `linkedin_insight`)**, and **booking/CRM widgets (`Calendly`, `HubSpot`, `Intercom`)**.

Built for **Clay.com**, **n8n**, **Make.com**, and **AI Agents (MCP)** with **guaranteed structured JSON output** and **Pay-Per-Result ($0 on Empty)** billing—you never pay for dead domains or unverified records.

***

### Why Use This Actor Instead of Legacy Google Maps Scrapers?

| Feature | Legacy Maps Scrapers ($30–$49/mo Rental) | `coherent_edelweiss/google-maps-b2b-enricher` |
| :--- | :--- | :--- |
| **Pricing Model** | Upfront monthly subscription even if runs fail | **Pay-Per-Event ($0.002–$0.007/lead)** — **$0 on empty results** |
| **Email Verification** | Raw regex scraping (high bounce rate, `.png` false positives) | **Live DNS-over-HTTPS MX Verification** + Gateway Detection (`Google Workspace`, `Microsoft 365`, `Proofpoint`) |
| **Ad Pixel & Tech Stack Detection** | Not included | **Detects CMS (`WordPress`, `Shopify`, `Webflow`) + Retargeting Pixels + CRM/Booking Widgets** |
| **AI B2B Sales Pitch** | Requires separate LLM step | **Built-in gap analysis outreach hook** tailored to missing pixels/booking tools |
| **UK / EU GDPR Compliance** | Scrapes personal data indiscriminately | **Built-in `gdprSafeMode` (`auto` | `strict` | `off`)** for UK/EEA corporate role-only filtering |
| **Execution Speed** | 60–180s headless browser spin-up | **4–8 seconds** with zero headless browser overhead |

***

### Transparent Pay-Per-Event Pricing (Zero-Charge on Empty)

You are **never billed** for failed scrapes or businesses without data:

- **`result-scraped` ($0.002):** Charged only when a valid business profile with domain/contact metadata is extracted.
- **`verified-contact-enriched` ($0.003):** Charged only when at least one DNS MX-verified email or website tech-stack signature is attached.
- **`ai-structured-summary` ($0.002):** Charged only when `includeAiPitch: true` generates a custom B2B sales outreach hook.

> **Cost Example:** Enriching **1,000 verified local B2B leads** with MX-verified emails, tech stack, ad pixels, and AI cold email hooks costs **$7.00 total** (vs. $50–$150 in Clay/SaaS enrichment credits).

***

### 1-Click Integrations: Clay.com, n8n & Make.com

#### Clay.com ("HTTP API" Enrichment Column)

Skip expensive native enrichment credits inside Clay by calling the synchronous dataset endpoint directly:

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/coherent_edelweiss~google-maps-b2b-enricher/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN`
- **Headers:** `Content-Type: application/json`
- **Body:**

```json
{
  "queries": ["{{Business Category}} in {{City}}"],
  "maxResultsPerQuery": 5,
  "enrichWebsites": true,
  "includeAiPitch": true,
  "gdprSafeMode": "auto"
}
```

#### n8n / Make.com / cURL Quickstart

```bash
curl -X POST "https://api.apify.com/v2/acts/coherent_edelweiss~google-maps-b2b-enricher/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": ["specialty coffee roasters in Austin TX", "dental clinics in Miami FL"],
    "maxResultsPerQuery": 10,
    "enrichWebsites": true,
    "includeAiPitch": true,
    "gdprSafeMode": "auto"
  }'
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("coherent_edelweiss/google-maps-b2b-enricher").call(
    run_input={
        "queries": ["specialty coffee roasters in Austin TX"],
        "maxResultsPerQuery": 10,
        "enrichWebsites": True,
        "includeAiPitch": True,
        "gdprSafeMode": "auto",
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["business_name"], item["verified_emails"], item["cms_platform"], item["ai_b2b_sales_pitch"])
```

***

### Sample Enriched Output

```json
{
  "query": "specialty coffee roasters in Austin TX",
  "business_name": "Merit Coffee Co.",
  "category": "specialty coffee roasters",
  "address": "Austin TX",
  "website": "https://meritcoffee.com",
  "domain": "meritcoffee.com",
  "phone_e164": "+12105550192",
  "rating": 4.8,
  "reviews_count": 342,
  "verified_emails": ["info@meritcoffee.com", "wholesale@meritcoffee.com"],
  "mx_verified": true,
  "email_provider": "Google Workspace",
  "social_profiles": {
    "instagram": "https://instagram.com/meritcoffee",
    "facebook": "https://facebook.com/meritcoffee"
  },
  "cms_platform": "Shopify",
  "ad_pixels_detected": ["meta_pixel", "google_tag_manager"],
  "booking_or_crm_tools": ["Klaviyo"],
  "ai_b2b_sales_pitch": "Merit Coffee Co. runs on Shopify with Meta Pixel & GTM active, making them an ideal prospect for wholesale B2B retention automation or TikTok Pixel expansion."
}
```

***

### Connect to Claude Desktop, Cursor & AI Agents (MCP)

You can call this Actor directly from **Claude Desktop**, **Cursor**, or any **Model Context Protocol (MCP)** client:

```json
{
  "mcpServers": {
    "google-maps-b2b-enricher": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "coherent_edelweiss/google-maps-b2b-enricher"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

***

### UK GDPR, EU GDPR & PECR Compliance Notice (Safe-by-Design)

- **Stateless On-Demand Processor:** This Actor is an ephemeral, on-demand software utility that executes within the user's isolated Apify container. The Actor developer does **not** store, aggregate, or resell any scraped datasets or personal data.
- **Built-in `gdprSafeMode` (`auto` | `strict` | `off`):** By default (`auto`), when a UK or EEA domain (`.uk`, `.co.uk`, `.eu`, `.de`, `.fr`, etc.) is detected, the Actor automatically filters out named personal emails (`firstname.lastname@`) and personal LinkedIn profile URLs (`/in/`), returning only non-personal corporate role endpoints (`info@`, `sales@`, `contact@`, `enquiries@`), corporate `/company/` links, and website technology stack metadata.
- **Controller Responsibility:** Users disabling `gdprSafeMode` act as Data Controllers and are solely responsible for establishing a valid lawful basis (such as UK GDPR Article 6(1)(f) Legitimate Interests for corporate subscribers) and complying with UK PECR / EU ePrivacy rules.

***

### Frequently Asked Questions (FAQ)

#### How do I extract emails and ad pixels from Google Maps businesses?

Pass any search query (e.g., `"roofing contractors in Dallas TX"` or `"med spas in London"`) with `"enrichWebsites": true`. The Actor discovers matching businesses, visits their official websites, extracts contact emails, verifies their DNS MX records in real time, and inspects the HTML for Meta, Google, TikTok, and LinkedIn pixels.

#### Does this require Google Maps API keys or proxies?

No external API keys or browser cookies are required. Everything runs out of the box using high-concurrency async HTTP requests.

# Actor input Schema

## `queries` (type: `array`):

Local business search queries (e.g. 'dental clinics in Austin TX', 'roofing contractors in Miami FL').

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

Maximum number of business listings to extract and enrich per query.

## `enrichWebsites` (type: `boolean`):

When enabled, crawls each discovered business website for verified emails, social profiles, CMS, and ad pixels.

## `includeAiPitch` (type: `boolean`):

Synthesizes a tailored B2B outreach hook based on missing ad pixels, booking tools, or website stack.

## `gdprSafeMode` (type: `string`):

Controls personal data filtering: "auto" (default) automatically enforces corporate role-only emails (e.g. info@, sales@, enquiries@) and strips named personal data on .uk/.eu/EEA domains; "strict" enforces corporate role-only filtering globally; "off" returns all discovered corporate contacts (Controller must have lawful basis).

## Actor input object example

```json
{
  "queries": [
    "specialty coffee roasters in Austin TX"
  ],
  "maxResultsPerQuery": 3,
  "enrichWebsites": true,
  "includeAiPitch": true,
  "gdprSafeMode": "auto"
}
```

# Actor output Schema

## `dataset` (type: `string`):

Enriched local business leads with verified MX emails, E.164 phone numbers, website CMS/ad-pixel tech stacks, and AI B2B sales pitch angles.

## `summary` (type: `string`):

JSON summary of records extracted and PAY_PER_EVENT billing telemetry

# 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 = {
    "queries": [
        "specialty coffee roasters in Austin TX"
    ],
    "maxResultsPerQuery": 3,
    "enrichWebsites": true,
    "includeAiPitch": true,
    "gdprSafeMode": "auto"
};

// Run the Actor and wait for it to finish
const run = await client.actor("coherent_edelweiss/google-maps-b2b-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 = {
    "queries": ["specialty coffee roasters in Austin TX"],
    "maxResultsPerQuery": 3,
    "enrichWebsites": True,
    "includeAiPitch": True,
    "gdprSafeMode": "auto",
}

# Run the Actor and wait for it to finish
run = client.actor("coherent_edelweiss/google-maps-b2b-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 '{
  "queries": [
    "specialty coffee roasters in Austin TX"
  ],
  "maxResultsPerQuery": 3,
  "enrichWebsites": true,
  "includeAiPitch": true,
  "gdprSafeMode": "auto"
}' |
apify call coherent_edelweiss/google-maps-b2b-enricher --silent --output-dataset

```

## MCP server setup

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