# Contact Details Scraper: Emails, Phones & Socials (`registrydata/website-contact-details-extractor`) Actor

Emails, phone numbers (E.164), social profiles and addresses from company websites. Crawls contact, about and imprint pages, decodes obfuscated emails, honors robots.txt.

- **URL**: https://apify.com/registrydata/website-contact-details-extractor.md
- **Developed by:** [Registry Data](https://apify.com/registrydata) (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

$2.00 / 1,000 results

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 Details Extractor: Emails, Phones, Socials

Give it a list of company websites and get back each company's public contact details: **emails**, **phone numbers in international E.164 format**, **social profile links** and **postal addresses**, with the **page each one was found on**. It crawls the pages where contact details live (contact, about, imprint/impressum, team, legal), reads the structured data sites publish for search engines, and decodes the tricks sites use to hide emails from simple scrapers. It is plain HTTP, so it is fast and cheap, and it respects `robots.txt`.

**Price: $2.00 per 1,000 results.** Set a maximum cost per run and the run stops there. Details under [Pricing](#pricing).

The default input crawls two sample sites in about 10 seconds. Paste your own domains to run it on a lead list.

### What you get

One result per website (default), or one row per contact.

| Field | Meaning |
|---|---|
| `domain`, `input`, `url`, `status` | The site, your input line, the final home-page URL, and `ok` |
| `company_name` | From structured data (JSON-LD), the site-name tag, or the page title |
| `primary_email`, `primary_phone` | The best email (own domain, generic mailbox, `mailto:` first) and first phone, ready for a CRM column |
| `emails[]` | `address`, `email_type` (always `role`: only shared mailboxes such as info@ or sales@ are output), `is_generic`, `same_domain`, `method` (how it was found), `source_url`, `source_urls` |
| `phones[]` | `e164`, `international` (formatted), `region` (country), `raw` (as written), `method`, `source_url` |
| `addresses[]` | `formatted`, `street`, `postal_code`, `locality`, `region`, `country`, `method`, `source_url` |
| `social_links[]` | `platform` (linkedin, facebook, instagram, twitter, youtube, tiktok, github, xing, ...), `url`, `source_url` |
| `pages_crawled`, `pages` | How many pages were read, and which |
| `source_url`, `source_record_id`, `scraped_at` | Provenance |

**How emails are found** (`method`): `mailto:` links, plain text, HTML-entity encoded text (`&#64;`), Cloudflare "email protection" (decoded), text such as `name [at] company [dot] com`, JavaScript-assembled addresses (`'info' + '@' + ...`, `unescape(...)`, `atob(...)`), and JSON-LD structured data. Image names (`logo@2x.png`), placeholders (`user@example.com`) and hashes are filtered out.

### Who uses it

- **Sales and lead-generation teams:** turn a list of company domains into emails, phones and LinkedIn pages for outreach.
- **Agencies:** enrich client prospect lists in bulk, with the source page for every item so you can verify.
- **Recruiters and market researchers:** collect the published switchboard numbers and addresses of companies in a sector.
- **Data teams:** join clean, E.164-normalized phone numbers to a company table.

### Input

```json
{
  "domains": ["acme.com", "https://www.example-gmbh.de/kontakt"],
  "outputMode": "per_domain",
  "maxPagesPerDomain": 8,
  "maxDepth": 2,
  "emailScope": "all",
  "defaultCountry": "DE",
  "respectRobotsTxt": true,
  "includeEmptyResults": false,
  "maxItems": 0
}
```

| Field | Meaning |
|---|---|
| `domains` | Domains or URLs. One result per site; `www.` and `https://` variants of the same site count once. Empty runs the two-site demo |
| `outputMode` | `per_domain` (default) or `per_contact` (one row per email and per phone number; every row is billed as one result) |
| `maxPagesPerDomain`, `maxDepth` | Crawl budget per site (default 8 pages, 2 link hops). Contact, imprint and about pages are fetched first |
| `emailScope` | `all`, or `same_domain` to keep only addresses on the site's own domain |
| `defaultCountry` | Two-letter code used to read phone numbers written without a country prefix; inferred from the site when empty |
| `respectRobotsTxt` | On by default. Pages that `robots.txt` disallows are not fetched |
| `includeEmptyResults` | Off by default: a site with nothing found is not returned and not billed |
| `maxItems` | Stop after this many results (0 = no limit) |

### Output sample

Real result from a test run (trimmed to the first items of each list):

```json
{
  "domain": "apify.com",
  "status": "ok",
  "company_name": "Apify Technologies s.r.o.",
  "primary_email": "hello@apify.com",
  "emails": [
    {"address": "hello@apify.com", "email_type": "role", "is_generic": true, "same_domain": true, "method": "mailto", "source_url": "https://apify.com/contact"},
    {"address": "support@apify.com", "email_type": "role", "is_generic": true, "same_domain": true, "method": "json_ld", "source_url": "https://apify.com/"}
  ],
  "addresses": [
    {"formatted": "Na Příkopě 959/27, 11000, Prague, CZ", "postal_code": "11000", "locality": "Prague", "country": "CZ", "method": "json_ld", "source_url": "https://apify.com/"}
  ],
  "social_links": [
    {"platform": "linkedin", "url": "https://www.linkedin.com/company/apify", "source_url": "https://apify.com/"}
  ],
  "pages_crawled": 3,
  "source_url": "https://apify.com/",
  "scraped_at": "2026-11-22T07:09:50+00:00"
}
```

### Pricing

Pay per result: **$2.00 per 1,000 results**. In the default mode a result is one website, so 1,000 websites cost $2.00. A website where nothing was found, or that could not be reached, is **not billed**; it is listed in the `UNSUCCESSFUL_DOMAINS` record with the reason. In `per_contact` mode every email and phone row is one result, so a site with 14 emails costs 14 results; use the default mode for lead lists. Use `maxItems` to cap a run.

Example: enriching a 5,000-company list costs $10.00 at most, less for sites with nothing to find.

### Limits and honest notes

- **Published contact details only.** The Actor reads what a company shows on its own website. It does not guess addresses, verify mailboxes, or look anyone up in third-party databases.
- **No JavaScript rendering.** Pages that build their content in the browser with JavaScript show nothing to a plain HTTP crawler. The Actor tries the usual contact paths as a fallback, but some modern single-page sites will return little.
- **Some sites refuse automated requests** (HTTP 403 from a firewall). They are reported as `blocked_by_site` and not billed; the Actor does not try to evade the block.
- **`robots.txt` is honored, including Crawl-delay** (the gap between requests to that site grows to the delay it asks for, up to 60 seconds; a longer delay makes the site not crawlable). A site that disallows crawling its pages is reported as `robots_disallowed` and not billed. If a site's `robots.txt` is unreachable because of a server error, the site is treated as disallowed, as the standard requires.
- **Addresses** come from structured data and `<address>` tags. Postal addresses written only as free text (for example in a German imprint) are not extracted yet; the imprint page is still crawled for its emails and phone numbers.
- **Phone numbers** are validated with Google's libphonenumber rules. Numbers written without a country prefix need a country: set `defaultCountry` or let the Actor infer it from the domain ending or the site's address.
- **Personal data:** the Actor reports only contact details a company publishes on its own website. It never guesses or infers addresses and does not collect names of individuals. Only shared role mailboxes (info@, sales@, support@ and similar) are output. Addresses of named or identifiable individuals, and ambiguous ones, are always dropped; this is not a setting. **You are responsible for complying with GDPR, CAN-SPAM, PECR and similar rules when you contact people.**
- **Coverage depends on the site.** In our own check of 12 well-known sites, 7 returned contact details, 3 refused automated requests (HTTP 403), 1 forbids crawling in `robots.txt`, and 1 showed nothing to an HTTP crawler.

### FAQ

**Is this legal?** The Actor only reads pages that are publicly available without login, and respects `robots.txt`. Business contact details published on company websites are public information, and the Actor outputs only organizational contacts (role mailboxes, main business numbers, company profiles), never individuals' emails, direct numbers or personal profiles. Your use of the data is governed by your local law. You are responsible for compliant use.

**How is it different from a general crawler?** It only visits pages likely to hold contact details, so a run is quick and cheap, and every extracted item carries the page it came from.

**Can I schedule it or call it from code?** Yes. Use Apify Schedules, the API or MCP; send the dataset to a webhook, a CRM or Google Sheets.

**What do the statuses mean?** `ok`: contact details found. Not billed and listed in `UNSUCCESSFUL_DOMAINS`: `no_contacts_found`, `unreachable` (DNS or connection failure, or HTTP error), `blocked_by_site` (HTTP 401/403/429), `robots_disallowed`, `not_html`, `blocked` (address is not public), `invalid_input`.

# Actor input Schema

## `domains` (type: `array`):

Company websites to crawl: plain domains (<code>example.com</code>) or URLs. One result is produced per domain. If you give a page URL, the crawl starts there and also visits the site's other contact pages. Leave empty to crawl two sample sites.

## `outputMode` (type: `string`):

One row per website with everything found (default), or one row per email and per phone number (each billed as one result, so a site with 14 emails costs 14 results).

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

Maximum pages fetched per website, including the home page. Contact, imprint and about pages are visited first. 8 finds the contact details on almost every site.

## `maxDepth` (type: `integer`):

How many link hops from the home page to follow. 2 reaches pages such as About, then Team below it.

## `emailScope` (type: `string`):

All emails found, or only those on the site's own domain (drops, for example, a press agency's address).

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

Two-letter code (DE, GB, US) used to read phone numbers written without a country prefix. Leave empty to infer it from the site's address or domain ending.

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

Skip pages that a site's robots.txt asks crawlers not to fetch. Keep this on unless you have the site owner's permission.

## `includeEmptyResults` (type: `boolean`):

By default a site where nothing was found is not returned and not billed (it is listed in the UNSUCCESSFUL_DOMAINS record instead). Turn on to get an empty row for it.

## `maxConcurrentDomains` (type: `integer`):

How many websites are crawled at once. Requests to the same website are always spaced out.

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

Stop after this many results. 0 means no limit. Every result returned is billed, so this caps your cost.

## Actor input object example

```json
{
  "domains": [
    "apify.com",
    "python.org"
  ],
  "outputMode": "per_domain",
  "maxPagesPerDomain": 8,
  "maxDepth": 2,
  "emailScope": "all",
  "respectRobotsTxt": true,
  "includeEmptyResults": false,
  "maxConcurrentDomains": 10,
  "maxItems": 0
}
```

# Actor output Schema

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

No description

## `unsuccessful` (type: `string`):

No description

## `summary` (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 = {
    "domains": [
        "apify.com",
        "python.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("registrydata/website-contact-details-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 = { "domains": [
        "apify.com",
        "python.org",
    ] }

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

```

## MCP server setup

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