# B2B Website Contact, WhatsApp & Social Lead Extractor (`grown_sesame/b2b-lead-enricher`) Actor

Extract emails, phones, WhatsApp links, social profiles and tech stack from company websites.

- **URL**: https://apify.com/grown_sesame/b2b-lead-enricher.md
- **Developed by:** [Mohd Amirul Zainal Abidin](https://apify.com/grown_sesame) (community)
- **Security:** 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 lead extracteds

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 Website Contact, WhatsApp & Social Lead Extractor (Pay-Per-Event)

Extract verified **business emails**, **phone numbers**, **direct WhatsApp (`wa.me` / `api.whatsapp.com`) click-to-chat links**, **social media profiles**, and **installed marketing pixels/CMS** from any list of company websites in seconds.

Built specifically for **B2B Lead Generation Agencies**, **n8n / Make Automation Workflows**, and **AI Agents (MCP-ready)**.

***

### Why Use This Actor?

Most generic scrapers only pull `mailto:` links from a homepage and miss where SMEs (especially in Southeast Asia, LATAM, Europe, and the UK) actually talk to customers: **WhatsApp click-to-chat links**, **internal `/contact` or `/hubungi` pages**, and **Instagram/TikTok/LinkedIn profiles**.

Furthermore, this Actor detects **whether a business has Meta Pixel, Google Tag Manager, GA4, or TikTok Pixel installed**—letting digital agencies immediately spot SMEs that have a website + WhatsApp number but **aren't running retargeting pixels yet**.

#### Key Features

1. **Multi-Page Smart Crawl:** Automatically checks the homepage plus internal `/contact`, `/about`, `/hubungi`, and `/support` pages (configurable up to 10 pages per domain).
2. **Direct WhatsApp Detection:** Extracts `wa.me/...`, `api.whatsapp.com/send?phone=...`, and `whatsapp://send` links embedded in buttons or floating widgets.
3. **Verified Email & Phone Cleaning:** Filters out junk image filenames (`logo@2x.png`), Sentry links, and date strings.
4. **Full Social Graph:** Captures LinkedIn (Company & Personal), Instagram, Facebook, TikTok, X (Twitter), and YouTube URLs.
5. **Ad Pixel & Tech Stack Detector:** Flags `Meta Pixel (Facebook Ads)`, `Google Tag Manager`, `Google Analytics (GA4)`, `TikTok Pixel`, `Shopify`, `WordPress`, `Wix`, `Webflow`, and `HubSpot`.
6. **Lead Completeness Score (0–100):** Automatically scores every enriched domain so your CRM or AI agent can prioritize the warmest leads first.

***

### Input Example

```json
{
  "startUrls": [
    { "url": "https://apify.com" },
    { "url": "https://n8n.io" }
  ],
  "maxPagesPerDomain": 3,
  "extractWhatsApp": true,
  "extractSocials": true,
  "detectTechStack": true,
  "requestTimeoutSecs": 15
}
```

***

### Output Example

```json
{
  "domain": "example-clinic.com.my",
  "url": "https://example-clinic.com.my",
  "companyTitle": "Prime Dental & Aesthetic Clinic KL",
  "metaDescription": "Book your dental scaling, whitening, and invisalign consultation in Kuala Lumpur.",
  "emails": [
    "hello@example-clinic.com.my"
  ],
  "phones": [
    "+60 12-345 6789",
    "+603-2145 6789"
  ],
  "whatsappLinks": [
    "https://wa.me/60123456789?text=Hi%20I%20want%20to%20book%20an%20appointment"
  ],
  "socialProfiles": {
    "facebook": ["https://www.facebook.com/primedentalmy"],
    "instagram": ["https://www.instagram.com/primedentalmy"],
    "tiktok": ["https://www.tiktok.com/@primedentalmy"]
  },
  "techStack": [
    "Google Tag Manager",
    "Meta Pixel (Facebook Ads)",
    "WordPress"
  ],
  "pagesCrawled": 3,
  "leadScore": 100
}
```

***

### Pricing (Pay-Per-Event Model)

This Actor uses Apify's transparent **Pay-Per-Event (PPE)** pricing model:

- **Primary Event (`lead-extracted`):** Charged once per successfully enriched company domain ($0.0025 per domain = **$2.50 per 1,000 enriched company domains**).
- Failed or unreachable domains are **never** charged for the `lead-extracted` event.

***

### Integration with n8n, Make & AI Agents (MCP)

You can call this Actor directly from **n8n** using the official Apify node or HTTP Request node (`POST https://api.apify.com/v2/acts/YOUR_USERNAME~b2b-website-whatsapp-contact-lead-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN`) and pipe the enriched WhatsApp numbers and emails straight into Google Sheets, HubSpot, or an AI outreach sequence.

# Actor input Schema

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

Websites to crawl for contact details.

## `maxPagesPerDomain` (type: `integer`):

Homepage plus contact/about pages to visit per domain.

## `extractWhatsApp` (type: `boolean`):

Extract wa.me and WhatsApp links.

## `extractSocials` (type: `boolean`):

Extract LinkedIn, Instagram, Facebook, TikTok, X and YouTube links.

## `detectTechStack` (type: `boolean`):

Detect CMS and marketing pixels.

## `requestTimeoutSecs` (type: `integer`):

HTTP request timeout in seconds.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxPagesPerDomain": 3,
  "extractWhatsApp": true,
  "extractSocials": true,
  "detectTechStack": true,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

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

Dataset containing all scraped and enriched B2B website leads

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("grown_sesame/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 = { "startUrls": [{ "url": "https://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("grown_sesame/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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call grown_sesame/b2b-lead-enricher --silent --output-dataset

```

## MCP server setup

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