# B2B Email Finder & Domain Enricher (Maps Leads, MX, Shopify) (`mycelia/b2b-store-domain-enricher`) Actor

Find business emails on any domain list or Google Maps export: de-obfuscated contacts, live MX/SPF deliverability check, ad-pixel and CRM spend signals, socials, and Shopify SKU metrics. HTTP-only, no browser. Pay-per-event $2.50/1,000 reachable domains; dead and bot-blocked rows cost $0.

- **URL**: https://apify.com/mycelia/b2b-store-domain-enricher.md
- **Developed by:** [Mycelia Labs](https://apify.com/mycelia) (community)
- **Categories:** Lead generation, E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 enriched domains

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/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 Email Finder & Domain Enricher (Maps Leads, MX, Shopify)

Turn raw company domain lists or **Google Maps Scraper** exports into verified, scored B2B sales intelligence in a single fast HTTP pass — combining a **website email finder**, **live DNS MX/SPF verifier**, **BuiltWith-style ad pixel & tech stack detector**, and **Shopify store intelligence** with **no headless browser overhead**.

**Fair Pay-Per-Event billing:** **$2.50 per 1,000 reachable domains** (`$0.0025` per domain). Dead, unreachable, geo-interstitial, and WAF-blocked websites automatically cost **$0**.

### Measured, not estimated

One production run against **100 live Google Maps listings** (Austin, TX — auto repair, yoga studios, plumbers, bakeries), 61 unique domains, default settings:

| Signal | Result |
|:---|:---|
| Domains reachable | **51 / 61** (83.6%) |
| Return a business email | **90.2%** of reachable rows |
| Live MX verified | **88.2%** |
| Ad-tech / CRM spend signals | **78.4%** |
| Social profiles found | **86.3%** |
| Phone numbers | **58.8%** |
| Median `lead_spend_score` | **72** — 41 of 51 scored ≥ 60 |
| Latency per domain | **0.84s median**, 3.7s p90, 18.4s max |
| Rows charged when unreachable | **$0** (10 of 61 in this sample) |

### Why sales teams & AI agents use this instead of basic scrapers

Plain HTML scrapers return broken strings, miss tag-manager pixels, and bill you for 403 challenge pages. This Actor is engineered around real-world anti-bot and data-hygiene edge cases:

- **Dual browser TLS impersonation (`curl_cffi`).** Sends real Chrome and Safari TLS fingerprints and automatically retries alternate profiles when a WAF challenges the first request — **0.84s median / 3.7s p90** per domain on cloud, contact-page crawl enabled, without paying for Chromium RAM.
- **Deep email de-obfuscation & hygiene.** Decodes Cloudflare `data-cfemail` XOR strings, `mailto:` links, HTML entities, and inline JSON/URL escapes (`\u003e`, `%20`), while filtering out Sentry DSNs, image assets (`logo@2x.png`), and bundler hashes.
- **Live DNS MX + SPF verification.** Confirms each domain can actually receive mail (`has_valid_mx`) and identifies its email provider (`google_workspace`, `microsoft_365`, `zoho_mail`, `enterprise_gateway`) plus authorized ESPs (`Klaviyo`, `SendGrid`, `HubSpot`, `Mailchimp`).
- **Google Tag Manager (`GTM-XXXX`) unwrapping.** Most modern storefronts load ad pixels inside GTM, causing standard scrapers to report zero tags. We fetch and inspect the live GTM container bundle — routinely uncovering **8–12+ active paid acquisition & CRM signals** (`Meta Pixel`, `Google Ads`, `TikTok Pixel`, `Klaviyo`, `Attentive`, `HubSpot`).
- **Shopify & Headless Storefront intelligence.** Extracts SKU counts, in-stock ratios, and min/median/max pricing from public `/products.json` catalogs, and cleanly flags custom **Headless Shopify Plus** storefronts (`storefront_architecture: "headless_or_custom"`) without inventing unverified prices.
- **Geo-checkout recovery & zero-leak WAF states.** Automatically bypasses regional `*.checkout.*` redirect traps back to the canonical `www` storefront, and marks genuine bot blocks with `blocked_by_waf: true` (`$0` charge) rather than leaking `"Just a moment..."` into your CRM.

### Input

Accepts plain domain lists or direct `startUrls` objects from **Google Maps Scraper**, **Clay**, **n8n**, or **Make** — duplicate domains in the same batch are automatically deduplicated before billing:

```json
{
  "urls": ["allbirds.com", "https://gymshark.com", "https://www.bathfitter.com"],
  "crawlContactPages": true,
  "verifyDnsMx": true,
  "fetchShopifyMetrics": true,
  "maxConcurrency": 15,
  "timeoutSecs": 15
}
```

| Field | Default | Description |
|:---|:---|:---|
| `urls` | — | Array of bare domains (`"allbirds.com"`) or full URLs. Ideal for API, Clay, and MCP AI agents |
| `startUrls` | — | Standard Apify URL objects piped directly from **Google Maps Scraper** or saved Request Lists |
| `crawlContactPages` | `true` | Crawls up to 3 discovered `/contact`, `/about`, `/legal`, or Shopify policy pages per domain |
| `verifyDnsMx` | `true` | Performs live DNS `MX` and `TXT` (`SPF`) verification |
| `fetchShopifyMetrics` | `true` | Samples public `/products.json` SKU pricing & stock ratios (or detects headless storefronts) |
| `onlyReachable` | `false` | Omit unreachable / WAF-blocked rows from dataset output |
| `maxConcurrency` | `15` | Concurrent domains processed in parallel (`1–40`) |
| `timeoutSecs` | `15` | Strict per-domain wall-clock budget (`5–30s`) across all sub-requests |

### Output example (1 row per unique domain)

```json
{
  "domain": "allbirds.com",
  "input_url": "https://allbirds.com/",
  "final_url": "https://www.allbirds.com/",
  "reachable": true,
  "blocked_by_waf": false,
  "http_status": 200,
  "company_title": "Allbirds: Comfortable, Sustainable Shoes & Apparel",
  "lead_spend_score": 92,
  "primary_email": "help@allbirds.com",
  "emails": ["help@allbirds.com"],
  "email_details": [{ "email": "help@allbirds.com", "role": "support_ops" }],
  "has_valid_mx": true,
  "mx_provider": "microsoft_365",
  "phones": [],
  "socials": {
    "instagram": "https://www.instagram.com/allbirds",
    "facebook": "https://www.facebook.com/weareallbirds",
    "tiktok": "https://www.tiktok.com/@weareallbirds"
  },
  "platform": "Shopify",
  "gtm_containers": ["GTM-TH8KRSBJ"],
  "pixels_and_crm": [
    "Attentive", "Criteo Retargeting", "Google Ads", "Google Analytics 4",
    "Google Tag Manager", "Klaviyo", "Meta Pixel", "Microsoft Ads (UET)",
    "Microsoft Clarity", "TikTok Pixel", "Yotpo Reviews"
  ],
  "ecommerce_metrics": {
    "is_shopify_catalog_public": true,
    "storefront_architecture": "liquid_products_json",
    "metrics_confidence": "verified_catalog",
    "product_count_sampled": 250,
    "in_stock_ratio": 0.682,
    "price_min": 6.0,
    "price_median": 81.0,
    "price_max": 500.0,
    "vendors_count": 1,
    "top_product_types": ["Shoes", "Socks", "Apparel"],
    "latest_product_published_at": "2026-11-27T16:08:52-08:00"
  },
  "pages_scanned": 3,
  "tls_engine": "curl_cffi_chrome",
  "elapsed_ms": 1144,
  "error": null
}
```

#### How `lead_spend_score` (0–100) & email ranking work

- **`lead_spend_score` (0–100):** Combines **deliverable contactability** (verified MX, clean business email, phone, social presence) with **verified marketing spend** (active ad pixels, lifecycle CRM/ESP, e-commerce platform, and verified product catalog). High-scoring rows are reachable businesses actively spending on customer acquisition; unreachable or WAF-blocked domains always score `0`.
- **Role-ranked `primary_email`:** Candidate addresses are ranked in outreach priority order — **`decision_maker`** (`founder@`, `ceo@`, `owner@`) → **`sales_general`** (`hello@`, `sales@`, `info@`) → **`direct_or_staff`** (named team inboxes) → **`support_ops`** (`support@`, `privacy@`) — with same-domain company emails always prioritized over external addresses. **Measured reality on SMB websites:** ~65% `sales_general`, ~26% named-staff, ~9% support. Local businesses publish `info@`, not `ceo@` — in our 61-domain run `decision_maker` matched **0** domains, so use `lead_spend_score` to qualify, not the email role.

### Quickstart: API, Automation & AI Agents (MCP)

#### 1. Google Maps → Enriched B2B Leads Pipeline

1. Run **Google Maps Scraper** for your niche (e.g., *"med spas in Austin"* or *"boutique roasters"*).
2. Pipe its dataset `website` URLs into `b2b-store-domain-enricher` via **Clay**, **Make**, **n8n**, or Apify Integrations.
3. Filter on `lead_spend_score >= 65` and `has_valid_mx == true` for instant outbound-ready leads.

#### 2. Use with Claude, Cursor, VS Code & ChatGPT via Apify MCP

Available automatically on Apify's official MCP server (`https://mcp.apify.com`) — ask your AI agent to search for **`b2b-store-domain-enricher`** and enrich any list of prospect domains on demand.

#### 3. Call via Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("WioGhOVHtNaeymApn").call(
    run_input={"urls": ["allbirds.com", "gymshark.com", "bathfitter.com"]}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["domain"], item["lead_spend_score"], item["primary_email"])
```

### Honest limitations

- **Strict WAF protection:** Sites behind aggressive enterprise bot challenges are reported cleanly as `blocked_by_waf: true` with `$0` event charge rather than fabricating data.
- **Public contact availability:** Some businesses use web forms without publishing an email address; phone, MX provider, social links, and ad-spend signals still populate.
- **Headless Shopify catalogs:** Custom headless storefronts (e.g., Next.js/Hydrogen brands that disable public `/products.json`) return `is_shopify_catalog_public: false` and `storefront_architecture: "headless_or_custom"`. Prices are populated only when authoritative Schema.org `Product` JSON-LD offers exist on the page, and unverified storefront link counts never inflate `lead_spend_score`.
- **Google Maps URLs are stale:** In the benchmark above, **16.4%** of listing URLs were unreachable — expired domains, `404` paths, login-prompted sites, aggressive bot walls. Each still returns a row with `error` set (so you can see what dropped) and is **never charged**.
- **Runtime scales with crawl depth:** `crawlContactPages` fetches up to 3 extra pages per domain against a single per-domain budget (`timeoutSecs`, max `30`). Deep or slow sites surface that as an `error` row instead of hanging — lower `maxConcurrency` if you need a predictable p90.
- **SMB emails are usually generic mailboxes:** `info@`/`contact@` dominate SMB listings (see measured role distribution). This Actor tells you a domain is *deliverable*; it cannot invent a named person who isn't published.

# Actor input Schema

## `urls` (type: `array`):

List of company domains or URLs (e.g. 'allbirds.com', 'https://gymshark.com'). Ideal for MCP AI agents, API calls, and quick paste lists.

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

Optional URL objects ({ 'url': '...' }) piped directly from Google Maps Scraper, Clay, n8n, or saved Request Lists.

## `crawlContactPages` (type: `boolean`):

Automatically discover and crawl up to 3 internal contact, about, and Shopify legal contact pages per domain.

## `verifyDnsMx` (type: `boolean`):

Query live DNS MX and TXT/SPF records to confirm email deliverability and identify Google Workspace, Microsoft 365, Klaviyo, etc.

## `fetchShopifyMetrics` (type: `boolean`):

When a Shopify store is detected, inspect public /products.json catalog data for SKU count, stock ratio, and min/median/max pricing.

## `onlyReachable` (type: `boolean`):

Skip pushing unreachable or WAF-blocked domains to the output dataset.

## `maxConcurrency` (type: `integer`):

Maximum number of domains enriched in parallel (1 to 40).

## `timeoutSecs` (type: `integer`):

Strict wall-clock time budget per domain across homepage, fallback, GTM, and contact subpages.

## Actor input object example

```json
{
  "urls": [
    "https://allbirds.com",
    "https://gymshark.com"
  ],
  "crawlContactPages": true,
  "verifyDnsMx": true,
  "fetchShopifyMetrics": true,
  "onlyReachable": false,
  "maxConcurrency": 15,
  "timeoutSecs": 15
}
```

# Actor output Schema

## `enrichedDomains` (type: `string`):

Dataset with one enriched row per unique domain: contacts, MX/SPF deliverability, ad pixels and CRM signals, socials, Shopify catalog metrics, and `lead_spend_score`. Rows for unreachable or WAF-blocked domains are included with `error` set and are never billed.

## `runSummary` (type: `string`):

Key-value record with the run aggregate: domains requested, reachable, `blocked_by_waf`, `with_email`, `with_valid_mx`, `with_pixels`, `shopify_stores`, and `charged_events` (billed events equal reachable domains).

# 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 = {
    "urls": [
        "https://allbirds.com",
        "https://gymshark.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mycelia/b2b-store-domain-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 = { "urls": [
        "https://allbirds.com",
        "https://gymshark.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mycelia/b2b-store-domain-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 '{
  "urls": [
    "https://allbirds.com",
    "https://gymshark.com"
  ]
}' |
apify call mycelia/b2b-store-domain-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mycelia/b2b-store-domain-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/WioGhOVHtNaeymApn/builds/FqvHKIFGkhmAZmQAf/openapi.json
