# Website Contact Extractor: Emails, Phones, Imprint (`magicfingers/website-contact-extractor`) Actor

Get the published contact channels of company websites: organisation emails, phones, address, contact form, social links and German imprint data, each with the page it came from. Personal emails off by default. Sites with no contacts are free.

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

## Pricing

from $3.20 / 1,000 site with contacts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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, Imprint

Give Website Contact Extractor a list of company websites and get, for each one, the contact channels the company publishes on its own site: organisation emails, phone numbers, postal address, contact form, links to its social profiles and, for German, Austrian and Swiss companies, the legal data from the imprint (Impressum). Every value carries the page it was found on. You pay only for sites where contact data was found; sites without contacts and sites that fail are free.

### What is Website Contact Extractor?

Website Contact Extractor is a company contact finder for lists of domains you already have, for example from a CRM, a supplier list or a maps scraper. For each website it reads the home page and the few pages that hold contact data (contact, imprint, about and legal notice pages, found by link text and path in English, German, French, Spanish and Arabic), and returns one row per site.

- Organisation mailboxes such as `info@`, `sales@` or `kontakt@`, from mailto links, page text (also when written as `name [at] domain [dot] com`), Cloudflare-protected addresses and schema.org data.
- Phone and fax numbers in international E.164 form, typed phone, mobile or fax.
- Postal address, company name, contact page and contact form page.
- Links to the company's own LinkedIn, Facebook, Instagram, X, YouTube and TikTok pages.
- Imprint data: legal name and form, register court, register number (HRB, HRA, FN, CHE) and VAT ID.
- The page each value came from, so you can check it.

It is a polite crawler: it reads at most a few pages per site, one at a time, follows each site's robots.txt and says who it is in its User-Agent.

### What data does it return?

One row per website. The `Overview` view shows the domain, company, main email and phone, country and contact page; the `Imprint` view shows the legal data; the `Social links and address` view shows the rest.

| Field | Type | Description |
|---|---|---|
| `inputUrl` | string | The website as given in the input. |
| `website` | string | URL of the home page that was read, after redirects. |
| `domain` | string | Registrable domain of the website (the part a company registers, for example bosch.de). |
| `companyName` | string or null | Legal name from the imprint, else the organisation name from schema.org data, else the og:site_name of the home page; null when none is published. |
| `email` | string or null | The first email of the emails list: an organisation mailbox on the site's own domain when there is one. |
| `phone` | string or null | The first phone number (not fax) in E.164 form, for example +4971140040990. |
| `country` | string or null | Two-letter country code from the address, the imprint register or the site's country domain; null when none of these tells it. |
| `emails` | array | Each published email: value, type (role for organisation mailboxes such as info@ or sales@, personal-looking for name patterns, the latter only when includePersonalEmails is on), sameDomain (on the site's own domain), mxValid (the domain has MX records; null when not checked) and sourceUrl (page it was found on). |
| `phones` | array | Each published number: e164, raw (as written on the page), type (phone, mobile or fax), country and sourceUrl. Numbers from page text are kept only when they follow a phone label or are written with a + country code. |
| `address` | object or null | Postal address of the organisation: street, postalCode, city, region, country, raw (when only unparsed text was found) and sourceUrl. From schema.org data first, then the imprint or contact page text. |
| `socialProfiles` | object | Links from the site to its own company pages on linkedin, facebook, instagram, x, youtube and tiktok (null when not linked). Returned as links only; these networks are never visited. |
| `contactPageUrl` | string or null | URL of the contact page that was read, or null. |
| `contactFormUrl` | string or null | URL of a page with a contact form (a form with a message box, or an embedded form service), or null. |
| `imprint` | object or null | Data from a German, Austrian or Swiss imprint (Impressum): legalName, legalForm, registerCourt, registerNumber (HRB, HRA, FN or CHE number), vatId, managingEntity (only when it is a company, never a person), country and sourceUrl; null when no imprint was found. |
| `personalEmailsHidden` | integer | Number of personal-looking emails found but not returned because includePersonalEmails is off. |
| `hasContacts` | boolean | True when the row holds an email, a phone or imprint data; these rows are charged. Rows with only an address, a contact form or social links are saved free with false. |
| `pagesVisited` | integer | Number of pages of the site that were read successfully, home page included. |
| `pages` | array | Every page tried: url, kind (home, contact, imprint, about, legal or team), statusCode and note (why a page was not read, for example disallowed by robots.txt). |
| `pagesSkippedByRobots` | integer | Contact pages found but not read because the site's robots.txt disallows them. |
| `redirectedToOtherDomain` | boolean | True when the input website redirects to another registrable domain; the contacts then come from that domain. |
| `renderedWithBrowser` | boolean | True when the home page needed JavaScript and the pages were read in a browser. |
| `scrapedAt` | string | Time the row was built (ISO 8601, UTC). |

The run also writes three records to its key-value store: `SUMMARY` (sites read, with contacts, without contacts, failed, charged), `NO_CONTACTS` (sites that loaded but published nothing, with the reason) and `FAILED_SITES` (sites that could not be read, with the reason and the number of attempts).

### How to get emails and phone numbers from a list of websites

1. Paste the websites into **Websites**, one per line. Bare domains such as `apify.com` work. Or put the ID of a dataset (for example the output of a maps scraper) into **Read websites from a dataset** and the name of its website field into **Dataset field with the website**.
2. Keep the defaults, or change **Pages per site** (6 by default) and **Link languages**.
3. Click **Start**. In tests one site took about 8 to 11 seconds, because its pages are read one after the other with a pause in between; up to 50 sites are read in parallel.
4. Open the **Output** tab and export to CSV, Excel or JSON, or read the dataset with the Apify API, Make, Zapier or n8n. Schedule the task to refresh a list every month.

### How much does it cost?

You pay one event per website whose row holds at least one email, phone number or imprint field. Websites with no contact data and websites that fail (DNS errors, timeouts, refused or blocked requests) cost nothing beyond the standard Apify run start. A site with only an address, a contact form or social links is saved free. There is no charge per email or per page.

| Event | Charged when | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|---|
| Site with contacts (`site-with-contacts`) | One website whose row holds at least one email, phone or imprint field was saved. Sites with no contact data and sites that fail are not charged. | 4.00 USD per 1,000 events | 4.00 USD per 1,000 events | 3.60 USD per 1,000 events | 3.20 USD per 1,000 events |
| Actor start (`apify-actor-start`) | Charged by Apify when the run starts: once up to 1 GB of memory, then once for each extra GB. | 0.05 USD per 1,000 runs | 0.05 USD per 1,000 runs | 0.05 USD per 1,000 runs | 0.05 USD per 1,000 runs |

Example: 1,000 websites with contacts on the Bronze plan cost 1,000 x 0.004 USD = 4.00 USD, plus 0.00005 USD for the run start. Platform usage (compute, storage, traffic) is included in these prices.

Free plan: the 5 USD of monthly Apify credit covers about 1,250 websites with contacts a month when no other Actor is used.

Set a maximum cost per run in the run options. The Actor never saves a charged row it cannot bill: it stops starting new sites at the limit, keeps every row saved so far and writes its summary.

### Input example

A list of websites:

```json
{
    "websites": ["apify.com", "https://www.bosch.de", "example.com"],
    "maxPagesPerSite": 6,
    "includePersonalEmails": false,
    "parseImprint": true,
    "validateMx": true,
    "languages": ["en", "de", "fr", "es", "ar"],
    "maxConcurrency": 20
}
```

Websites from the dataset of an earlier run (for example a maps scraper whose rows have a `website` field):

```json
{
    "datasetId": "YOUR_DATASET_ID",
    "urlField": "website"
}
```

### Output example

A row from a real run (the `pages` list is shortened from 10 entries):

```json
{
    "inputUrl": "https://www.bosch.de",
    "website": "https://www.bosch.de",
    "domain": "bosch.de",
    "companyName": "Robert Bosch GmbH",
    "email": "kontakt@bosch.de",
    "phone": "+4971140040990",
    "country": "DE",
    "emails": [
        {"value": "kontakt@bosch.de", "type": "role", "sameDomain": true, "mxValid": true, "sourceUrl": "https://www.bosch.de/impressum/?prevent-auto-open-privacy-settings=1"}
    ],
    "phones": [
        {"e164": "+4971140040990", "raw": "+49 711 400 40990", "type": "phone", "country": "DE", "sourceUrl": "https://www.bosch.de/impressum/?prevent-auto-open-privacy-settings=1"}
    ],
    "address": {"street": "Robert-Bosch-Platz 1", "postalCode": "70839", "city": "Gerlingen-Schillerhöhe", "region": null, "country": "DE", "raw": null, "sourceUrl": "https://www.bosch.de/impressum/?prevent-auto-open-privacy-settings=1"},
    "socialProfiles": {"linkedin": "https://www.linkedin.com/company/bosch", "facebook": "https://www.facebook.com/BoschGlobal", "instagram": "https://www.instagram.com/boschglobal", "x": null, "youtube": null, "tiktok": null},
    "contactPageUrl": "https://www.bosch.de/kontakt/",
    "contactFormUrl": null,
    "imprint": {"legalName": "Robert Bosch GmbH", "legalForm": "GmbH", "registerCourt": "Amtsgericht Stuttgart", "registerNumber": "HRB 14000", "vatId": "DE811128135", "managingEntity": null, "country": "DE", "sourceUrl": "https://www.bosch.de/impressum/?prevent-auto-open-privacy-settings=1"},
    "personalEmailsHidden": 0,
    "hasContacts": true,
    "pagesVisited": 6,
    "pages": [
        {"url": "https://www.bosch.de", "kind": "home", "statusCode": 200, "note": null},
        {"url": "https://www.bosch.de/en/contact/", "kind": "contact", "statusCode": null, "note": "not read: disallowed by robots.txt"}
    ],
    "pagesSkippedByRobots": 3,
    "redirectedToOtherDomain": false,
    "renderedWithBrowser": false,
    "scrapedAt": "2026-11-12T22:39:27.729Z"
}
```

### German Impressum data

When a German, Austrian or Swiss site has an imprint (Impressum) page and **Parse imprint (Impressum) data** is on (the default), the Actor reads from it:

- `legalName` and `legalForm`: for example Robert Bosch GmbH, GmbH & Co. KG, AG, UG (haftungsbeschränkt), e.K.;
- `registerCourt` and `registerNumber`: Amtsgericht Stuttgart, HRB 14000; Austrian Firmenbuch numbers (FN 123456a); Swiss UID numbers (CHE-123.456.789);
- `vatId`: German USt-IdNr (DE + 9 digits), Austrian UID (ATU + 8 digits), Swiss MWST numbers, and other EU VAT numbers when they are labelled as such;
- `managingEntity`: only when the managing partner is a company, for example the Verwaltungs GmbH of a GmbH & Co. KG.

Names of managing directors and other people listed in an imprint are never returned.

### Personal data and your responsibility

This Actor is for finding how to contact a business. It is not for building lists of private individuals.

- **Organisation contacts only by default:** each email is typed `role` (a role mailbox such as `info@`, `sales@`, `support@`, `kontakt@`, or the company's own name, as in `acme@acme.com`) or `personal-looking` (anything else, which covers name patterns such as `jane.doe@`, `j.doe@` or `anna@`). With **Include personal-looking emails** off (the default), personal-looking emails are not returned, only counted in `personalEmailsHidden`, and team pages are not read.
- **Switching it on:** it returns personal-looking emails too and reads team pages. Work emails of named people are personal data under the GDPR and similar laws.
- **You are responsible for lawful use:** this covers everything the Actor returns: the GDPR, CAN-SPAM, national rules on unsolicited marketing (for example in Germany) and any other law that applies to you. Check that you have a lawful basis before you contact anyone.
- **No guessing and no enrichment:** the Actor returns only what the site itself publishes. It does not build or guess addresses (no first.last permutations), never connects to mail servers (the optional MX check is a DNS lookup only) and adds nothing from other sources.
- **Social profiles are links only:** the Actor never opens LinkedIn, Facebook, Instagram, X, YouTube, TikTok, people-search sites or directories, and never logs in anywhere.

### How it reads a site

- It reads robots.txt first and follows it for every page, as described in RFC 9309. When robots.txt cannot be read because of a server error or no answer, the site is treated as closed and listed in `FAILED_SITES`.
- It identifies itself as `Mozilla/5.0 (compatible; WebsiteContactExtractor/0.1; +https://apify.com/magicfingers/website-contact-extractor)`. It does not pretend to be a browser or a search engine. Sites can address it in robots.txt as `WebsiteContactExtractor`.
- Pages of one site are read one at a time with a pause of at least 1 second, or the robots.txt `Crawl-delay` when it asks for more (up to 20 seconds). A site gets at most 60 seconds and **Pages per site** pages.
- Only pages of the same site are read (subdomains included). A contact page that redirects to another site is not read.
- When the home page is an empty JavaScript shell, the pages of that site are rendered in Chromium with the same User-Agent.

### Limits

- Only what the site publishes on the pages read. Contacts that exist only on other pages, in PDFs or behind a login are not found.
- No guessing of emails and no mailbox check. `mxValid` only says whether the email domain has MX records.
- Emails shown only as images are not read (no OCR). Emails assembled by JavaScript are read only when the site needs the browser for its home page.
- Sites behind bot challenges, sites that refuse automated requests (HTTP 401 or 403) and cookie walls that hide all content fail. No bypass is attempted and no consent is given on your behalf.
- Parked and for-sale domains are listed in `NO_CONTACTS`: the contacts on those pages belong to the parking service.
- Imprint parsing covers German, Austrian and Swiss formats. Addresses are read from schema.org data in every country, and from page text in the German, Austrian and Swiss layout.
- The role or personal-looking type is a pattern match on the address. An unusual role mailbox can be typed personal-looking (and left out by default); a person whose name is also a role word or the company name can be typed role.
- At most 20 emails and 20 phone numbers per site.
- Only public http and https addresses are read; private and local network addresses are refused.

### FAQ

**Am I charged for sites without contacts?** No. Only sites whose row holds an email, a phone number or imprint data are charged. Sites with nothing are listed in `NO_CONTACTS`, and sites that fail are listed in `FAILED_SITES`; both are free.

**Why is a site in `FAILED_SITES` when it opens in my browser?** The reason is in the record. The usual ones are a bot challenge, an HTTP 403 for automated requests, a cookie wall or a robots.txt that closes the site to crawlers. The Actor does not work around any of these.

**Why does a row have fewer pages than I set?** The Actor reads only pages it finds links to, skips pages that robots.txt disallows and stops at 60 seconds per site.

**Can I get the emails of named employees?** Only by switching on **Include personal-looking emails**, and only when the site itself publishes them. Read the personal data section first.

**Does it visit social networks?** No. It returns the links the site has to its own social pages and never opens them.

**Can I run it on a schedule?** Yes. Save your input as a task and add a schedule in Apify Console, or call the Actor with the API from Make, Zapier or n8n.

### Other Actors by the same author

- [Tech Stack Detector](https://apify.com/magicfingers/techstack-detector): the CMS, shop platform, analytics, hosting and email provider of a list of websites.
- All Actors: [apify.com/magicfingers](https://apify.com/magicfingers)

# Changelog

This Actor's version history is a separate document: https://apify.com/magicfingers/website-contact-extractor/changelog.md

# Actor input Schema

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

Company websites or bare domains, one per line, for example apify.com or https://www.bosch.de. https:// is added when missing. Each registrable domain is read once (www.acme.com and shop.acme.com count as one site). Up to 20,000 per run, together with the dataset below.

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

ID or name of an Apify dataset that holds websites, for example the output of a Google Maps scraper. Its websites are added to the list above.

## `urlField` (type: `string`):

Name of the dataset field that holds the website URL (dots reach into nested objects, for example contact.website). Items without it are counted in SUMMARY and skipped.

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

Most pages read on one site, home page included (unit: pages). The other pages are the contact, imprint, about and legal notice pages found by link text and path.

## `includePersonalEmails` (type: `boolean`):

Off (default): only organisation mailboxes such as info@, sales@ or kontakt@ are returned, and team pages are not read. On: emails that look like a person's name (jane.doe@, j.doe@, anna@) are returned too, typed personal-looking, and team pages are read. You are responsible for having a lawful basis to use personal data (GDPR, CAN-SPAM and local law).

## `parseImprint` (type: `boolean`):

Read the legal name and form, register court and number and VAT ID from German, Austrian and Swiss imprint pages.

## `validateMx` (type: `boolean`):

Look up the MX records of each email domain in DNS and set mxValid. No mail server is contacted and no mailbox is checked.

## `languages` (type: `array`):

Languages of the link texts used to find contact pages (for example Kontakt, Impressum, mentions légales, aviso legal, اتصل بنا). Paths such as /contact or /impressum are found in every language.

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

Number of websites read at the same time (unit: sites). Pages of one site are always read one after the other, with a pause of at least 1 second, or the site's robots.txt Crawl-delay when it asks for more.

## Actor input object example

```json
{
  "websites": [
    "apify.com"
  ],
  "urlField": "website",
  "maxPagesPerSite": 6,
  "includePersonalEmails": false,
  "parseImprint": true,
  "validateMx": true,
  "languages": [
    "en",
    "de",
    "fr",
    "es",
    "ar"
  ],
  "maxConcurrency": 20
}
```

# Actor output Schema

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

One row per website with contact data, as JSON.

## `summary` (type: `string`):

Counts of sites read, with contacts, without contacts, failed and charged.

## `failedSites` (type: `string`):

Websites that could not be read, with the reason. They are not charged.

## `noContacts` (type: `string`):

Websites that loaded but published no contact data on the pages read. They are not charged.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("magicfingers/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"] }

# Run the Actor and wait for it to finish
run = client.actor("magicfingers/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"
  ]
}' |
apify call magicfingers/website-contact-extractor --silent --output-dataset

```

## MCP server setup

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