# Contact Details Scraper: Emails, Phones, Socials & Impressum (`pegton/website-contact-enricher`) Actor

Turn websites or a Google Maps dataset into leads: best email, MX-checked emails, phones, 16 social networks, imprint (VAT, register, directors), shop platform & ad pixels. Pay only when contacts are found.

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

## Pricing

from $3.00 / 1,000 website enricheds

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

## Contact Details Scraper: Emails, Phones, Socials & Impressum

*A bulk **website email finder** and **contact info scraper**: give it domains, get emails, phone numbers, social media links and imprint (Impressum) data back, with every email MX-checked.*

Turn a list of company websites — or the output of a Google Maps scraper — into **ready-to-use leads**. One clean row per website:

- **Best email first** (`primaryEmail`) + all emails, each typed as *role / personal / other / noreply*, with own-domain flag and an **MX check** (does the domain accept mail?)
- **Phone numbers** validated and normalised to E.164 (`+4930…`)
- **16 social networks**: Instagram, Facebook, LinkedIn, X, TikTok, YouTube, Pinterest, Threads, Bluesky, Xing, GitHub, Telegram, WhatsApp, Discord, Snapchat, Twitch
- **Company data from the imprint / legal notice**: EU VAT ID (format-validated), commercial register number & court (HRB…), managing directors, postal address (schema.org)
- **Marketing signals**: shop platform (Shopify, WooCommerce, Shopware, Magento, Wix…), **ad pixels** (Meta, Google Ads, TikTok, LinkedIn, Microsoft, Pinterest, Snap, X, Reddit, Criteo…), tracking IDs (GTM, GA4, Google Ads, Meta Pixel), tools (Klaviyo, HubSpot, Intercom…) → `runsAds = true` tells you who already spends on ads

**You only pay for websites where contact data was found.** Dead domains, blocked sites, parked domains and sites without any contact data are returned as free rows with a clear reason.

### Why this one

| | This Actor | Typical contact scrapers |
|---|---|---|
| Pricing | per **website**, only when something is found | per crawled **page** (a 10-page site = 10×) |
| Pages read | smart: homepage + imprint/contact/about/team (max 5 by default) | blind crawl |
| Email quality | best-first ranking, MX check, junk filter (image names, placeholders, Sentry/Wix IDs), Cloudflare-protected & "name \[at] domain \[dot] com" decoded | raw regex hits |
| Output | one flat row per website (CSV/Sheets-ready) | one row per page — you merge |
| Extras | VAT ID, register, directors, ad pixels, shop platform | — |

### Input

- `websites`: domains or URLs, one per line (commas also work). `acme.com`, `https://www.acme.de/kontakt`, duplicates merged.
- or `datasetId`: any Apify dataset with a `website`/`url`/`domain` field — e.g. a **Google Maps scraper** run. The item's title is kept as `sourceName`, its `placeId`/`id` as `sourceId`.
- `maxPagesPerWebsite` (default 5), `includeMarketingSignals`, `verifyEmailDomains`, `sameDomainEmailsOnly`, `respectRobotsTxt`
- Limits: `maxItems` (charged websites), `maxChargeUsd`

```json
{ "websites": ["einhorn.my", "https://www.mymuesli.com", "basecamp.com"], "maxPagesPerWebsite": 5 }
```

### Output (example, shortened)

```json
{
  "status": "success", "domain": "einhorn.my", "companyName": "einhorn products gmbh",
  "primaryEmail": "contact@einhorn.my", "emails": ["contact@einhorn.my", "presse@einhorn.my", "versand@einhorn.my"],
  "primaryPhone": "+493061620782",
  "instagram": "https://www.instagram.com/einhorn.berlin", "linkedin": "https://de.linkedin.com/company/einhornproducts",
  "tiktok": "https://www.tiktok.com/@einhorn_berlin",
  "imprintUrl": "https://einhorn.my/policies/legal-notice", "vatId": "DE300246395",
  "registerNumber": "HRB 165893 B", "registerCourt": "Amtsgericht Berlin",
  "platform": "Shopify", "adPixels": ["Google Tag Manager", "Google Analytics 4", "Google Ads"], "runsAds": true,
  "trackingIds": {"googleAds": ["AW-17574439749"]}, "charged": true
}
```

Dataset views: **Leads overview**, **Company & imprint**, **Marketing signals**, **Not charged**. A `RUN_SUMMARY` record has counts, error codes and runtime.

### Typical workflows

1. **Google Maps → leads**: run a Maps scraper, pass its dataset ID here, export CSV to your CRM.
2. **Agency prospecting**: find shops that run ads (`runsAds`, `adPixels`) on Shopify, then check their creatives with our *Ad Library Monitor*.
3. **B2B data hygiene**: refresh emails/phones/socials of an existing account list; VAT ID and register number for DACH companies.
4. **AI agents / MCP**: one call per domain returns a compact, typed JSON object.

### Error codes (never charged)

`invalid_input`, `dns_error`, `blocked` (site refuses automated access — we do **not** bypass it), `rate_limited`, `not_found`, `server_error`, `timeout`, `ssl_error`, `connection_error`, `not_html`, `no_contacts`, `parked_domain`.

### Fair use

Reads only public pages, at most 3 requests at a time per website, honours robots.txt by default, no logins, no CAPTCHA solving, no anti-bot bypassing. Contact data can be personal data: you are responsible for using it lawfully (e.g. GDPR / UWG rules for cold outreach in the EU).

### Limits

- Pixels injected only via Google Tag Manager are not visible in the page source (GTM itself is reported).
- JavaScript-only sites (content rendered in the browser) may show fewer results; most company sites render contact data server-side.
- Emails shown only as images or behind contact forms cannot be extracted (`hasContactForm` tells you a form exists).

### FAQ

**How much does it cost?** $3 per 1,000 websites where contacts were found ($0.003 each), plus Apify's $0.00005 start event. Websites with no contacts, parked domains and errors are free. Platform usage is included.

**Can I use it after a Google Maps scraper?** Yes. Pick the Google Maps dataset in the `datasetId` field; it reads the `website` column and enriches every place.

**Does it find personal emails?** Only emails that are published on the website itself (contact page, imprint, footer). It does not guess or generate addresses, and it doesn't use any login.

**Does it work for German websites (Impressum)?** Yes. It reads the Impressum for the USt-IdNr. (VAT ID), Handelsregister number (HRB/HRA) with court, and Geschäftsführer. Imprint and legal-notice pages in other countries are read the same way.

**What about sites that block bots?** Blocked sites return a free error row (`blocked`); the actor never bypasses protection.

### Ready-made templates

The [Market Radar n8n pack](https://pegton.gumroad.com/l/market-radar-n8n) includes a ready-to-import workflow that uses this Actor to enrich website lists in Google Sheets, plus workflows for ads, app reviews and creators.

# Actor input Schema

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

Company websites or domains, one per line (e.g. acme.com, https://www.acme.de/kontakt). Duplicates are merged. Social-network, map and marketplace links are skipped (give the company's own site).

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

ID of an Apify dataset, e.g. the output of a Google Maps scraper run. The Actor reads the website from each item (fields website, url, domain…) and keeps the item's title as sourceName.

## `datasetField` (type: `string`):

Optional: name of the field that holds the website (auto-detected if empty).

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

Homepage + the most relevant sub-pages (imprint/Impressum, contact, about, team). 5 finds ~all contact data on most sites; more pages = slower, same price.

## `includeMarketingSignals` (type: `boolean`):

Shop platform (Shopify, WooCommerce, Shopware…), ad pixels (Meta, Google Ads, TikTok, LinkedIn, Microsoft, Pinterest, Snap…), tracking IDs and tools (Klaviyo, HubSpot…).

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

DNS MX check per email domain. Third-party emails on domains without mail servers are dropped.

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

Drop e.g. agency, freemail or partner addresses.

## `respectRobotsTxt` (type: `boolean`):

Skip sub-pages that the site's robots.txt disallows.

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

Stop after this many websites with contact data. 0 = no limit.

## `maxChargeUsd` (type: `number`):

Stop before the estimated charge exceeds this. 0 = no extra limit (the platform's max charge still applies).

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

Each website itself is crawled gently (max 3 requests at a time).

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

Not needed: company websites are fetched directly. Sites that refuse automated access are reported as 'blocked' and never charged - they are not bypassed.

## Actor input object example

```json
{
  "websites": [
    "apify.com",
    "https://www.mymuesli.com",
    "basecamp.com"
  ],
  "maxPagesPerWebsite": 5,
  "includeMarketingSignals": true,
  "verifyEmailDomains": true,
  "sameDomainEmailsOnly": false,
  "respectRobotsTxt": true,
  "maxItems": 0,
  "maxChargeUsd": 0,
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `leads` (type: `string`):

All rows (views: overview, company, marketing, errors).

## `runSummary` (type: `string`):

Counts, error codes, runtime and estimated charge.

# 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",
        "https://www.mymuesli.com",
        "basecamp.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pegton/website-contact-enricher").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",
        "https://www.mymuesli.com",
        "basecamp.com",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("pegton/website-contact-enricher").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",
    "https://www.mymuesli.com",
    "basecamp.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call pegton/website-contact-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pegton/website-contact-enricher"
        }
    }
}
```

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/U8PbJbHgAOymL5bfO/builds/Kscwz57kHzygsGZ5U/openapi.json
