# Website Contact Details Scraper (Emails, Phones, Socials) (`locaihost/contact-details`) Actor

Every email, phone and social account a company publishes on its own site: one row per website from its home, contact, imprint and about pages. Phones checked to E.164 with line type, role vs named emails, WhatsApp and Telegram links, VAT IDs. $3 per 1,000 sites with contacts; the rest are free.

- **URL**: https://apify.com/locaihost/contact-details.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.65 / 1,000 website 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

## Company Contact Details Scraper (Emails, Phones, Social Accounts)

Give it company websites and get one row per company with its published email addresses, phone numbers and social accounts: the contact page, the imprint or legal page, VAT IDs, whether there is a contact form, and whether the company's email domain can actually receive mail. Every phone number is checked with a real phone-number library and comes back as E.164 with its line type, and every address is labelled a role box (info, sales) or a named one, so you always know what you may send to it.

### How do I start?

Paste this into the input (JSON tab) and press Start:

```json
{
    "websites": ["https://www.fantasticservices.com", "https://www.hiscox.co.uk"],
    "maxPagesPerSite": 4
}
```

That run reads each site's home page plus up to three more of its own pages (contact, imprint or legal, about) and returns one row per company, plus one free summary row at the end. Plain domains (`hiscox.co.uk`), full links and pasted lists all work.

### What does each row contain?

| Field | What it is |
|---|---|
| `type`, `input`, `domain` | Always `"website"`, what you gave, and the company's registrable domain |
| `status` | `ok` (at least one email or phone), `no-contacts`, `blocked` (robots.txt said no) or `failed` |
| `finalUrl`, `name`, `legalName`, `country`, `address` | The site's final address and the company identity published on it |
| `emails`, `emailDetails` | Published addresses, role boxes first; each with `kind` (`role` or `named`) and `foundOn`, the page it came from |
| `phones`, `phoneDetails` | E.164 numbers, each with `display` (as written), `lineType` (`fixed`, `mobile`, `toll-free`, …), `country`, `source` (`tel-link`, `structured-data`, `page-text`) and `foundOn` |
| `socials` | Up to 13 networks: LinkedIn, X, Facebook, Instagram, YouTube, GitHub, TikTok, Pinterest, Threads, Telegram, Discord, Snapchat, WhatsApp |
| `contactPageUrl`, `imprintUrl` | The contact page and the imprint or legal page, when found |
| `hasContactForm` | Whether the contact page has a real contact form (a newsletter box or search field does not count) |
| `vatId`, `companyNumber` | EU VAT ID and UK company number from the imprint or legal page, next to their cue. Format check only. |
| `emailDomainHasMx` | Whether the company's email domain has mail servers (`true`, `false`, or `null` when the check failed) |
| `isNew`, `changed`, `changes`, `firstSeenAt` | What this run learned against last time, when memory is on |
| `pagesFetched`, `errors`, `scrapedAt` | Which pages were read, what went wrong, and when |

An example row:

```json
{
    "type": "website",
    "input": "octopus.energy",
    "domain": "octopus.energy",
    "status": "ok",
    "finalUrl": "https://octopus.energy/",
    "name": "Octopus Energy",
    "legalName": "Octopus Energy Ltd",
    "country": "GB",
    "address": { "street": null, "city": "London", "region": null, "postalCode": null, "country": "GB", "full": "London, United Kingdom" },
    "emails": ["hello@octopus.energy", "business@octopus.energy", "heat@octopus.energy", "solar@octopus.energy", "charging@octopus.energy"],
    "emailDetails": [
        { "email": "hello@octopus.energy", "kind": "role", "foundOn": "https://octopus.energy/" },
        { "email": "business@octopus.energy", "kind": "role", "foundOn": "https://octopus.energy/" },
        { "email": "heat@octopus.energy", "kind": "named", "foundOn": "https://octopus.energy/contact-us/" }
    ],
    "phones": ["+448081966842", "+448081641088", "+442033895613"],
    "phoneDetails": [
        { "number": "+448081966842", "display": "0808 196 6842", "lineType": "toll-free", "country": "GB", "source": "tel-link", "foundOn": "https://octopus.energy/contact-us/" },
        { "number": "+448081641088", "display": "0808 164 1088", "lineType": "toll-free", "country": "GB", "source": "structured-data", "foundOn": "https://octopus.energy/" }
    ],
    "socials": {
        "linkedin": "https://www.linkedin.com/company/octopus-energy",
        "x": "https://x.com/octopusenergy",
        "facebook": "https://www.facebook.com/octopusenergy",
        "instagram": "https://www.instagram.com/octopusenergy",
        "youtube": "https://www.youtube.com/octopusenergy",
        "github": null,
        "tiktok": "https://www.tiktok.com/@octopusenergy",
        "pinterest": null,
        "threads": null,
        "telegram": null,
        "discord": null,
        "snapchat": null,
        "whatsapp": null
    },
    "contactPageUrl": "https://octopus.energy/contact-us/",
    "imprintUrl": null,
    "hasContactForm": false,
    "vatId": null,
    "companyNumber": null,
    "emailDomainHasMx": true,
    "isNew": true,
    "changed": false,
    "changes": { "addedEmails": ["hello@octopus.energy"], "removedEmails": [], "addedPhones": ["+448081966842"], "removedPhones": [], "addedSocials": ["https://x.com/octopusenergy"], "removedSocials": [] },
    "firstSeenAt": "2026-11-14T12:00:00.000Z",
    "pagesFetched": ["https://octopus.energy/", "https://octopus.energy/contact-us/"],
    "errors": ["about page https://octopus.energy/about-us/ returned HTTP 404"],
    "scrapedAt": "2026-11-14T12:00:05.000Z"
}
```

### Which rows are free?

Every run also returns one summary row (`type: "summary"`), never charged: sites asked and read, a count per status, how many have an email, a phone, a social account or a contact form, how many were skipped as unchanged, and the most common role mailbox names. Use the **Summary** view to see it on its own.

Rows without an email address and without a phone number cost nothing either: `no-contacts`, `blocked` and `failed` rows are free. Only a row you can actually write to or call is paid.

### What makes it different?

- **Phone numbers you can dial.** Every number is parsed with a real phone-number library: one E.164 value, its country, and its line type (fixed, mobile, toll-free, voip, …). Fax numbers are dropped. A number written in page text only counts next to a phone cue (Tel, Telefon, Phone, Call us, Fon, Téléphone, Tél, Teléfono, ☎, 📞), so an order number never becomes a phone number.
- **Emails you may use, labelled.** Each address is a `role` box (info, sales, support) or a `named` one, and the row tells you which. Person-shaped addresses are kept only when the company publishes them on its own domain; personal webmail boxes, no-reply boxes, placeholders and image-file names never appear. Obfuscated addresses ("info \[at] site \[dot] com") are decoded.
- **The pages where contact details live.** Two to ten pages per site: home page first, then the contact page, the imprint or legal page (Impressum, legal notice, mentions légales, and the usual paths are tried when no link exists), and about. That is where VAT IDs and UK company numbers come from.
- **Deliverability checked.** One MX lookup per site tells you whether the company's email domain can receive mail at all, so a typo'd or parked domain stands out immediately.
- **Removal requests honoured.** Companies and people who asked not to appear are left out before a row is built, charged or stored. See the removal section below.
- **Only what changed.** Turn on **Only changed sites** and a scheduled run skips companies whose emails, phones and social accounts are the same as last time; when something did change, the row lists exactly what was added and removed.
- **Polite by design.** robots.txt is obeyed, pages are read one company at a time, and every site gets a time budget so one slow site cannot eat your run.

### What does it cost?

PRICE_TODO per 1,000 sites with contact details, with one paid event, `website`, charged once per row that has at least one email address or phone number. Rows without contacts, blocked and failed rows, and the summary row are free; a run where every site comes back empty costs nothing.

The run stops cleanly at your maximum charge and keeps everything read so far.

**Free Apify plan:** up to 100 paid rows per run. Any paid Apify plan removes the limit.

### Which inputs can I use?

| Input | What it does |
|---|---|
| `websites` | One or more company websites: domains, full links or pasted lists (spaces, commas, lines). Up to 2,000 per run. |
| `maxPagesPerSite` | Pages read per site, counting the home page: 2 to 10, default 4. |
| `defaultPhoneCountry` | Two-letter country for numbers written without a +, for example `GB` or `DE`. Otherwise the site's own country is used. |
| `skipEmptySites` | Off by default. On, sites with no email and no phone are left out of the dataset (they are still free and still counted in the summary). |
| `onlyChanged` | Skip companies whose contacts are unchanged since the last run of the same input. |
| `maxResults` | Stop after this many charged rows. `0` reads everything. |

Pasted inputs from other tools (`startUrls`, `domains`, `urls`) are accepted as `websites`, so you can copy an input straight over.

### How do I get only what changed?

1. Save your input as a task, with **Only changed sites** turned on.
2. Add a schedule to the task (weekly suits contact data).
3. Each run returns companies that are new or whose emails, phones or social accounts changed, and each row lists what was added and removed.

The memory belongs to the task; two different website lists never hide each other's changes. A company seen for the first time is marked `isNew: true` and its whole contact set is listed under `changes`.

### What happens when something goes wrong?

- Bad input (no website in the list) ends the run with a message that says exactly what to fix, and charges nothing.
- A site that blocks reading, answers with an error or takes too long still returns its row, with `blocked` or `failed` status and the reason in `errors`. These rows are free.
- A page that cannot be read (a missing about page, say) is noted in `errors` and the rest of the site still comes back.
- If the run's time limit is near, it stops early and saves everything.

### Can I call it from an agent or my own code?

Yes. It works through the Apify API, the Apify MCP server and the Apify client libraries, with the same input as above. A handful of sites finishes in a minute or two, and the dataset view **Overview** (domain, status, emails, phones, socials) is made for quick reading.

### Is it legal to collect company contact details?

The Actor reads public business contact details, the same pages anyone can open without signing in, and it obeys each site's robots.txt. Business contact information exists to be used, but you are responsible for how you use it: for sending email, follow the anti-spam law that applies to you (the GDPR and the ePrivacy rules in Europe, CAN-SPAM in the United States, and their equivalents elsewhere), and keep to the purpose a company would expect. The `kind` label on every address is there to help: a role box is a business mailbox, a named one reaches a person. VAT IDs and company numbers are format-checked only, not verified against a register.

### How do I get a company or a person removed?

Email apify@locaihost.org with the domain or the address in question. Removal requests are bundled into the Actor and honoured before a row is built, charged or stored, on every run, for every user. A whole domain returns nothing at all; a listed person's address is dropped from every row.

### Questions or problems?

Open an issue on the Issues tab and we will answer within a day. If the Actor helped, a rating on the Store helps other people find it.

# Changelog

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

# Actor input Schema

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

One company per line: a domain (stripe.com) or any URL on the company's site (https://www.hiscox.co.uk/contact-us). Pasted inputs using startUrls, domains or urls work too. Duplicates are merged. Up to 2,000 sites per run; each site is read on up to 4 pages (home, contact, imprint/legal, about) chosen for where contacts live.

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

2 to 10 pages per site, counting the home page. 4 (home, contact, imprint/legal, about) finds what sites publish; more pages add other contact, support and locations pages.

## `defaultPhoneCountry` (type: `string`):

ISO code (GB, DE, SG) for phone numbers written without a +, when the site's own country cannot be read from its address or domain. Leave empty to use each site's own country.

## `skipEmptySites` (type: `boolean`):

Leave rows with no email address and no phone number out of the dataset. They are never charged either way; this only hides them.

## `onlyChanged` (type: `boolean`):

Return (and charge) only sites seen for the first time, or whose emails, phones or socials changed since the last run of the same task or list. Unchanged sites are skipped free.

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

Stop after this many sites with contacts. 0 = no limit. Sites with nothing, blocked and failed sites are free and don't count.

## Actor input object example

```json
{
  "websites": [
    "https://www.fantasticservices.com",
    "https://www.hiscox.co.uk"
  ],
  "maxPagesPerSite": 4,
  "skipEmptySites": false,
  "onlyChanged": false,
  "maxResults": 0
}
```

# Actor output Schema

## `websites` (type: `string`):

One row per company site: emails, phones and socials it publishes itself (overview view). Sites with no contacts appear with status no-contacts and are not charged.

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

Per site: status, pages fetched and any errors.

# 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://www.fantasticservices.com",
        "https://www.hiscox.co.uk"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/contact-details").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://www.fantasticservices.com",
        "https://www.hiscox.co.uk",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("locaihost/contact-details").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://www.fantasticservices.com",
    "https://www.hiscox.co.uk"
  ]
}' |
apify call locaihost/contact-details --silent --output-dataset

```

## MCP server setup

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

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/OTzllytb3uXsCh4Ff/builds/7Vxh1UuddSrp73Q6A/openapi.json
