# Email Extractor: Website Emails, Phones & Socials (`iscle/website-contact-extractor`) Actor

Email extractor for any list of websites: finds emails, phone numbers and social profiles (Facebook, Instagram, LinkedIn, X, YouTube, TikTok, WhatsApp) on each site. Flat price per website with contacts; websites with nothing found are free.

- **URL**: https://apify.com/iscle/website-contact-extractor.md
- **Developed by:** [Iscle Beltran](https://apify.com/iscle) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **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

## Email Extractor: Website Emails, Phones & Socials

Extract **emails, phone numbers and social profiles** (Facebook, Instagram, LinkedIn, X/Twitter, YouTube, TikTok, WhatsApp, Telegram) from any list of websites.

**You pay per website where contacts are found, never per page crawled.** Websites where nothing is found are free. The cost of a run is known before you start: number of websites × price.

### Why this extractor

- **Predictable price.** One flat event per website with contacts, whatever the number of pages visited. No "1,000 links cost me $20" surprises.
- **Smart crawl, not a blind crawl.** It reads the homepage and then only the pages that usually hold contact data: contact, legal notice / imprint, about, team. It works in English, Spanish, Catalan, French, German, Italian and Portuguese page names. Up to 5 pages by default (max 15), at the same price.
- **Clean results.**
  - Duplicate domains are removed from the input.
  - Each email is tagged as `generic` (info@, sales@...), `personal` (name@) or `legal` (privacy officer, GDPR). The main `email` field never uses a legal address.
  - It checks that the email domain can receive mail (MX record), and drops junk such as image file names and example.com.
  - Phone numbers are given in international E.164 format (+34912531998). The country is guessed from the domain, or you can set it.
  - Cloudflare-protected and "name \[at] domain" emails are decoded.
- **Hard limits.** Your "Maximum cost per run" and "Maximum websites" are always respected: the run stops when either is reached.
- **Works with Google Maps data.** Paste the dataset ID of any Google Maps scraper run and it reads the `website` field. Name, address and placeId are kept in the output.

### Input

```json
{
  "websites": ["guijarrofontaneros.es", "https://www.dentalnavarro.com/"],
  "maxPagesPerWebsite": 5,
  "onlyWithContacts": false
}
```

Or use `datasetId` to read websites from another Actor's dataset (fields `website`, `url` or `domain`).

### Output (real example)

```json
{
  "domain": "guijarrofontaneros.es",
  "website": "https://guijarrofontaneros.es/",
  "status": "ok",
  "contactsFound": true,
  "email": "info@guijarrofontaneros.es",
  "emails": ["info@guijarrofontaneros.es"],
  "emailDetails": [{ "email": "info@guijarrofontaneros.es", "type": "generic", "sameDomain": true, "domainAcceptsMail": true, "source": "https://guijarrofontaneros.es/" }],
  "phone": "+34644426860",
  "phones": [{ "e164": "+34644426860", "display": "+34 644 42 68 60", "country": "ES" }],
  "facebook": null, "instagram": null, "linkedin": null,
  "pagesVisited": 3
}
```

Every website also gets a `status`: `ok`, `unreachable`, `http_403` and so on. That way you know why nothing was found. Rows without contacts are free.

In our test with 29 real business websites (dental clinics in Madrid plus large international sites), 24 had contacts, and the whole run took 8 seconds.

### Pricing

| Event | Price |
|---|---|
| Run start | $0.002 |
| Website with contacts found (email, phone or social profile) | $0.002 ($2 per 1,000 websites) |
| Website with nothing found | free |

Turn on **Count only websites with an email** to pay only when an email is found.

### Tips

- For lead lists, run a Google Maps search first, then pass its dataset ID here. Or use our **Google Maps Leads with Emails** Actor, which does both in one run.
- If many websites in your list block requests (`http_403`), enable the proxy.

### Legal note

The Actor only reads publicly available pages. Contact data of businesses may still be personal data (for example `name@company.com`) under the GDPR and similar laws. You are responsible for having a lawful basis to process it and for respecting anti-spam rules in your country.

### Related Actors

- [Google Maps Email Extractor: Business Leads](https://apify.com/iscle/google-maps-leads-emails): Extract Google Maps business leads with emails, phones, websites and social profiles. Pay the email fee only when an email is found.
- [Google Autocomplete & Keyword Suggestions Scraper](https://apify.com/iscle/keyword-suggestions-multi-source): Scrape Google, YouTube, Amazon and Bing autocomplete keyword suggestions with A–Z and question expansion. Any language. Export JSON, CSV, Excel.

# Actor input Schema

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

Domains or URLs, one per line (e.g. example.com or https://www.example.com/). Duplicates of the same domain are removed automatically.

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

Optional. ID of an Apify dataset whose items have a 'website', 'url' or 'domain' field, for example the output of a Google Maps Scraper run. Name, address and placeId are kept in the output.

## `maxWebsites` (type: `integer`):

Hard limit of websites processed in this run.

## `maxPagesPerWebsite` (type: `integer`):

Homepage plus the most relevant pages (contact, legal notice/imprint, about, team). The price is the same whatever this value is.

## `onlyWithContacts` (type: `boolean`):

If enabled, websites where nothing was found are not saved. They are never charged either way.

## `requireEmail` (type: `boolean`):

If enabled, a website is only counted (and charged) when at least one email is found. Phones and social profiles alone are then free.

## `defaultCountry` (type: `string`):

Optional two-letter code (ES, US, GB, DE...) used to read local phone numbers without a country prefix. By default it is guessed from the domain (.es, .de...).

## `maxConcurrency` (type: `integer`):

How many websites are processed at the same time.

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

Not needed for most websites. Enable it only if many websites block the requests.

## Actor input object example

```json
{
  "websites": [
    "apify.com",
    "crawlee.dev"
  ],
  "maxWebsites": 1000,
  "maxPagesPerWebsite": 5,
  "onlyWithContacts": false,
  "requireEmail": false,
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All records saved to 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": [
        "apify.com",
        "crawlee.dev"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("iscle/website-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 = {
    "websites": [
        "apify.com",
        "crawlee.dev",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("iscle/website-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 '{
  "websites": [
    "apify.com",
    "crawlee.dev"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call iscle/website-contact-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,iscle/website-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/73meTFMGlf76GRdFi/builds/tKbs0A4Vosvo6dpUb/openapi.json
