# Website Email & Phone Extractor – Contact Details Scraper (`lokieee0/website-contact-extractor`) Actor

For lead-gen, sales & outreach: extract emails, phone numbers and social profiles (LinkedIn, Facebook, Instagram, X) from any list of websites. Crawls contact/about/team/impressum pages, decodes Cloudflare-hidden emails, fixes typos, removes junk and labels generic vs personal emails.

- **URL**: https://apify.com/lokieee0/website-contact-extractor.md
- **Developed by:** [maraa k](https://apify.com/lokieee0) (community)
- **Categories:** Lead generation, Automation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 website 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 Extractor: emails, phones & socials from any website

Give it a list of websites and get back **emails, phone numbers, social profiles, company name and address** for each one. It reads the homepage and then **follows the most likely contact pages** (Contact, About, Team, Impressum, Locations), the places where contact details actually live.

Perfect for enriching a **Google Maps lead list**, building outreach lists, or adding contact data to a CRM.

### Why it finds more (and cleaner) contacts

- **Decodes Cloudflare-protected emails.** Cloudflare hides emails as `[email protected]`. Most scrapers miss them; this one decodes them.
- **De-obfuscates** `john [at] acme [dot] com` and `jane(at)acme(dot)com`.
- **Fixes common typos**: `name@gmail.con` → `name@gmail.com`, `gmial.com` → `gmail.com`. On real plumbing-company sites this recovered leads other tools return broken.
- **Filters junk**: image names like `logo@2x.png`, `user@example.com`, Sentry/Wix system addresses, placeholder emails.
- **MX verification** (on by default) drops emails whose domain can't receive mail, so fewer bounces.
- **Labels every email** as `personal`, `generic` (info@, sales@…) or `no-reply`, flags whether it's on the company's own domain, and shows **which page it was found on**.
- **Phones** come from click-to-call links, text (US and international formats) and schema.org data, normalized to digits. Year ranges like "2019-2024" are not mistaken for numbers.
- **Socials**: Facebook, Instagram, LinkedIn, X, YouTube, TikTok, Pinterest, Yelp, GitHub, WhatsApp, Telegram. Share and intent links are skipped.
- **Company name and address** from schema.org `LocalBusiness`/`Organization` data.

### Input

```json
{ "urls": ["acmeplumbing.com", "https://bakery.example"], "maxPagesPerSite": 5, "verifyEmailDomains": true, "onlyWithEmail": true }
```

### Output

```json
{
  "domain": "acmeplumbing.com",
  "companyName": "Acme Plumbing",
  "primaryEmail": "john@acmeplumbing.com",
  "emails": [
    { "email": "john@acmeplumbing.com", "kind": "personal", "sameDomain": true, "domainAcceptsMail": true, "foundOn": ["https://acmeplumbing.com/contact"] },
    { "email": "info@acmeplumbing.com", "kind": "generic", "sameDomain": true, "domainAcceptsMail": true, "foundOn": ["https://acmeplumbing.com/"] }
  ],
  "phones": ["+17135550199"],
  "socials": { "facebook": "https://www.facebook.com/acmeplumbing", "yelp": "https://www.yelp.com/biz/acme-plumbing-houston" },
  "address": "1 Main St, Houston, TX, 77001",
  "pagesCrawled": ["https://acmeplumbing.com/", "https://acmeplumbing.com/contact", "https://acmeplumbing.com/about"]
}
```

Use the **"One row per email"** view to export a flat email list.

### Notes

- Sites behind Cloudflare or other bot protection come back with an `error` explaining why. Enable residential proxy to get through to them.
- This tool collects publicly listed business contact details. You're responsible for using them in line with the laws that apply to you (e.g. CAN-SPAM, GDPR, PECR).

### How to use it

1. Paste websites into **URLs**, for example the website column from a Google Maps scrape.
2. Keep **Verify email domains** on to drop emails that would bounce. Turn on **Only with email** to pay only for sites where an email was found.
3. Click **Start**.
4. Open **Overview** for one row per site, or **Emails** for one row per email address, ready for your outreach tool.

### How much does it cost?

You pay **$4 per 1,000 websites** returned, with no subscription and no separate compute charges. Filters that drop rows mean you don't pay for those rows.

| You process | Typical use | Cost |
|---|---|---|
| 250 websites | one Google Maps search | **$1** |
| 1,000 websites | a week of outreach | **$4** |
| 10,000 websites | a large CRM enrichment | **$40** |

Apify's free plan includes monthly credit, which is enough to try this actor on a real list before you pay anything.

### Use it from code or your tools

Run it from **Make, Zapier, n8n, Google Sheets, Slack, webhooks** or any language through the [Apify API](https://docs.apify.com/api/v2).

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lokieee0/website-contact-extractor").call(run_input={
    "urls": [
        "acmeplumbing.com",
        "bakery.example"
    ],
    "onlyWithEmail": True
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('lokieee0/website-contact-extractor').call({"urls": ["acmeplumbing.com", "bakery.example"], "onlyWithEmail": true});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**cURL** (run and get results in one request)

```bash
curl -X POST "https://api.apify.com/v2/acts/lokieee0~website-contact-extractor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["acmeplumbing.com", "bakery.example"], "onlyWithEmail": true}'
```

### FAQ

**Why does it find emails other scrapers miss?**
It decodes Cloudflare-hidden emails, un-obfuscates `name [at] domain [dot] com`, fixes typos like `gmail.con`, and crawls contact, about, team and impressum pages, not just the homepage.

**Are the emails verified?**
Each email's domain is checked for working mail servers (MX), which removes most hard bounces. It doesn't ping individual mailboxes.

**Is scraping contact details legal?**
It collects only business contact details that sites publish publicly. You're responsible for using them lawfully (GDPR, CAN-SPAM, PECR etc.) in your country.

**Can I schedule it or connect it to other apps?**
Yes. Use Apify **Schedules** for recurring runs, and **Integrations** to send results to Google Sheets, Slack, email, Zapier, Make, n8n or a webhook.

**Something didn't work or a field is missing?**
Open an issue on the **Issues** tab. Reports are usually fixed within a few days, and feature requests are welcome.

### More tools from the same developer

- [SPF, DKIM & DMARC checker with a 0–100 score and exact DNS fixes](https://apify.com/lokieee0/email-auth-auditor)
- [Find businesses with outdated websites, with a ready-to-send pitch](https://apify.com/lokieee0/website-redesign-auditor)
- [Jobs from Greenhouse, Lever, Ashby & 4 more ATS in one format](https://apify.com/lokieee0/ats-jobs-scraper)
- [Bulk SSL expiry & security headers scanner with A–F grades](https://apify.com/lokieee0/ssl-security-scanner)
- [Detect 130+ technologies (CMS, Shopify, analytics, hosting) on any site](https://apify.com/lokieee0/tech-stack-detector)
- [Npm, PyPI & crates.io vulnerability and supply-chain risk audit](https://apify.com/lokieee0/package-intel)
- [Bulk GitHub repo stats with a 0–100 health score](https://apify.com/lokieee0/github-repo-intel)
- [Search, scrape & monitor Hacker News without the 1,000-result limit](https://apify.com/lokieee0/hacker-news-scraper)
- [Crawl a website for broken links, meta tag, redirect & sitemap issues](https://apify.com/lokieee0/seo-site-auditor)

# Actor input Schema

## `urls` (type: `array`):

Websites to extract contacts from (domains or URLs). Tip: paste the website column of a Google Maps scrape.

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

Homepage plus the most likely contact pages (contact, about, team, impressum, locations). 5 is usually enough.

## `verifyEmailDomains` (type: `boolean`):

Drop emails whose domain cannot receive mail (no MX record). This removes dead and typo addresses before they bounce.

## `sameDomainEmailsOnly` (type: `boolean`):

Keep only emails like name@thatcompany.com and drop third-party ones (agencies, plugins). Leave off for small businesses that use Gmail/Yahoo.

## `onlyWithEmail` (type: `boolean`):

Skip sites with no email. You don't pay for them.

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

Sites processed in parallel.

## `maxItems` (type: `integer`):

Stop after this many results, which caps the cost of the run.

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

Optional. Sites behind bot protection are returned with an error. Use residential proxy to get through to them.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org",
    "https://www.djangoproject.com"
  ],
  "maxPagesPerSite": 5,
  "verifyEmailDomains": true,
  "sameDomainEmailsOnly": false,
  "onlyWithEmail": false,
  "concurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `emails` (type: `string`):

No description

## `allResults` (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 = {
    "urls": [
        "https://www.python.org",
        "https://www.djangoproject.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lokieee0/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 = {
    "urls": [
        "https://www.python.org",
        "https://www.djangoproject.com",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

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

```

## MCP server setup

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