# Website Email & Contact Extractor + AI (Lead Finder) (`lizzyyy2/email-contact-extractor-ai`) Actor

Extract emails, phone numbers and social profiles from any company website over HTTP, then let built-in AI pick the best outreach contact and write a personalized opener. No API key, no browser. Built for lead generation.

- **URL**: https://apify.com/lizzyyy2/email-contact-extractor-ai.md
- **Developed by:** [Lizzy](https://apify.com/lizzyyy2) (community)
- **Categories:** Lead generation, Developer tools, AI
- **Stats:** 2 total users, 0 monthly users, 75.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 ai contact enrichments

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Website Email & Contact Extractor + AI (Lead Finder)

Turn a list of company websites into a clean contact list. This actor crawls each
site's homepage plus its most contact‑relevant pages (contact / about / team /
imprint) over plain HTTP — **no API key and no browser** — and pulls out:

- **Emails** (from `mailto:` links and visible text, with asset/placeholder junk filtered out)
- **Phone numbers** (only from real `tel:` links, so you never get garbage from page markup)
- **Social profiles** — LinkedIn, X/Twitter, Facebook, Instagram, YouTube
- A split of **role/generic** vs **personal** emails, on‑domain addresses first

Then the optional built‑in **AI** reads what was found and, for each site, picks the
**single best outreach contact**, guesses the **likely departments**, writes a
one‑line **company summary**, and drafts a **personalized opening line** tailored to
what *you* sell.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `websites` | array (required) | Company websites/domains, one per line (`acme.com` or `https://acme.com`). |
| `maxPagesPerSite` | integer | Pages to crawl per site (homepage + most contact‑relevant pages). Default `4`, max `10`. |
| `aiEnrichment` | boolean | Pick the best contact, departments, summary and opener with AI. Default `true`. Turn off for raw extraction only (no AI charges). |
| `yourOffer` | string | What you sell, so the AI tailors the opener (e.g. *"recruiting software for tech teams"*). Optional. |
| `aiLanguage` | string | Language for the AI‑written fields. Default `English`. |
| `proxyConfiguration` | object | Apify Proxy is recommended (rotating IPs). |

#### Example input

```json
{
  "websites": ["cleveroad.com", "thoughtbot.com"],
  "maxPagesPerSite": 4,
  "aiEnrichment": true,
  "yourOffer": "recruiting software for tech teams",
  "aiLanguage": "English"
}
````

### Output

One dataset item per website, for example:

```json
{
  "website": "cleveroad.com",
  "reachable": true,
  "contactsFound": true,
  "pagesScanned": 4,
  "emailCount": 5,
  "emails": ["sales@cleveroad.com", "..."],
  "roleEmails": ["sales@cleveroad.com"],
  "personalEmails": [],
  "phones": ["+1 218 4131"],
  "linkedin": "https://www.linkedin.com/company/cleveroad",
  "twitter": "https://twitter.com/CleveroadInc",
  "bestContactEmail": "sales@cleveroad.com",
  "aiQualification": {
    "bestContactEmail": "sales@cleveroad.com",
    "bestContactReason": "Primary sales inbox for new business enquiries.",
    "likelyDepartments": ["Sales", "Business Development"],
    "companyOneLiner": "Cleveroad is a software development company building web and mobile products.",
    "personalizedOpener": "Hi Cleveroad team — loved how you frame your delivery process...",
    "outreachAngle": "Faster technical hiring to staff your project pipeline."
  }
}
```

If a site can't be reached you still get a row with `reachable: false` and the reason.

### How it works

1. Fetches the homepage with rotating proxies and realistic headers.
2. Strips `<script>`, `<style>`, `<svg>`, `<noscript>` and `<template>` **before** reading text — so SVG path data and inline scripts can never be mis‑read as phone numbers or emails.
3. Extracts emails (`mailto:` + cleaned text), phones (`tel:` only) and social links.
4. Follows up to a handful of same‑site contact/about/team pages for more.
5. (Optional) Calls the built‑in AI once per site that has contacts, to qualify the lead.

### Notes & limits

- Sites that hide all contact details behind a JavaScript form or a captcha may return no emails — that's expected for a browserless, respectful crawler.
- The actor only visits pages on the **same domain** you provide.
- Please use the output in line with applicable anti‑spam and data‑protection laws (e.g. GDPR/CAN‑SPAM). You are responsible for how you contact the people you find.

# Actor input Schema

## `websites` (type: `array`):

Company websites to extract contacts from, one per line (e.g. "acme.com" or "https://acme.com"). The homepage and its contact / about / team pages are crawled over HTTP.

## `maxPagesPerSite` (type: `integer`):

How many pages to crawl per website (the homepage plus the most contact-relevant internal pages). Higher = more emails but more compute.

## `aiEnrichment` (type: `boolean`):

Use the built-in AI to pick the best outreach contact, guess departments, summarize the company and write a personalized opener. Turn off for raw contact extraction only (no AI charges).

## `yourOffer` (type: `string`):

Describe your product/service so the AI tailors the outreach opener to it (e.g. "recruiting software for tech teams"). Leave empty for a generic opener.

## `aiLanguage` (type: `string`):

Language for the AI-written fields (company summary, opener, angle).

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

Apify Proxy is recommended so requests come from rotating IPs.

## Actor input object example

```json
{
  "websites": [
    "smashingmagazine.com",
    "https://basecamp.com"
  ],
  "maxPagesPerSite": 4,
  "aiEnrichment": true,
  "aiLanguage": "English",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Per-website emails, phones and social profiles plus AI contact qualification in the default dataset.

# 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 = {
    "websites": [
        "cleveroad.com",
        "thoughtbot.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lizzyyy2/email-contact-extractor-ai").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 = { "websites": [
        "cleveroad.com",
        "thoughtbot.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lizzyyy2/email-contact-extractor-ai").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "websites": [
    "cleveroad.com",
    "thoughtbot.com"
  ]
}' |
apify call lizzyyy2/email-contact-extractor-ai --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lizzyyy2/email-contact-extractor-ai",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Website Email & Contact Extractor + AI (Lead Finder)",
        "description": "Extract emails, phone numbers and social profiles from any company website over HTTP, then let built-in AI pick the best outreach contact and write a personalized opener. No API key, no browser. Built for lead generation.",
        "version": "0.1",
        "x-build-id": "Cgl0sXhaBQWNDmpqN"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/lizzyyy2~email-contact-extractor-ai/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-lizzyyy2-email-contact-extractor-ai",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/lizzyyy2~email-contact-extractor-ai/runs": {
            "post": {
                "operationId": "runs-sync-lizzyyy2-email-contact-extractor-ai",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/lizzyyy2~email-contact-extractor-ai/run-sync": {
            "post": {
                "operationId": "run-sync-lizzyyy2-email-contact-extractor-ai",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "websites"
                ],
                "properties": {
                    "websites": {
                        "title": "Websites / domains",
                        "type": "array",
                        "description": "Company websites to extract contacts from, one per line (e.g. \"acme.com\" or \"https://acme.com\"). The homepage and its contact / about / team pages are crawled over HTTP.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPagesPerSite": {
                        "title": "Max pages per site",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many pages to crawl per website (the homepage plus the most contact-relevant internal pages). Higher = more emails but more compute.",
                        "default": 4
                    },
                    "aiEnrichment": {
                        "title": "Enable AI contact qualification",
                        "type": "boolean",
                        "description": "Use the built-in AI to pick the best outreach contact, guess departments, summarize the company and write a personalized opener. Turn off for raw contact extraction only (no AI charges).",
                        "default": true
                    },
                    "yourOffer": {
                        "title": "What you sell (optional)",
                        "type": "string",
                        "description": "Describe your product/service so the AI tailors the outreach opener to it (e.g. \"recruiting software for tech teams\"). Leave empty for a generic opener."
                    },
                    "aiLanguage": {
                        "title": "AI output language",
                        "type": "string",
                        "description": "Language for the AI-written fields (company summary, opener, angle).",
                        "default": "English"
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify Proxy is recommended so requests come from rotating IPs.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
