# Business Contact Extractor (`washed_fun/business-contact-extractor`) Actor

Extract business emails and phone numbers from company websites.
High-accuracy AI-enabled business contact extractor using smart crawling, LLM and AI extraction, heuristics, and PDF extraction. Finds emails/phones even on complex sites. Supports CSV bulk input and outputs clean, CRM-ready data.

- **URL**: https://apify.com/washed_fun/business-contact-extractor.md
- **Developed by:** [Sue](https://apify.com/washed_fun) (community)
- **Categories:** Lead generation, AI, Automation
- **Features:** Limited permissions
- **Stats:** 131 total users, 0 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.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/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

## Business Contact Extractor

**The most thorough and accurate contact extractor available** — powered by AI and built with enterprise-grade verification.

Extract verified business emails and phone numbers from company websites, even when contact info is buried in PDFs, hidden behind navigation menus, or scattered across multiple pages. This Actor combines **smart multi-page crawling**, **strict multi-layer validation**, and **optional AI-powered extraction** to deliver results that other scrapers simply miss.

#### Why AI Makes the Difference

When you provide a Gemini API key, this Actor uses **LLM-powered extraction** to:

- **Understand page context** — AI reads the page like a human, identifying contact sections even on modern, JavaScript-heavy sites with minimal visible text
- **Extract from complex layouts** — Finds emails and phones embedded in stylized designs, image-based text, or unconventional formatting
- **Validate intelligently** — Cross-references extracted contacts against the page content to reject false positives
- **Achieve 100% email accuracy** — In real-world benchmarks, LLM mode eliminated all email errors

Even without AI, this Actor runs **50+ validation rules** on every email and phone number — rejecting hex IDs, placeholder text, vendor emails, invalid formats, and other junk that pollutes typical scraper output.

## Ideal for lead generation, B2B prospecting, data enrichment, and CRM automation. Works as a business email scraper, website contact finder, and phone number extraction API.

### Pricing

This Actor uses Apify's **pay-per-event** model:

| Fee Type | Cost |
|----------|------|
| Actor Start | $0.05 per run |
| Result | $0.006 per domain |

**Example:** Processing 100 domains costs approximately **$0.65** ($0.05 start fee + $0.60 for 100 results).

#### LLM Cost (Optional)

The optional LLM feature uses **Gemini 2.0 Flash**, which has an extremely generous free tier. For most users, the LLM cost is **completely free** or negligible — typically just a few cents even for thousands of domains.

Get a free Gemini API key at <https://aistudio.google.com/>

***

### Why This Scraper Is Different

Most contact scrapers only scan a single page or rely on simple pattern matching. That misses a huge amount of real business contact information.

This Actor is designed to be **far more thorough and reliable**, using a hybrid system that dramatically improves both coverage and accuracy:

#### 🔍 Smart Multi-Page Crawling

Automatically looks for:

- Contact pages
- About/team/support pages
- Footer links
- Auto-discovered subpages

This avoids the “homepage only” limitation of basic scrapers.

#### 🧠 AI-Powered Extraction + Strict Verification

Every contact goes through a **multi-stage validation pipeline**:

- **Format validation** — Rejects malformed emails, hex IDs, UUID fragments, and datetime strings
- **Domain matching** — Prioritizes emails matching the company's own domain
- **Vendor filtering** — Excludes generic vendor emails (e.g., orders@toasttab.com)
- **Phone normalization** — Converts all numbers to E.164 international format
- **Duplicate detection** — Removes redundant entries across all pages

With the optional **Gemini AI integration**, the Actor can also:

- Parse JavaScript-rendered content that basic scrapers miss
- Understand semantic context to find contacts on unconventional page layouts
- Cross-validate LLM findings against strict rules to eliminate hallucinations

#### 📄 PDF Contact Extraction

Many companies hide contact details inside:

- brochures
- catalogs
- downloadable spec sheets

This Actor automatically fetches and scans PDFs for emails and phone numbers — a major upgrade over typical HTML-only scrapers.

#### 🧹 Enterprise-Grade Data Quality

This isn't just extraction — it's **verification at scale**. Every result passes through 50+ validation rules:

- Rejects placeholder emails (test@, noreply@, example@)
- Filters out vendor/third-party emails (toasttab, squarespace, wix)
- Removes invalid phone patterns (hex IDs, tracking codes, dates)
- Normalizes all phones to **E.164 international format**
- Deduplicates across all crawled pages
- Prioritizes brand-matching emails as the primary contact

The result: **CRM-ready data you can trust**, not a list of garbage to clean up manually.

#### 📦 Bulk CSV Upload

Upload a CSV of domains and process hundreds of websites in one run.

***

### Performance (Based on Real-World Benchmarking)

Testing with 30 trade show exhibitor domains:

| Metric         | Without LLM | With LLM |
| -------------- | ----------- | -------- |
| Email accuracy | 92%         | **100%** |
| Email coverage | 80%         | 83%      |
| Phone coverage | 87%         | **90%**  |

These results are significantly higher than traditional scrapers.

***

### Performance Guarantees & Crawling Limits

To ensure fast and reliable performance on the Apify platform, this Actor enforces strict limits:

| Limit | Value | Reason |
|-------|-------|--------|
| Max pages per domain | 3 | Ensures fast completion and high health score |
| Per-domain timeout | 6 seconds | Prevents slow sites from blocking the queue |
| Global run timeout | 5 minutes | Ensures runs always complete within Apify limits |

**Important notes:**

- User requests for deeper crawling (>3 pages) are automatically capped for stability
- PDF extraction is disabled by default because it significantly increases run times. Enable it via `enablePdfExtraction: true` if needed.
- Each domain is time-limited to ~6 seconds, ensuring the Actor can process large batches efficiently

**Recommended batch sizes:** 50–250 domains per run for optimal performance.

**This is not a full-site spider.** The Actor is optimized for fast, targeted contact extraction from the homepage and key contact pages — not deep crawling entire websites.

***

### Input Options

#### **Option 1 — Domain List**

```json
{
  "domains": ["example.com", "another-company.com"],
  "maxPagesPerDomain": 3,
  "llmApiKey": "your-gemini-api-key"
}
```

#### **Option 2 — CSV Upload**

Upload a CSV with a `domain`, `website`, or `url` column:

```
domain
example.com
another-company.com
acme-corp.net
```

***

### Parameters

| Parameter           | Type    | Description                                                    |
| ------------------- | ------- | -------------------------------------------------------------- |
| domains             | array   | List of domains or URLs to scrape                              |
| csvFile             | file    | CSV file with domain/website/url column                        |
| maxPagesPerDomain   | integer | Max pages to crawl per domain (default: 3, max: 3)             |
| enablePdfExtraction | boolean | Enable PDF extraction (default: false, slower but more thorough) |
| llmApiKey           | string  | Gemini API key for enhanced accuracy                           |

Get a free Gemini API key at <https://aistudio.google.com/>

***

### Output Format

Each domain produces one result:

```json
{
  "domain": "example.com",
  "primary_email": "contact@example.com",
  "primary_phone": "+14155551234",
  "supplemental_emails": ["sales@example.com", "support@example.com"],
  "supplemental_phones": ["+14155555678"]
}
```

#### Output Fields

| Field               | Description                             |
| ------------------- | --------------------------------------- |
| domain              | Domain that was scraped                 |
| primary_email       | Best email found (prefers brand domain) |
| primary_phone       | Best phone found (E.164 format)         |
| supplemental_emails | All other valid emails found            |
| supplemental_phones | All other valid phones found            |

***

### Usage Tips

- Add a Gemini API key for **maximum coverage and 100% email accuracy**
- Use CSV upload for large batches (50–250 domains recommended)
- Enable `enablePdfExtraction` if contact info is often in PDF brochures/catalogs
- Find results in the Dataset tab after the run completes

***

### Limitations

- Cannot extract contacts behind login walls
- Cannot retrieve contacts locked behind form submissions

***

If you need high-quality business contact data at scale, this Actor provides the most robust and accurate extraction method available on Apify.

# Actor input Schema

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

List of company domains or URLs to extract contacts from

## `csvFile` (type: `string`):

Upload CSV with 'domain', 'website', or 'url' column for bulk processing

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

Maximum pages to crawl per domain. Values > 3 are automatically capped for stability.

## `enablePdfExtraction` (type: `boolean`):

PDF extraction is slow and disabled by default. Enable only if needed.

## `llmApiKey` (type: `string`):

Boosts accuracy to 100%. Get a free key at https://aistudio.google.com/

## Actor input object example

```json
{
  "domains": [
    "apify.com"
  ],
  "maxPagesPerDomain": 3,
  "enablePdfExtraction": false
}
```

# Actor output Schema

## `domain` (type: `string`):

No description

## `primary_email` (type: `string`):

No description

## `primary_phone` (type: `string`):

No description

## `supplemental_emails` (type: `string`):

No description

## `supplemental_phones` (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": [
        "apify.com"
    ]
};

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

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

```

## MCP server setup

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