# B2B Lead Extractor & Website Contact Enricher (`constant_hyssop/b2b-lead-extractor-enricher`) Actor

Extract high-quality B2B business leads and automatically enrich them with direct verified emails, phone numbers, and social media profiles from their websites.

- **URL**: https://apify.com/constant\_hyssop/b2b-lead-extractor-enricher.md
- **Developed by:** [Saidur Rahman Pulok](https://apify.com/constant_hyssop) (community)
- **Categories:** Lead generation, Automation, Social media
- **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 b2b leads

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## B2B Lead Extractor & Website Contact Enricher

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue?logo=apify\&logoColor=white)](https://apify.com/constant_hyssop/b2b-lead-extractor-enricher)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.7-3178C6?logo=typescript\&logoColor=white)](https://www.typescriptlang.org/)
[![Crawlee](https://img.shields.io/badge/Crawlee-v3-orange)](https://crawlee.dev/)
[![Docker](https://img.shields.io/badge/Docker-Ready-2496ED?logo=docker\&logoColor=white)](https://www.docker.com/)

An automated data intelligence and lead enrichment Actor designed to discover local businesses across any niche and location, automatically extracting **verified business emails, direct phone numbers, and official company social media profiles** (LinkedIn, Twitter/X, Instagram, Facebook, YouTube) directly from their websites.

***

### Overview & Key Capabilities

Traditional directory scrapers provide basic phone numbers or mailing addresses, but frequently omit direct digital contact points. This Actor connects discovery search queries directly to deep website content extraction.

```
+------------------------+      +--------------------------+      +---------------------------+
| Search & Geo Discovery | ---> | Deep Website Crawling    | ---> | Contact Extraction Engine |
| • Keyword Targeting    |      | • Homepage               |      | • Direct Emails           |
| • Region / City Filter |      | • /contact, /about, /team|      | • Social Media Profiles   |
+------------------------+      +--------------------------+      +---------------------------+
```

#### Core Features

- **Targeted Business Discovery**: Query by industry keywords, professions, or service categories in any city, state, or country.
- **Deep Website Contact Enrichment**: Automatically traverses company domains (`/contact`, `/about`, `/team`, `/about-us`, `/leadership`) to extract public corporate emails and contact lines.
- **Social Media Intelligence**: Detects and extracts verified direct links for **LinkedIn**, **Twitter / X**, **Facebook**, **Instagram**, and **YouTube**.
- **False-Positive Filtering**: Automatically excludes image assets (`.png`, `.svg`), tracking scripts, CDN links, and template placeholder emails (`user@domain.com`, `name@...`).
- **CRM & Workflow Ready**: Direct export compatibility with CSV, Excel (XLSX), JSON, and webhooks for HubSpot, Salesforce, Lemlist, and Instantly.

***

### Comparison

| Feature | Standard Scrapers | This Actor |
|---|---|---|
| Business Name & Category | Yes | Yes |
| Website URL | Yes | Yes |
| Direct Corporate Email | Rare / Missing | **Automated Extraction** |
| Multi-Page Deep Enrichment | No | **Yes (`/contact`, `/about`, `/team`)** |
| Social Profile Discovery | Basic | **LinkedIn, X, FB, IG, YouTube** |
| Data Sanitization & Cleaning | Minimal | **Built-in RegEx & Domain Filters** |

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | `Array<String>` | `["Dental Clinics in Austin TX"]` | Search keywords specifying niche and location. |
| `location` | `String` | `""` | Optional global location appended to queries if not explicitly included. |
| `maxResultsPerQuery` | `Integer` | `30` | Maximum number of verified businesses to extract per search query. |
| `enrichContacts` | `Boolean` | `true` | When enabled, crawls official websites for verified contact emails & socials. |
| `maxEnrichmentPages` | `Integer` | `3` | Maximum number of subpages per company domain to scan. |
| `proxyConfiguration` | `Object` | `{ "useApifyProxy": true }` | Apify Proxy settings for high-concurrency extraction. |

#### Sample Input

```json
{
  "queries": [
    "Web Design Agencies in Austin TX",
    "Commercial HVAC Contractors in Chicago IL"
  ],
  "maxResultsPerQuery": 25,
  "enrichContacts": true,
  "maxEnrichmentPages": 3
}
```

***

### Output Data Structure

The Actor produces clean, structured JSON objects stored in the default dataset:

```json
{
  "title": "Austin Premier Web Studio",
  "category": "Web Design Agencies",
  "website": "https://www.example-studio.com",
  "phone": "+1-512-555-0144",
  "email": "contact@example-studio.com",
  "emails": [
    "contact@example-studio.com",
    "support@example-studio.com"
  ],
  "phones": [
    "+1-512-555-0144",
    "+1-512-555-0145"
  ],
  "linkedin": "https://www.linkedin.com/company/example-studio",
  "twitter": "https://x.com/ExampleStudio",
  "facebook": "https://www.facebook.com/ExampleStudio",
  "instagram": "https://www.instagram.com/ExampleStudio",
  "youtube": "https://www.youtube.com/@ExampleStudio",
  "sourceUrl": "https://www.example-studio.com",
  "searchQuery": "Web Design Agencies in Austin TX",
  "scrapedAt": "2026-08-16T12:00:00.000Z"
}
```

***

### API & Integration Examples

#### Python Client

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run_input = {
    "queries": ["B2B SaaS Companies in San Francisco CA"],
    "maxResultsPerQuery": 20,
    "enrichContacts": True,
}

run = client.actor("constant_hyssop/b2b-lead-extractor-enricher").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"Company: {item['title']} | Email: {item['email']} | LinkedIn: {item['linkedin']}")
```

#### Node.js / JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({
    token: 'YOUR_APIFY_TOKEN',
});

const input = {
    queries: ['Commercial Law Firms in London UK'],
    maxResultsPerQuery: 20,
    enrichContacts: true,
};

const run = await client.actor('constant_hyssop/b2b-lead-extractor-enricher').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();

console.log(`Extracted ${items.length} enriched leads.`);
```

***

### Use Cases

- **Outbound Sales & B2B Prospecting**: Build verified cold outreach campaigns with direct decision-maker contact points.
- **Agency Lead Acquisition**: Discover businesses in need of website redesign, SEO services, or marketing support.
- **Market & Competitor Research**: Gather regional business footprints, contact structures, and social media adoption across industries.

# Actor input Schema

## `queries` (type: `array`):

List of business types and niches to search (e.g. 'Dental Clinics', 'Real Estate Agencies', 'Solar Panel Installers').

## `location` (type: `string`):

Optional default city/state/country if not included directly in queries (e.g. 'New York, USA').

## `maxResultsPerQuery` (type: `integer`):

Maximum number of business leads to extract per search query.

## `enrichContacts` (type: `boolean`):

When enabled, visits each business's website and scans contact/about pages for verified emails, phones, and social links.

## `maxEnrichmentPages` (type: `integer`):

Maximum pages per company website to check for contact details (Contact, About, Team, etc.).

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

Select Apify Proxy to prevent rate limits and IP blocking during high-volume extractions.

## Actor input object example

```json
{
  "queries": [
    "Dental Clinics in Austin TX",
    "Real Estate Agencies in Miami FL"
  ],
  "maxResultsPerQuery": 30,
  "enrichContacts": true,
  "maxEnrichmentPages": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset containing verified business contacts, emails, phone numbers, and social media handles.

# 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 = {
    "queries": [
        "Dental Clinics in Austin TX",
        "Real Estate Agencies in Miami FL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("constant_hyssop/b2b-lead-extractor-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 = { "queries": [
        "Dental Clinics in Austin TX",
        "Real Estate Agencies in Miami FL",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("constant_hyssop/b2b-lead-extractor-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 '{
  "queries": [
    "Dental Clinics in Austin TX",
    "Real Estate Agencies in Miami FL"
  ]
}' |
apify call constant_hyssop/b2b-lead-extractor-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,constant_hyssop/b2b-lead-extractor-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/HZRxjYBOg8Jkq72gC/builds/HRZUmNIZ5Tp5orSeD/openapi.json
