# B2B Company to Domain, LinkedIn, Email & WhatsApp API (`maitreya_buddha/b2b-company-domain-linkedin-enricher`) Actor

Turn company names, domains, or emails into enriched B2B leads in one run: official website, LinkedIn company URL, prioritized business emails, WhatsApp, phones, and 6 social links. Chains with Apify datasets, pure HTTP 128MB RAM, $0 proxy. $2.50 / 1K enriched; $0 if not found.

- **URL**: https://apify.com/maitreya_buddha/b2b-company-domain-linkedin-enricher.md
- **Developed by:** [BoGeun Kim](https://apify.com/maitreya_buddha) (community)
- **Categories:** Lead generation, Business, Marketing
- **Features:** 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 company enricheds

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 Company to Domain, LinkedIn, Email & WhatsApp Enricher

> **Replaces 3 separate Actors (Company → Domain + Domain → LinkedIn + Contact/WhatsApp Finder) in 1 call — pay only for verified matches, misses are free.**

Turn raw **Company Names** (`"Stripe"`, `"Linear, US"`), **Domains** (`"canva.com"`), **Work Emails** (`"info@apify.com"`), or an **upstream Apify `datasetId`** (Google Maps, Apollo, Crunchbase, etc.) into clean, verified **official company domains, LinkedIn `/company/` URLs, prioritized role emails (`sales@`, `hello@`, `contact@`, `info@`, `support@`), WhatsApp links (`wa.me` / `api.whatsapp.com`), phone numbers, and social profiles** — on **128 MB RAM with zero browser, zero proxy, and zero search-engine scraping**.

### Key Features

- **3-in-1 B2B Resolution Pipeline**:
  1. **Company Name → Official Domain**: Queries Wikidata public API (`P856` official website + `P4264` LinkedIn ID, no key required) and falls back to deterministic TLD/ccTLD candidate generation + DNS verification + homepage brand-match scoring (`<title>`, `og:site_name`, `Schema.org Organization`, copyright).
  2. **Verified LinkedIn Company URL**: Accepts only `/company/...` or `/school/...` URLs; strictly filters out `/in/` personal profiles, `/sharing/`, and `/shareArticle` widgets.
  3. **Contacts, WhatsApp & Socials**: Extracts & sorts role emails first (filtering out `noreply@`, `example.com`, `sentry.io`, and image filenames like `logo@2x.png`), WhatsApp links, `tel:` / international phones, and X/Instagram/Facebook/YouTube/TikTok/GitHub profiles from the homepage plus up to 2 `/contact` or `/about` pages.
- **Zero-Waste Pay-per-Event Billing (`company-enriched`)**:
  - Charged **only** when `status === "enriched"` (verified non-parked domain + extracted data).
  - **`$0` for misses, parked domains (GoDaddy/Sedo/HugeDomains), directory traps (Wikipedia/LinkedIn), free webmails (`gmail.com`), duplicates, or SSRF-blocked inputs.**
- **Native Clay / n8n / Make `datasetId` Chaining**: Pass `datasetId: "{{resource.defaultDatasetId}}"` from an upstream Apify run (e.g., Google Maps Scraper) — auto-detects `website`, `domain`, `email`, or `companyName` fields.
- **Enterprise Hardening**: Strict SSRF & per-hop DNS-rebinding defense, 4s DNS timeout, 15s HTTP timeout, 2 MB streaming HTML cap, binary PDF/image skipping, broken UTF-8 safe decoding, and 50-item batched `Actor.charge` + `Actor.pushData`.

### Input Parameters

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `inputs` | string\[] | - | Up to 2,000 company names, domains, URLs, or work emails |
| `datasetId` | string | - | Upstream Apify Dataset ID (`{{resource.defaultDatasetId}}` chaining) |
| `datasetField` | string | *(auto)* | Specific field to read from `datasetId` (auto-detects if omitted) |
| `enrichContactPages` | boolean | `true` | Inspect up to 2 `/contact` or `/about` pages when homepage lacks contacts |
| `includeUnresolved` | boolean | `true` | Include `not_found` / `blocked_ssrf` / `invalid_input` rows in Dataset (always `$0`) |
| `minConfidence` | string | `"medium"` | Minimum company-name-to-domain confidence (`"low"`, `"medium"`, `"high"`) |
| `concurrency` | integer | `6` | Concurrent entries processed (`1`–`15`) |

### Clay / n8n Chaining Example

```json
{
  "datasetId": "{{resource.defaultDatasetId}}",
  "enrichContactPages": true,
  "minConfidence": "medium",
  "includeUnresolved": false
}
```

### Output Example (Real Live Run — `Stripe`)

```json
{
  "input": "Stripe",
  "inputType": "company_name",
  "status": "enriched",
  "domain": "stripe.com",
  "websiteUrl": "https://stripe.com/",
  "pageTitle": "Stripe | Financial Infrastructure to Grow Your Revenue",
  "confidence": "high",
  "matchedBy": "wikidata",
  "linkedinUrl": "https://www.linkedin.com/company/stripe",
  "emails": [],
  "whatsappLinks": [],
  "phones": ["+18889262289"],
  "socials": {
    "x": "https://x.com/stripe",
    "instagram": "https://www.instagram.com/stripehq",
    "facebook": "https://www.facebook.com/StripeHQ",
    "youtube": "https://www.youtube.com/@stripe",
    "tiktok": null,
    "github": "https://github.com/stripe"
  },
  "logoUrl": "https://images.stripeassets.com/fzn2n1nzq965/1hgcBNd12BfT9VLgbId7By/01d91920114b124fb4cf6d448f9f06eb/favicon.svg",
  "enrichedAt": "2026-11-21T02:13:52.809Z"
}
```

***

### 한국어 요약 (Korean Summary)

회사명(`"Stripe"`, `"Linear, US"`), 도메인(`"canva.com"`), 업무 이메일(`"info@apify.com"`), 또는 상위 Apify Actor의 `datasetId`(Google Maps·Apollo 등)를 넣으면 **1회 호출로 공식 도메인 + 검증된 LinkedIn 회사 URL(`/company/` 전용) + 역할 이메일(`sales@`, `hello@`, `contact@`, `info@`) + WhatsApp/전화번호 + 소셜 링크**를 한 번에 추출하는 3-in-1 초경량(128MB) B2B 리드 보강 Actor입니다.

- **성공 건(`status: "enriched"`)만 과금 (`company-enriched`)**: 미발견(`not_found`), 파킹 도메인, 무료 웹메일(`gmail.com`), 중복 입력, SSRF 차단 건은 **과금 `$0`**.
- **브라우저·프록시·검색엔진 스크래핑 0원**: Wikidata 공개 API + 결정론적 도메인·DNS·홈페이지 브랜드 검증으로 초고속·고마진 운영 가능.

# Actor input Schema

## `inputs` (type: `array`):

List of up to 2,000 company names (e.g. 'Stripe', 'Linear, US'), domains ('canva.com'), URLs, or work emails ('info@apify.com'). Can be omitted when using 'datasetId'.

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

Optional Apify Dataset ID from an upstream Actor (e.g. Google Maps, Apollo, or {{resource.defaultDatasetId}} in n8n/Make). Automatically detects website/domain/companyName/email fields.

## `datasetField` (type: `string`):

Specific field name to read from datasetId items. Leave blank to auto-detect (website, domain, url, companyName, name, email).

## `enrichContactPages` (type: `boolean`):

When homepage lacks emails, WhatsApp links, or LinkedIn URLs, inspect up to 2 internal contact/about pages.

## `includeUnresolved` (type: `boolean`):

Keep not_found / blocked_ssrf / invalid_input rows in the output Dataset for auditability. Unresolved rows are NEVER billed ($0).

## `minConfidence` (type: `string`):

Minimum confidence level required to accept a company-name-to-domain match ('low', 'medium', or 'high').

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

Number of entries processed concurrently (1-15).

## Actor input object example

```json
{
  "inputs": [
    "Stripe",
    "Linear",
    "canva.com",
    "info@apify.com"
  ],
  "enrichContactPages": true,
  "includeUnresolved": true,
  "minConfidence": "medium",
  "concurrency": 6
}
```

# 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 = {
    "inputs": [
        "Stripe",
        "Linear",
        "canva.com",
        "info@apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maitreya_buddha/b2b-company-domain-linkedin-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 = { "inputs": [
        "Stripe",
        "Linear",
        "canva.com",
        "info@apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("maitreya_buddha/b2b-company-domain-linkedin-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 '{
  "inputs": [
    "Stripe",
    "Linear",
    "canva.com",
    "info@apify.com"
  ]
}' |
apify call maitreya_buddha/b2b-company-domain-linkedin-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maitreya_buddha/b2b-company-domain-linkedin-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/qhvwjbrNZk0WBlpCr/builds/bdx8bgKF5jKFyBw7h/openapi.json
