# Website Contact Extractor — Emails, Phones & Social Links (`openregistry/website-contact-extractor`) Actor

Give a list of company websites, get their public contact details: emails, phone numbers, LinkedIn, X, Facebook, Instagram, YouTube, TikTok links, from the home page and the contact, about and legal pages. Respects robots.txt. Pay per website.

- **URL**: https://apify.com/openregistry/website-contact-extractor.md
- **Developed by:** [Mahé Perrin](https://apify.com/openregistry) (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

$3.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 & social links from company websites

Paste a list of company websites, get back **one row per company** with the public contact details published on the
site: **emails, phone numbers and social profiles** (LinkedIn, X/Twitter, Facebook, Instagram, YouTube, TikTok, GitHub,
Pinterest, Threads, Bluesky), plus the site name and description, the **contact page URL** and whether the site has a **contact form**.

**$3 per 1,000 websites.** One price per website whatever the number of pages read; sites that cannot be read are
not charged.

### How it works

1. Reads the home page.
2. Follows up to *N* links on the same site that look like **contact, about, team, imprint, legal notice or privacy**
   pages — in English, French, German, Spanish, Italian (contact, kontakt, a-propos, impressum, mentions légales…).
3. Collects `mailto:` and `tel:` links, email addresses written in the text (including `name [at] domain [dot] com`),
   and links to social profiles (share buttons and generic links are ignored).
4. Tells you on which page each email or phone was found.

Plain HTTP requests only, identified by the tool's name, **robots.txt respected**, one request per second per site. It
does not render JavaScript, solve captchas or get around bot protection: sites that block automated visitors are
reported as errors (not charged).

### Input

| Field | What it does |
|---|---|
| `websites` / `websitesText` | Domains, URLs or email addresses (their domain is used) |
| `maxPagesPerSite` | Pages read per site, home page included (default 5, max 20) |
| `maxResults` | Stops the run, so you control the cost |

```json
{ "websites": ["apify.com", "https://www.python.org"], "maxPagesPerSite": 5 }
```

### Output

| Field | Example |
|---|---|
| `domain`, `website`, `name`, `title`, `description` | acme.com, https://www.acme.com/, Acme, … |
| `emails` | every address found |
| `emailsOnDomain` | only addresses on the company's own domain (usually the useful ones) |
| `phones` | from `tel:` links, normalised (`+33123456789`) |
| `linkedin`, `twitter`, `facebook`, `instagram`, `youtube`, `tiktok`, `github`, `pinterest`, `threads`, `bluesky` | profile URLs |
| `contactPageUrl`, `contactFormUrl`, `hasContactForm` | the contact page, and the page holding a contact form (email field + message box) |
| `sources` | page where each email or phone was found |
| `pagesVisited`, `pagesFailed`, `checkedAt` | traceability |
| `error` | only on failed rows (not charged) |

### Pricing

Pay per event: **$0.003 per website** delivered. Invalid entries and websites whose home page cannot be read give an
error row that is **not charged**.

### Use it responsibly

Contact details published by a business on its own website are often personal data when they name a person
(jane.doe@…). You are responsible for your use of the data: GDPR and ePrivacy in Europe, CAN-SPAM in the US, and local
rules on cold outreach. Prefer generic business addresses, identify yourself, and honour opt-out requests.

# Actor input Schema

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

One website per entry: a domain (acme.com), a URL, or even an email address (its domain is used). Duplicates are removed.

## `websitesText` (type: `string`):

Websites separated by new lines, commas or spaces — paste a spreadsheet column.

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

The home page plus up to this many pages in total whose link looks like contact, about, team, imprint, legal notice or privacy. More pages = more details found, slower run (same price).

## `maxResults` (type: `integer`):

The run stops once this many websites are delivered, so you control the cost.

## Actor input object example

```json
{
  "websites": [
    "https://apify.com",
    "https://www.python.org"
  ],
  "maxPagesPerSite": 5,
  "maxResults": 1000
}
```

# Actor output Schema

## `results` (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 = {
    "websites": [
        "https://apify.com",
        "https://www.python.org"
    ]
};

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

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

```

## MCP server setup

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