# Website Contact & Email Extractor (Flat Cost Cap) (`tarquin/flat-cap-contact-scraper`) Actor

Extract verified business emails, phones, social profiles, and addresses from website URLs or Google Maps datasets with strict per-domain page caps. Pay only for domains and verified contacts found—never for endless subpage crawls.

- **URL**: https://apify.com/tarquin/flat-cap-contact-scraper.md
- **Developed by:** [Quite Good Project](https://apify.com/tarquin) (community)
- **Categories:** Lead generation, 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.00 / 1,000 domain processeds

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

## Website Contact & Email Extractor (Flat Cost Cap)

Extract **verified business email addresses, phone numbers, social media profiles, company names, and physical addresses** from target websites or directly from an existing **Apify Dataset** (such as a Google Maps Scraper export)—with a **strict, predictable per-domain page budget**.

Unlike crawlers that charge per crawled subpage and spiral into unexpected bills when a website has thousands of pages, this Actor enforces a hard `maxPagesPerDomain` ceiling (`1–10`, default `4`) and prioritizes only high-signal pages (`/contact`, `/about`, `/team`, `/imprint`, `/legal`). You pay **only for domains processed and deliverable contacts found**—never for endless junk pages.

***

### Key Features

- **Zero Runaway Crawl Bills:** Hard `maxPagesPerDomain` cap stops crawling after the homepage and top prioritized contact pages.
- **Direct Google Maps Dataset Integration:** Pass a `sourceDatasetId` from a Google Maps Scraper run and the Actor automatically extracts `website` / `url` fields, carries over existing phone/address metadata, and enriches each business with verified emails and social profiles under safe `LIMITED_PERMISSIONS`.
- **Live Email Deliverability Verification:** Screens out invalid syntax, disposable domains, and dead mailboxes, flags catch-all domains, and reports confidence and verification depth per email.
- **Smart De-Obfuscation & Schema Extraction:** Parses `mailto:` / `tel:` links, JSON-LD `Organization` / `LocalBusiness` metadata, `<address>` blocks, and common `[at]` / `(at)` obfuscated text.
- **MCP-Ready Output Schema:** Clean, strictly typed JSON records designed for AI agents, Clay, n8n, and Make workflows.

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | `[{ "url": "https://apify.com" }]` | Website URLs or domains to extract contacts from. |
| `sourceDatasetId` | String | `""` | Optional Apify Dataset ID (e.g. from Google Maps Scraper). Reads `website` / `url` fields automatically. |
| `maxDomains` | Integer | `100` | Maximum unique domains processed per run (`1–10000`). Free Apify accounts are capped at `15` domains per run. |
| `maxPagesPerDomain` | Integer | `4` | Strict page cap per domain (`1–10`). Homepage + prioritized contact/about/team pages. |
| `verifyEmails` | Boolean | `true` | Validates MX records, disposable domains, catch-all status, and mailbox deliverability (DNS/MX on Free plans; full SMTP/M365 verification on paid plans). |
| `excludeGenericRoleEmails` | Boolean | `false` | Drops generic role prefixes (`info@`, `support@`, `noreply@`, etc.). |
| `includeFreeProviders` | Boolean | `true` | Keeps consumer webmail domains (`gmail.com`, `outlook.com`), helpful for local trades and sole proprietors. |
| `useFallbackExtractor` | Boolean | `true` | Retries empty SPA shells or blocked homepages with deep extraction. |
| `proxyConfiguration` | Object | `{ "useApifyProxy": false }` | Optional Apify Proxy configuration for heavily protected targets. |

***

### Output Example

```json
{
  "domain": "example.co.uk",
  "sourceUrl": "https://example.co.uk/",
  "companyName": "Example Engineering Ltd",
  "emails": ["contact@example.co.uk", "jane.doe@example.co.uk"],
  "verifiedEmails": ["contact@example.co.uk", "jane.doe@example.co.uk"],
  "emailDetails": [
    {
      "email": "jane.doe@example.co.uk",
      "deliverable": true,
      "status": "valid",
      "isCatchAll": false,
      "isDisposable": false,
      "isFreeProvider": false,
      "isRoleAccount": false,
      "hasMx": true,
      "confidence": 99,
      "verificationDepth": "smtp_discrete_mailbox"
    }
  ],
  "phones": ["+44 20 7946 0921"],
  "socials": {
    "linkedin": "https://www.linkedin.com/company/example-engineering"
  },
  "address": "12 High Street, London, EC1A 1BB",
  "pagesCrawled": 3,
  "verificationMode": "live_smtp_and_mx",
  "freeTierLimited": false,
  "extractedAt": "2026-11-23T11:40:00.000Z"
}
```

***

### Pricing & Free Plan Limits

- **Actor Start Fee:** `$0.00`
- **Pay-Per-Event (Hard-Capped):** Charged per `domain-processed` and per `verified-contact` discrete deliverable email (**hard-capped at max `2` `verified-contact` charges per domain** even if more emails are returned, and `$0` for catch-all or DNS-only fallbacks). Never billed per junk subpage crawled.
- **Free Apify Plan:** Up to `15` domains and `3` pages per domain per run with DNS/MX email verification so you can inspect output quality before scaling on a paid Apify plan.

# Actor input Schema

## `startUrls` (type: `array`):

List of company website URLs or domains to extract contact details from.

## `sourceDatasetId` (type: `string`):

Optional Apify Dataset from another run (such as Google Maps Scraper). Website URLs are extracted automatically under limited permissions.

## `maxDomains` (type: `integer`):

Hard ceiling on the total number of unique domains processed in this run.

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

Strict maximum pages crawled per domain (homepage + prioritized contact/about/team pages). Prevents surprise runaway crawl bills.

## `verifyEmails` (type: `boolean`):

Checks MX records, disposable traps, catch-all status, and live mailbox deliverability (full SMTP/M365 check on paid Apify plans; DNS/MX check on free plan).

## `excludeGenericRoleEmails` (type: `boolean`):

Filter out generic role-based addresses where a direct personal/named email is preferred.

## `includeFreeProviders` (type: `boolean`):

Keep consumer webmail domains (useful for sole traders/local businesses). Turn off for strict corporate domain emails only.

## `useFallbackExtractor` (type: `boolean`):

On paid Apify plans, retries blocked or empty JS pages with deep HTML extraction.

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

Optional Apify Proxy settings. Leave off for lowest cost on standard business sites; enable only if targeting protected websites.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxDomains": 100,
  "maxPagesPerDomain": 4,
  "verifyEmails": true,
  "excludeGenericRoleEmails": false,
  "includeFreeProviders": true,
  "useFallbackExtractor": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Deduplicated domain contact records, emails, phones, social profiles, and deliverability details.

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

// Run the Actor and wait for it to finish
const run = await client.actor("tarquin/flat-cap-contact-scraper").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 = { "startUrls": [{ "url": "https://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("tarquin/flat-cap-contact-scraper").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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call tarquin/flat-cap-contact-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tarquin/flat-cap-contact-scraper"
        }
    }
}
```

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/sorRaVkfKTrsq22Q6/builds/HavpE0O6od6yCOQ8E/openapi.json
