# Google Maps B2B Lead & Website Contact Enricher (`bedraggler/maps-b2b-lead-enricher`) Actor

Zero-filter-tax Google Maps scraper with concurrent website crawling, decision-maker extraction, and DNS MX/SPF verified emails.

- **URL**: https://apify.com/bedraggler/maps-b2b-lead-enricher.md
- **Developed by:** [Landon Carpenter](https://apify.com/bedraggler) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 filtered & website-enriched places

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 & Website Contact Enricher

A **zero-filter-tax** B2B local-business discovery and website contact enrichment Actor built to replace expensive multi-add-on Google Maps scrapers in outbound sales, recruiting, and AI-agent pipelines.

***

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

Legacy Google Maps Actors advertise a low base rate and then stack add-on fees on every single filter (`minRating`, `minReviews`, `requireWebsite`, `skipClosed`), website contact crawl, and email MX verification—often costing **$15–$200 per 1,000 verified leads** (especially on Free/MCP tiers).

This Actor bundles discovery + first-party site enrichment + DNS verification into two simple events:

- **$0 Filter Tax:** `minRating`, `minReviews`, `requireWebsite`, and `skipClosed` are completely free.
- **Concurrent First-Party Website Crawler:** Crawls each business's homepage plus up to `maxPagesPerSite - 1` contact/about/team pages concurrently over clean HTTP to extract emails, social profiles (`LinkedIn`, `Facebook`, `Instagram`), leadership/estimator names & titles, and tech signals (`ServiceTitan`, `Procore`, `HubSpot`, `Shopify`, `WordPress`, `Calendly`).
- **Deterministic DNS MX & SPF Verification:** Validates email domains live against DNS `MX` and `TXT` (`v=spf1`) records via `dnspython`, classifying providers (`Google Workspace`, `Microsoft 365`, `Proofpoint`, `Custom MX`) without sending a single email.
- **CRM-Ready Exports:** Produces a clean JSON Dataset plus `B2B_Maps_Enriched_Leads.csv` and `B2B_Lead_Enrichment_Summary.md` in the Key-Value Store.

***

### Input Parameters

| Field | Type | Description | Default |
| :--- | :--- | :--- | :--- |
| `searchQueries` | `string[]` | Google Maps queries (e.g. `"Commercial HVAC Contractors in Indianapolis, IN"`). | 1 sample query |
| `companyWebsites` | `string[]` | Optional direct company URLs to enrich without Google Maps search. | `[]` |
| `maxPlacesPerQuery` | `integer` | Maximum places extracted per search query (1–200). | `8` |
| `minRating` | `string` | Free rating filter (`0`, `3.5`, `4.0`, `4.5`, `4.8`). | `"0"` |
| `minReviews` | `integer` | Free minimum Google review count filter. | `0` |
| `requireWebsite` | `boolean` | Free filter to skip listings without a website. | `true` |
| `skipClosed` | `boolean` | Free filter to exclude permanently/temporarily closed places. | `true` |
| `onlyWithVerifiedEmail` | `boolean` | Only push rows with an MX-verified business email. | `false` |
| `maxPagesPerSite` | `integer` | Pages crawled per website (homepage + contact/team/about). | `4` |
| `useApifyProxy` | `boolean` | Optional Apify Proxy routing for Google Maps pages. | `false` |

***

### Pay-Per-Event (PPE) Pricing Structure

| Event Name | Trigger |
| :--- | :--- |
| `actor-start` | Flat base fee once per run |
| `place-enriched` | Per filtered business record enriched & pushed to Dataset (includes unlimited free filters + website crawl + socials + tech signals) |
| `verified-email-lead` | Only when a business returns a clean email whose domain passes live DNS MX verification |

# Actor input Schema

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

Search queries such as 'Commercial HVAC Contractors in Indianapolis, IN' or 'Roofing Companies Austin TX'.

## `companyWebsites` (type: `array`):

Optional list of direct company website URLs to crawl and MX-verify even without Google Maps queries.

## `maxPlacesPerQuery` (type: `integer`):

Maximum number of Google Maps results to extract per search query.

## `minRating` (type: `string`):

Filter out businesses below this rating at $0 extra filter fee.

## `minReviews` (type: `integer`):

Filter out businesses with fewer than this many Google reviews at $0 extra fee.

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

Skip places without a website URL at $0 extra filter fee.

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

Exclude closed businesses at $0 extra filter fee.

## `onlyWithVerifiedEmail` (type: `boolean`):

When enabled, outputs only businesses where a clean email and valid MX mail server were confirmed.

## `maxPagesPerSite` (type: `integer`):

Homepage plus up to N-1 contact/about/team pages crawled concurrently per business.

## `useApifyProxy` (type: `boolean`):

Optional Apify Proxy routing for Google Maps navigation.

## Actor input object example

```json
{
  "searchQueries": [
    "Commercial HVAC Contractors in Indianapolis, IN"
  ],
  "companyWebsites": [],
  "maxPlacesPerQuery": 8,
  "minRating": "0",
  "minReviews": 0,
  "requireWebsite": true,
  "skipClosed": true,
  "onlyWithVerifiedEmail": false,
  "maxPagesPerSite": 4,
  "useApifyProxy": false
}
```

# Actor output Schema

## `leadsDataset` (type: `string`):

No description

## `crmLeadsCsv` (type: `string`):

No description

## `enrichmentSummaryMarkdown` (type: `string`):

No description

## `summaryOutput` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("bedraggler/maps-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("bedraggler/maps-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 '{}' |
apify call bedraggler/maps-b2b-lead-enricher --silent --output-dataset

```

## MCP server setup

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