# B2b Lead Contact Extractor (`riquelme_labs/b2b-lead-contact-extractor`) Actor

- **URL**: https://apify.com/riquelme_labs/b2b-lead-contact-extractor.md
- **Developed by:** [Aminn Riquelme](https://apify.com/riquelme_labs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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 Lead & Contact Extractor — Emails, Phones, Socials & Tech Stack

**B2B Lead & Contact Extractor** is a high-speed, low-overhead web crawler that turns any list of company URLs or domains into an enriched B2B lead dataset. It automatically scans homepages and high-value internal pages (`/contact`, `/about`, `/team`, `/legal`) to extract verified-format business emails, phone numbers, social media profiles, and website technology signals.

Built with an asynchronous HTTP architecture (`httpx` + `BeautifulSoup4`), it runs **10x faster than headless browser scrapers** while consuming minimal memory—ideal for cold outreach pipelines, CRM enrichment, and automated workflows in **n8n**, **Make**, **Clay**, and **Zapier**.

***

### ✨ Key Features & Capabilities

| Feature | Description |
| :--- | :--- |
| **📧 Smart Email Extraction** | Captures emails from visible text, `mailto:` links, and obfuscated HTML while filtering out false positives (image filenames, assets, `noreply@` addresses). |
| **📞 Phone Number Normalization** | Extracts and cleans international and local phone numbers from page text and `tel:` links. |
| **🌐 Social Profile Discovery** | Automatically detects official links for **LinkedIn**, **X (Twitter)**, **Instagram**, **Facebook**, **GitHub**, and **YouTube**. |
| **🛠️ Tech Stack Fingerprinting** | Identifies 16+ popular technologies including **HubSpot**, **Shopify**, **WordPress**, **Webflow**, **Next.js**, **Stripe**, **Intercom**, **Google Tag Manager**, and **Segment**. |
| **🧭 Intelligent Internal Crawling** | Prioritizes internal pages most likely to hold decision-maker contacts (`/contact`, `/about`, `/impressum`, `/support`, `/team`). |
| **🎯 Zero-Waste Email Filtering** | Optional **`onlyWithEmails`** mode skips domains without emails so you only store (and pay for) actionable leads. |

***

### 💰 Pricing: How much does it cost?

This Actor uses transparent **Pay-Per-Event (PPE)** pricing—you never pay for platform compute units, proxies, or wasted browser memory:

- **Actor Start:** `$0.005` per run
- **Extracted Lead (Dataset Item):** `$0.002` per domain (`$2.00 per 1,000 enriched domains`)

#### Cost Breakdown & Apify Free Plan Coverage

With the **Apify Free Plan ($5.00 USD monthly credit)**, you can extract nearly **2,500 company leads every month for free**:

| Volume | Estimated Total Cost | Covered by $5 Free Tier? |
| :--- | :--- | :--- |
| **100 company domains** | **$0.205** | ✅ 100% Free |
| **1,000 company domains** | **$2.005** | ✅ 100% Free |
| **2,490 company domains** | **$4.985** | ✅ 100% Free |
| **10,000 company domains** | **$20.005** | Paid plan / Pay-as-you-go |

> 💡 **Pro Tip:** Enable **"Only Save Leads with Verified Format Emails"** (`onlyWithEmails: true`) in the Input tab to avoid paying the `$0.002` result fee for websites that do not publish any email addresses.

***

### 🚀 Popular Use Cases

1. **Google Maps & Directory Enrichment:** Pair this Actor with the *Google Maps Scraper*—pass the extracted business websites into **B2B Lead & Contact Extractor** to uncover the emails and LinkedIn company pages missing from Google Maps.
2. **Account-Based Marketing (ABM) & Tech Targeting:** Filter your prospect list by detected technologies (e.g., target companies running **Shopify** + **HubSpot** or **Webflow** + **Stripe**).
3. **Automated CRM Enrichment (Clay / Make / n8n):** Trigger the Actor via webhook whenever a new domain enters your CRM to automatically populate email, phone, LinkedIn, and company description fields.

***

### 📥 Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `urls` | `array` | *(Required)* | List of company URLs or domains (supports manual list or CSV/text upload). |
| `maxPagesPerDomain` | `integer` | `3` | Max internal pages (`/contact`, `/about`, `/team`) to scan per domain (`0` = homepage only, up to `10`). |
| `extractSocials` | `boolean` | `true` | Extract LinkedIn, X/Twitter, Instagram, Facebook, GitHub, and YouTube links. |
| `extractTechStack` | `boolean` | `true` | Detect CMS, analytics, CRM, and payment technologies on the website. |
| `onlyWithEmails` | `boolean` | `false` | Skip saving domains where `emailsCount` is `0`. |
| `maxConcurrency` | `integer` | `5` | Number of domains crawled simultaneously (`1` to `25`). |
| `requestTimeoutSecs` | `integer` | `15` | HTTP timeout per page request in seconds (`5` to `60`). |

#### Example Input JSON

```json
{
  "urls": [
    { "url": "[https://apify.com](https://apify.com)" },
    { "url": "[https://n8n.io](https://n8n.io)" }
  ],
  "maxPagesPerDomain": 3,
  "extractSocials": true,
  "extractTechStack": true,
  "onlyWithEmails": false,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 15
}
```

***

### 📤 Output Data Structure

Results are saved to the default Apify Dataset and can be downloaded in **JSON, CSV, Excel, XML, or HTML Table** formats.

#### Example Output Item

```json
{
  "domain": "apify.com",
  "url": "[https://apify.com](https://apify.com)",
  "status": "success",
  "title": "Apify: Full-stack web scraping and data extraction platform",
  "description": "Cloud platform for web scraping, browser automation, and data for AI.",
  "emailsCount": 2,
  "emails": [
    "hello@apify.com",
    "support@apify.com"
  ],
  "phones": [],
  "linkedin": "[https://www.linkedin.com/company/apify](https://www.linkedin.com/company/apify)",
  "twitter": "[https://x.com/apify](https://x.com/apify)",
  "instagram": null,
  "facebook": null,
  "github": "[https://github.com/apify](https://github.com/apify)",
  "youtube": "[https://www.youtube.com/@apify](https://www.youtube.com/@apify)",
  "techStack": [
    "Cloudflare",
    "Google Tag Manager",
    "Intercom",
    "Next.js",
    "Segment"
  ],
  "pagesCrawled": 4,
  "scrapedAt": "2026-11-13T17:30:00.123456+00:00"
}
```

***

### 🔌 Integrations & API Usage

#### Run via Python SDK (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")

run_input = {
    "urls": [{"url": "[https://apify.com](https://apify.com)"}, {"url": "[https://n8n.io](https://n8n.io)"}],
    "maxPagesPerDomain": 3,
    "onlyWithEmails": True,
}

run = client.actor("riquelme_labs/b2b-lead-contact-extractor").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{item['domain']} -> Emails: {item['emails']} | LinkedIn: {item['linkedin']}")
```

#### Connect to n8n, Make, Zapier, or Clay

1. Use the official **Apify integration node** in **n8n**, **Make**, or **Zapier**.
2. Select **Run an Actor** and search for `riquelme_labs/b2b-lead-contact-extractor`.
3. Map your incoming domain list to the `urls` array and fetch the resulting dataset items automatically once the run finishes.

***

### ❓ Frequently Asked Questions (FAQ)

#### Does this Actor verify email deliverability (SMTP ping)?

The Actor extracts live email addresses published in page text and `mailto:` links and validates their syntax while stripping out asset/image false positives and `noreply@` addresses. For cold email campaigns, you can pipe the output directly into an SMTP verification step in Clay, NeverBounce, or ZeroBounce.

#### What if a website has no emails published?

By default, the Actor still returns the domain's social profiles, phone numbers, metadata, and tech stack. If you only want leads that contain at least one email address, enable **`Only Save Leads with Verified Format Emails`** (`onlyWithEmails: true`) in the Input settings.

#### Can I scrape thousands of domains in a single run?

Yes. Upload a `.txt` or `.csv` file in the **Company Website URLs** field and increase **Concurrent Domains** (`maxConcurrency`) up to `20` or `25` for high-volume batch runs.

# Actor input Schema

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

List of company websites or domains to extract B2B contact details, social links, and tech signals from.

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

Maximum number of high-value internal pages (/contact, /about, /team, /legal) to crawl per domain in addition to the homepage.

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

Extract official company links for LinkedIn, X (Twitter), Instagram, Facebook, GitHub, and YouTube.

## `extractTechStack` (type: `boolean`):

Identify CMS, e-commerce platforms, analytics, CRM pixels, and frameworks (e.g., HubSpot, Shopify, WordPress, Next.js, Stripe).

## `onlyWithEmails` (type: `boolean`):

If enabled, domains where no email address was found will be skipped from the final dataset (so you only pay for leads with emails).

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

Number of company domains processed in parallel.

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

Maximum time in seconds to wait for each page response before skipping.

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://apify.com"
    },
    {
      "url": "https://n8n.io"
    }
  ],
  "maxPagesPerDomain": 3,
  "extractSocials": true,
  "extractTechStack": true,
  "onlyWithEmails": false,
  "maxConcurrency": 5,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

## `results` (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": [
        {
            "url": "https://apify.com"
        },
        {
            "url": "https://n8n.io"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("riquelme_labs/b2b-lead-contact-extractor").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": [
        { "url": "https://apify.com" },
        { "url": "https://n8n.io" },
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,riquelme_labs/b2b-lead-contact-extractor"
        }
    }
}
```

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/a99ww7jdXbT21OuZX/builds/7nSzS6VcxGZk3SSBG/openapi.json
