# Brand Store Locator & Stockist Email Scraper (`maitreya_buddha/brand-store-locator-stockist-email-enricher`) Actor

Find every boutique & retail stockist carrying competitor brands — plus buyer/wholesale emails, Instagram, LinkedIn, independent-shop filter & readiness score in 1 click ($5/1K, $0 when empty).

- **URL**: https://apify.com/maitreya_buddha/brand-store-locator-stockist-email-enricher.md
- **Developed by:** [BoGeun Kim](https://apify.com/maitreya_buddha) (community)
- **Categories:** Lead generation, E-commerce, Business
- **Features:** Full permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 enriched stockist locations

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

## Brand Store Locator & Stockist Email Scraper

**Find every independent boutique, specialty shop, and retail stockist carrying your competitors — WITH verified buyer/wholesale emails, 11-query DNS deliverability grades (A–F), outreach triage, 1-click LinkedIn buyer search, and CRM-ready exports in one zero-proxy run ($5/1K, $0 when empty or filtered).**

> **Independently Verified Reliability:** Part of the open-source MCP suite ranked **100/100 (#1 in Sales & CRM · Security A)** on [mcptry](https://mcptry.com/servers/io.github.wonderpick/apify-b2b-ecom-automation-kit), **9/9 Tools Grade A (4.4/5.0)** on [Glama](https://glama.ai/mcp/servers/wonderpick/apify-b2b-ecom-automation-kit), and published on the **Official MCP Registry** · Also available as a REST API on [RapidAPI](https://rapidapi.com/BoGeunKim/api/brand-store-locator-stockist-buyer-email-api). 128 MB RAM pure-HTTP streaming verified · **$0 proxy fees · $0 billed on empty, national-chain, or no-email skips.**

#### Choose Your Track

- **For Human Wholesale & Brand Teams (Zero Code):** Paste 1 competitor brand URL, click **Start**, and get every independent boutique carrying their products — already enriched with verified buyer emails, DNS A–F grades, wholesale pitch openers, and CRM exports.
- **For AI Agents & Automation Builders (MCP / n8n / Make / API):** 50-store streaming chunks at 128 MB RAM, paginated `datasetId`/`sourceRunId` chaining (`FULL_PERMISSIONS`), fail-closed SSRF protection, and `OUTPUT_SUMMARY` / webhook delivery.

***

### For Humans: Wholesale Sales Teams, Brand Founders & Agencies (30-Second Start, Zero Code)

1. **Paste a competitor brand URL** — just the homepage (e.g. `https://fellowproducts.com`), a CSV (`rawCsvOrUrls`), or an upstream dataset (`datasetId` / `sourceRunId`).
2. **Optional boutique filters (`$0` on skips)** — enable `onlyIndependentStores` to skip Target/Walmart/Sephora at `$0`, or `onlyWithEmail` to bill only verified contacts.
3. **Export & pitch** — download flat sheets for `instantly`, `smartlead`, `hubspot`, `lemlist`, or `default`, complete with ready-to-send `wholesalePitchSubject` and 1-click LinkedIn buyer links.

#### Key Capabilities

- **Auto-discovers store locators automatically:** Finds `/stockists`, `/store-locator`, `/locations`, and `/where-to-buy` across Stockist, Storepoint, StoreRocket, Storemapper, WordPress Store Locator, Schema.org `LocalBusiness`, GeoJSON `FeatureCollection`, and static stockist directories.
- **Buyer & wholesale emails included in the same run:** Visits each unique store website once (bounded LRU cache, plus `/wholesale` and `/contact`), decodes Cloudflare `data-cfemail` obfuscation, and prioritizes `wholesale@`, `buyers@`, `sales@`, and `info@`.
- **11-Query DNS Deliverability X-Ray (`$0` included):** Verifies MX, SPF, DMARC, BIMI, and DKIM/ESP CNAMEs per unique retailer domain to output `deliverabilityGrade` (`A`–`F`), `emailProvider`, and `dnsDetectedToolsCsv` — zero Klaviyo-to-SendGrid false positives.
- **Smart Outreach Triage + 1-Click LinkedIn Buyer Search:** Tags every inbox (`b2b_direct`, `general`, `cs_ticket_queue`, `none`), recommends the best channel, and generates a clean 1-click `linkedinDecisionMakerSearchUrl` targeting buyers/owners at each store.
- **5 Native CRM Export Presets:** Export flat columns ready for **Instantly**, **Smartlead**, **HubSpot**, **Lemlist**, or **Default** JSON/CSV (paired with zero-hallucination `wholesalePitchSubject` and `wholesalePitchOpener`).
- **Opt-In BYOK Buyer Waterfall (Default OFF):** Optionally plug in your own Apollo, Hunter, and ZeroBounce keys to enrich missing store buyer contacts and automatically quarantine `spamtrap` / `invalid` addresses (`primaryEmail: null`, `quarantinedEmail` logged).
- **1-Click Independent Boutique Filter (`$0` for National Chains):** Skip Target, Walmart, Sephora, Whole Foods, and other big-box chains at `$0` so you only pay for independent boutiques.

#### How It Compares

| Feature | Typical Store Locator Scrapers | Manual VA + Wholesale Directories | This Stockist Enricher (128 MB HTTP) |
| :--- | :--- | :--- | :--- |
| **Output Delivered** | Store names & street addresses only (0 emails) | Slow (`$1–$3` per store) & outdated spreadsheets | **Stores + verified buyer emails + DNS A–F + pitch copy** |
| **Locator Widget Support** | Breaks on JS widgets or needs manual API URLs | Manual copy-paste | **Auto-discovers 8+ widgets, JSON-LD, GeoJSON & static lists** |
| **Big-Box Chain Noise** | Mixes Walmart/Target/Sephora into your bill | Manual filtering | **`onlyIndependentStores` skips national chains at `$0`** |
| **Cost & Infrastructure** | Browser compute + rotating proxies + 2nd email tool | High hourly labor cost | **`$5 / 1,000` all-in · `$0` proxy · `$0` on filtered skips** |
| **CRM & AI Integration** | Raw uncleaned CSV | Manual uploads | **5 native CRM presets + MCP/n8n/`sourceRunId` streaming** |

***

### For AI Agents & Automation Operators (MCP / n8n / Make / API)

- **128 MB Streaming Architecture:** Processes up to 5,000 stockists per brand in **50-store streaming chunks** (enrich → filter → PPE charge → push) with bounded `<= 2,000` LRU domain & DNS caches and per-brand error isolation — halting immediately on budget caps.
- **Zero-Crash Coercion & Fail-Closed SSRF:** Accepts `urls[]`, `rawCsvOrUrls` (UTF-8 BOM/CSV/TSV/headerless), `datasetId`, or `sourceRunId` (paginated at 250 items/page). Invalid numbers or typos are coerced cleanly. Full IPv4/IPv6 SSRF guard blocks loopback, link-local, metadata, NAT64, 6to4, and Teredo ranges.
- **Executive Summary & SSRF-Safe Webhook:** Saves `OUTPUT_SUMMARY` (JSON), `OUTPUT_SUMMARY.md` (Markdown), and legacy `OUTPUT` diagnostics to the Key-Value Store, and optionally triggers an SSRF-protected webhook (executed before KV summary save).

***

### Sample Output Record

```json
{
  "brandUrl": "https://fellowproducts.com",
  "storeName": "Actual Coffee",
  "retailerType": "independent_boutique",
  "storeCountByDomain": 1,
  "city": "Northwood",
  "state": "OH",
  "country": "USA",
  "website": "https://actualcoffee.com/",
  "primaryEmail": "hello@actualcoffee.com",
  "emailMxValid": true,
  "emailStatus": "found",
  "inboxType": "general",
  "deliverabilityGrade": "A",
  "emailProvider": "Google Workspace",
  "linkedinDecisionMakerSearchUrl": "https://www.linkedin.com/search/results/people/?keywords=...",
  "outreachReadinessScore": 94,
  "wholesalePitchSubject": "Wholesale inquiry for Actual Coffee (saw you carry fellowproducts)",
  "provider": "stockist",
  "scrapedAt": "2026-11-23T04:00:00.000Z"
}
```

***

### Input Reference

| Setting | Default | Description |
|---|---|---|
| `urls` | Prefilled demo | Brand homepages or direct store-locator URLs |
| `rawCsvOrUrls` | *(none)* | Paste CSV/TSV or newline-delimited brand URLs (BOM/header auto-detected) |
| `datasetId` / `sourceRunId` | *(none)* | Upstream Apify Dataset or Run chaining (`FULL_PERMISSIONS` on Cloud) |
| `enrichEmails` | `true` | Visit each unique store website (+ `/wholesale` & `/contact`) for buyer emails & socials |
| `enableDnsEmailCheck` | `true` | 11-query DNS deliverability X-Ray (`A`–`F` grade, provider, SPF/DMARC/BIMI) |
| `onlyWithEmail` | `false` | Bill ONLY stockists with a verified email (`$0` otherwise) |
| `onlyIndependentStores` | `false` | Skip national chains (Target, Walmart, Sephora, etc.) at `$0` |
| `maxStoresPerBrand` | `100` | Max stores per brand (`1`–`5,000`, streamed in 50-store chunks) |
| `countryFilter` | *(all)* | Filter by country code or name (`US`, `UK`, `CA`, `AU`, `DE`, `KR`) |
| `minReadinessScore` | `0` | Only keep & bill stores scoring `>=` threshold (`0`–`100`) |
| `crmExportPreset` | `"default"` | `"default"`, `"instantly"`, `"smartlead"`, `"hubspot"`, or `"lemlist"` |
| `webhookUrl` / `webhookHeaders` | *(none)* | SSRF-safe completion webhook (auth headers stripped on cross-origin redirect) |
| `proxyConfiguration` | `useApifyProxy: false` | Optional Apify Proxy (default OFF for `$0` proxy cost) |
| `enableByokEnrichment` | `false` | Optional Apollo -> Hunter -> ZeroBounce BYOK buyer waterfall |

***

### 한국어 요약

경쟁 브랜드 홈페이지, CSV 붙여넣기(`rawCsvOrUrls`), 또는 상위 `datasetId`/`sourceRunId`를 입력하면 **입점 리테일 스토어(Stockist/Storepoint/StoreRocket/Storemapper/WP/JSON-LD/GeoJSON/정적 HTML) 추출 + 스토어별 바이어/도매 이메일 + 11-쿼리 DNS 발송 등급(`A`–`F`) + 인박스 분류(`inboxType`) + 1-클릭 LinkedIn 바이어 검색 + 5종 CRM 프리셋**을 50개 단위 128 MB 스트리밍으로 생성합니다. 대형 체인 제외(`onlyIndependentStores`) 및 이메일 미발견 건은 **`$0` 무과금**입니다.

# Actor input Schema

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

One or more brand homepages (e.g. 'https://brooklynhotdogcompany.com') or direct store locator pages (e.g. 'https://www.fellowproducts.com/pages/store-locator'). Homepages automatically discover /stockists, /store-locator, /locations, and /where-to-buy pages.

## `rawCsvOrUrls` (type: `string`):

Paste a multiline CSV/TSV spreadsheet (with or without headers) or 1 brand/locator URL per line. Automatically strips UTF-8 BOM.

## `datasetId` (type: `string`):

Optional Apify Dataset ID or URL from an upstream scraper ({{resource.defaultDatasetId}}). Paginates 250 items/page and reads brandUrl, storeLocatorUrl, website, domain, or url fields.

## `sourceRunId` (type: `string`):

Optional Apify Run ID or Run URL. Automatically resolves its defaultDatasetId and paginates brand URLs.

## `enrichEmails` (type: `boolean`):

Automatically visit each unique store website (plus /contact and /wholesale pages) to extract prioritized buyer/wholesale emails, Instagram, LinkedIn, Facebook, and Contact Form URLs. Even if a store website fails, all Part A store details are preserved.

## `enableDnsEmailCheck` (type: `boolean`):

Run out-of-band DNS checks (MX, SPF, DMARC, BIMI, DKIM/ESP CNAMEs) per unique store domain to output deliverabilityGrade (A-F), emailProvider, and dnsDetectedToolsCsv.

## `onlyWithEmail` (type: `boolean`):

When enabled, only retail stockists with at least 1 verified email address are saved to the Dataset and billed. Stores without email are skipped at $0.

## `onlyIndependentStores` (type: `boolean`):

Skip national retail chains (e.g. Target, Walmart, Sephora, Whole Foods, CVS) and keep independent boutiques & regional specialty shops that respond to direct wholesale outreach. Filtered chains cost $0.

## `maxStoresPerBrand` (type: `integer`):

Maximum number of stockist locations to output per brand URL (1-5,000, streamed in 50-store chunks).

## `countryFilter` (type: `string`):

Filter extracted stores by country code or name (e.g. 'US', 'USA', 'UK', 'GB', 'CA', 'AU', 'DE', 'KR'). Leave blank to keep all countries.

## `minReadinessScore` (type: `integer`):

Only save and charge stores whose Outreach Readiness Score is >= this value (0-100). Filtered stores cost $0.

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

Concurrent store website visits for email enrichment (1-10). Automatically capped at <=2 on 128MB and <=3 on 256MB containers.

## `crmExportPreset` (type: `string`):

Optionally append flat CRM import columns for Instantly, Smartlead, HubSpot, or Lemlist while preserving all default fields.

## `webhookUrl` (type: `string`):

Optional HTTPS endpoint to receive run metrics and top stockists upon completion (executed before KV summary save, blocks private/internal IPs).

## `webhookHeaders` (type: `object`):

Optional secret HTTP headers sent ONLY to the initial webhook origin and stripped on cross-origin redirects.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy settings. Pure-HTTP direct mode works at $0 proxy cost for most locators; enable only if needed.

## `enableByokEnrichment` (type: `boolean`):

Bring Your Own Keys to enrich missing retailer buyer contacts via Apollo -> Hunter and validate deliverability via ZeroBounce (quarantines spamtrap/invalid addresses).

## `apolloApiKey` (type: `string`):

Your own Apollo API key used only when enableByokEnrichment is true. Never logged.

## `hunterApiKey` (type: `string`):

Your own Hunter API key used as fallback when enableByokEnrichment is true. Never logged.

## `zeroBounceApiKey` (type: `string`):

Your own ZeroBounce API key used to verify primaryEmail and quarantine spamtrap/invalid addresses when enableByokEnrichment is true.

## Actor input object example

```json
{
  "urls": [
    "https://www.fellowproducts.com/pages/store-locator",
    "https://brooklynhotdogcompany.com"
  ],
  "enrichEmails": true,
  "enableDnsEmailCheck": true,
  "onlyWithEmail": false,
  "onlyIndependentStores": false,
  "maxStoresPerBrand": 100,
  "minReadinessScore": 0,
  "maxConcurrency": 5,
  "crmExportPreset": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "enableByokEnrichment": false
}
```

# Actor output Schema

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

No description

## `outreachTriage` (type: `string`):

No description

## `dnsDeliverability` (type: `string`):

No description

## `summaryJson` (type: `string`):

No description

## `summaryMarkdown` (type: `string`):

No description

## `summary` (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 = {
    "urls": [
        "https://www.fellowproducts.com/pages/store-locator",
        "https://brooklynhotdogcompany.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maitreya_buddha/brand-store-locator-stockist-email-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://www.fellowproducts.com/pages/store-locator",
        "https://brooklynhotdogcompany.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("maitreya_buddha/brand-store-locator-stockist-email-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://www.fellowproducts.com/pages/store-locator",
    "https://brooklynhotdogcompany.com"
  ]
}' |
apify call maitreya_buddha/brand-store-locator-stockist-email-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maitreya_buddha/brand-store-locator-stockist-email-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/G3aBKcP3nY6e0lXz3/builds/2fiwjncsLcpF6DEtv/openapi.json
