# B2B Domain Contact & Social Profile Enricher (`piotrhl/b2b-domain-contact-enricher`) Actor

Ultra-fast async B2B lead enrichment engine. Crawls company websites to discover verified corporate emails, phone numbers, and executive social profiles (LinkedIn, X, GitHub) under 128 MB RAM.

- **URL**: https://apify.com/piotrhl/b2b-domain-contact-enricher.md
- **Developed by:** [Piotr Hładik](https://apify.com/piotrhl) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 Domain Contact & Social Profile Enricher

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue.svg)](https://apify.com)
[![Pay-Per-Event](https://img.shields.io/badge/Monetization-Pay--Per--Event-green.svg)](https://docs.apify.com/actors/development/pay-per-event)
[![Memory: <128MB](https://img.shields.io/badge/RAM-%3C128MB-success.svg)](https://apify.com)

Ultra-fast, asynchronous B2B lead enrichment Actor. Crawls target company websites and subpages to discover verified corporate emails, executive phone numbers, addresses, European VAT numbers, and corporate social profiles (LinkedIn, X/Twitter, GitHub, YouTube, Facebook, Instagram) under **128 MB RAM**.

***

### Key Features

- **Multi-Level Contact Discovery**: Automatically extracts emails from `mailto:` links, footer contact widgets, and body text.
- **Subpage Crawler**: Intelligently discovers and crawls subpages like `/contact`, `/about-us`, `/team`, and `/impressum` for deep data discovery.
- **Anti-Noise & Spam Trap Filtering**: Rejects dummy files (`.png`, `.jpg`, `.svg`), CDN assets, and common development placeholders (`sentry.io`, `wixpress.com`, `example.com`).
- **Full Social Profile Detection**: Matches LinkedIn corporate/personal pages, X/Twitter handles, GitHub organizations, Facebook pages, and YouTube channels.
- **Schema.org JSON-LD Extraction**: Reads structured `PostalAddress`, `vatID`, and company legal names.
- **Pay-Per-Event (PPE) Pricing**: Pay only **$0.003** per domain successfully enriched. Zero recurring monthly subscription required!
- **AI/LLM-Ready Markdown Summaries**: Returns structured JSON and human/LLM-readable markdown dossiers per domain.

***

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `domains` | Array | **Yes** | `[{"url": "https://apify.com"}]` | List of company domains or websites to enrich. |
| `crawl_subpages` | Boolean | No | `true` | Automatically crawl discovered `/contact` and `/about` subpages. |
| `max_subpages_per_domain` | Integer | No | `5` | Maximum subpages to crawl per domain (1 to 20). |
| `concurrency` | Integer | No | `5` | Concurrent network workers (1 to 25). |
| `request_timeout_sec` | Integer | No | `15` | HTTP request timeout in seconds (5 to 60). |
| `proxy_configuration` | Object | No | `{"useApifyProxy": true}` | Apify Proxy settings to bypass anti-bot and rate limits. |

***

### Pay-Per-Event (PPE) Monetization

This Actor operates under Apify's **Pay-Per-Event** billing model:

- `apify-actor-start`: **$0.00005** (nominal initialization fee)
- `domain-enriched`: **$0.003** per company domain enriched

***

### Output Dataset Schema

Each record pushed to the default Apify Dataset contains:

```json
{
  "domain": "acme.corp",
  "company_name": "Acme Corporation",
  "meta_description": "Acme Corp provides automated cloud infrastructure for global enterprises.",
  "emails": [
    "executives@acme.corp",
    "info@acme.corp",
    "sales@acme.corp",
    "support@acme.corp"
  ],
  "phone_numbers": [
    "+1 (415) 555-2673",
    "+1 (415) 555-9999"
  ],
  "social_links": {
    "github": ["https://github.com/acme-corp"],
    "linkedin": ["https://www.linkedin.com/company/acme-corp"],
    "twitter": ["https://twitter.com/acmecorp"],
    "youtube": ["https://youtube.com/@acmecorp"]
  },
  "address": "100 Market St, San Francisco, 94105, USA",
  "vat_or_tax_id": "US123456789",
  "pages_crawled": [
    "https://acme.corp",
    "https://acme.corp/about-us",
    "https://acme.corp/contact"
  ],
  "status": "SUCCESS",
  "markdown_summary": "## B2B Contact Profile: Acme Corporation (`acme.corp`)..."
}
```

# Actor input Schema

## `domains` (type: `array`):

List of company domains or websites to enrich (e.g. apify.com or https://stripe.com).

## `crawl_subpages` (type: `boolean`):

Automatically discover and crawl /contact, /about, /team, and /impressum subpages for hidden emails.

## `max_subpages_per_domain` (type: `integer`):

Maximum number of discovered subpages to crawl per target domain.

## `concurrency` (type: `integer`):

Number of concurrent network workers for extracting domains.

## `request_timeout_sec` (type: `integer`):

HTTP request timeout in seconds.

## `custom_user_agent` (type: `string`):

Custom HTTP User-Agent header string.

## `proxy_configuration` (type: `object`):

Apify Proxy settings to bypass anti-scraping and rate limits.

## Actor input object example

```json
{
  "domains": [
    {
      "url": "https://apify.com"
    }
  ],
  "crawl_subpages": true,
  "max_subpages_per_domain": 5,
  "concurrency": 5,
  "request_timeout_sec": 15,
  "proxy_configuration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

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

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

```

## MCP server setup

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