# Contact Details Scraper · Emails, Phones, Socials by Site (`agentsgearbox/contact-details-scraper`) Actor

Contact details scraper for any list of websites: published e-mail addresses labelled role or personal with a mail-domain check, phone numbers, 24 social profiles, address and contact page, one row per site. Pay only when contacts are found: $1.20 per 1,000; first 25 a month free.

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

## Pricing

from $0.72 / 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/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 and social profiles from any website

Give it a list of websites and get one row each with the contact details the site publishes: e-mail addresses labelled as role mailbox or personal, with a check that their domain accepts mail; phone numbers; 24 social and messaging profiles; the postal address; the contact page and the page with the contact form. You pay only for websites where an e-mail address or a phone number was found. It reads the homepage and the contact, legal notice, about and team pages, honors robots.txt, and needs no login and no proxies. Up to 5,000 websites per run. The first 25 websites with contacts each month are free for every account.

Built by [agentsgearbox](https://agentsgearbox.com). Questions: support@agentsgearbox.com.

### What it is for

- **Lead lists:** turn a column of company domains into the general mailbox, a phone number and the LinkedIn page of each, ready for a CRM import.
- **Local business outreach:** shops, restaurants, clinics and agencies publish a phone number and an address long before they publish anything else; this row has them.
- **Compliance-minded prospecting:** keep role mailboxes only (`info@`, `sales@`, `press@`) and leave out addresses that look like a person's name, with one switch.
- **Enrichment in a workflow:** one domain in, one row out, from n8n, Make, Zapier or an AI agent, priced per website.
- **Growing lists on a schedule:** with the skip option on, a re-run reads and charges only the websites it has not delivered before.

### What you get

One `site` item per website. A real row for `apify.com`:

```json
{
  "type": "site",
  "domain": "apify.com",
  "url": "https://apify.com/",
  "status": "OK",
  "name": "Apify",
  "bestEmail": "hello@apify.com",
  "bestPhone": null,
  "emails": [
    { "email": "hello@apify.com", "kind": "role", "sameDomain": true, "freeMailbox": false, "mailDomainOk": true, "foundIn": "mailto", "sources": ["https://apify.com/contact"] },
    { "email": "support@apify.com", "kind": "role", "sameDomain": true, "freeMailbox": false, "mailDomainOk": true, "foundIn": "json-ld", "sources": ["https://apify.com/", "https://apify.com/contact", "https://apify.com/contact-sales"] }
  ],
  "emailCount": 2,
  "phones": [],
  "phoneCount": 0,
  "socials": { "github": "https://github.com/apify", "linkedin": "https://www.linkedin.com/company/apify", "x": "https://x.com/apify", "tiktok": "https://www.tiktok.com/@apifytech", "discord": "https://discord.com/invite/jyEM2PRvMU", "googleMaps": "https://goo.gl/maps/1gtAdLE4F4bS28Eg7" },
  "socialCount": 6,
  "address": "Na Příkopě 959/27, 11000, Prague, CZ",
  "contactPageUrl": "https://apify.com/contact",
  "contactFormUrl": "https://apify.com/contact-sales",
  "language": "en",
  "pagesRead": ["https://apify.com/", "https://apify.com/contact", "https://apify.com/contact-sales"],
  "pagesFetched": 3,
  "robotsTxt": "followed",
  "notes": [],
  "fetchedAt": "2026-11-25T13:24:44.298Z"
}
```

A company with several mailboxes and offices returns them sorted, the one worth writing to first (`hetzner.com`, shortened):

```json
"bestEmail": "info@hetzner.com",
"emails": [
  { "email": "info@hetzner.com", "kind": "role", "sameDomain": true, "mailDomainOk": true, "foundIn": "mailto" },
  { "email": "contact-fi@hetzner.com", "kind": "role", "sameDomain": true, "mailDomainOk": true, "foundIn": "mailto" },
  { "email": "product-feedback@hetzner.com", "kind": "role", "sameDomain": true, "mailDomainOk": true, "foundIn": "mailto" }
],
"phones": [ { "number": "+4998315050", "foundIn": "tel-link" }, { "number": "+49911234226100", "foundIn": "tel-link" } ],
"socials": { "facebook": "https://www.facebook.com/hetzner.de", "instagram": "https://www.instagram.com/hetzner.online", "youtube": "https://www.youtube.com/channel/UC5GXP-_6UWl5I9pisIDohUA", "x": "https://twitter.com/Hetzner_Online", "linkedin": "https://www.linkedin.com/company/hetzner-online" }
```

Flat fields for spreadsheets: `bestEmail`, `bestPhone`, `emailCount`, `phoneCount`, `socialCount`, `contactPageUrl`. A website without an address or a number comes back as a free `site` item with `status: "NO_CONTACTS"` (its social profiles and contact page are still in it), a website that could not be read as a free `error` item, plus one free `summary` item per run.

### Fields

| Field | Meaning |
|---|---|
| `status` | `OK` when at least one e-mail address or phone number was found (charged), `NO_CONTACTS` otherwise (free) |
| `name` | The organization's name from its structured data, then its site name, then the part of the page title that carries the brand |
| `emails[].kind` | `role` for a function mailbox (`info@`, `sales@`, `support@`, `presse@`, `ventas@` and more than 200 others in several languages), `personal` for `first.last@` and `f.last@`, `no-reply`, or `unknown` |
| `emails[].sameDomain` | The address is on the website's own domain |
| `emails[].freeMailbox` | The address is at Gmail, Outlook, GMX and similar providers |
| `emails[].mailDomainOk` | `true` when the address's domain publishes mail servers, `false` when it does not exist or declares that it takes no mail, `null` when not checked |
| `emails[].foundIn` | `mailto` (a link), `json-ld` (structured data) or `text` (written on the page) |
| `emails[].sources`, `phones[].sources` | Up to three pages where it was found |
| `bestEmail` | The first role address on the site's own domain whose domain accepts mail (sales, info, contact, hello… in that order), then other addresses |
| `phones[].number` | Digits, with a leading `+` when the site wrote the number internationally; fax numbers are left out |
| `socials` | LinkedIn, X, Facebook, Instagram, YouTube, TikTok, GitHub, Threads, Bluesky, Telegram, Discord, Pinterest, Medium, Mastodon, Vimeo, Twitch, Snapchat, Xing, Yelp, Tripadvisor, Trustpilot, Crunchbase, WhatsApp and the Google Maps link; share buttons are ignored |
| `address` | The postal address from the site's structured data |
| `contactPageUrl`, `contactFormUrl` | The contact page, and the page that carries a form with a message field |
| `pagesRead`, `robotsTxt`, `notes` | Exactly which pages were read, whether a robots.txt was followed, and anything worth knowing (a redirect to another domain, pages robots.txt excluded, addresses the site obfuscates) |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `websites` | string\[] | required | Domains or URLs, up to 5,000. A URL with a path is read in addition to the homepage. |
| `maxPagesPerSite` | integer | `5` | Pages read per website, the homepage included (1 to 15). The price does not change with it. |
| `roleAddressesOnly` | boolean | `false` | Keep only function mailboxes; drop addresses that look like a person's name. |
| `sameDomainOnly` | boolean | `false` | Keep only addresses on the website's own domain. |
| `checkMailDomains` | boolean | `true` | One DNS lookup per mail domain; fills `mailDomainOk`. |
| `onlyNewSinceLastRun` | boolean | `false` | Skip websites delivered in earlier runs (remembered in a named key-value store). |
| `checkpointStoreName` | string | `contact-details-scraper-state` | The store used by the option above; one name per list. |
| `concurrency` | integer | `8` | Websites read in parallel; each website is read two pages at a time. |
| `timeoutSecs` | integer | `20` | Per-request timeout. |

### Pricing

**Try it free.** The first 25 websites each calendar month are free for every Apify account, with nothing to enter: the actor keeps count in a small key-value store in your account (`free-slice-contact-details-scraper`) and charges only from the 26th on. The free results are real results you keep; the counter resets on the first of each month.

Pay per event: **$0.0012 per website with contacts** (`website`), that is $1.20 per 1,000, whatever the number of pages read, plus Apify's default start fee of $0.00005 per run. A website where no e-mail address and no phone number was found costs nothing, and neither does one that cannot be read; summary and error records are free. Apify plans above Free get an automatic discount on the per-website price (10% to 40%).

| Run | Cost |
|---|---|
| A 100-row lead list, contacts found on 80 | $0.10 |
| 1,000 company domains, contacts found on 750 | $0.90 |
| 5,000 local businesses, contacts found on 4,200 | $5.04 |
| Weekly re-run of a 2,000-row list with 60 new websites | $0.07 |

The actor reads about one website a second at the default concurrency, so 1,000 websites take roughly a quarter of an hour.

### Example tasks

Ready-made configurations you can open, copy and run as they are:

- [Find contact details for a list of company websites](https://apify.com/agentsgearbox/contact-details-scraper/examples/find-contact-details-for-a-list-of-company-websites): five company websites turned into mailboxes, phone numbers and profiles, with the page each was found on.

### Run it from your code

**Node.js**

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('agentsgearbox/contact-details-scraper').call({ websites: ['apify.com', 'hetzner.com'], roleAddressesOnly: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const s of items.filter((i) => i.type === 'site')) console.log(s.domain, s.bestEmail, s.bestPhone, s.socials.linkedin);
```

**Python**

```python
import os
from apify_client import ApifyClient
client = ApifyClient(token=os.environ["APIFY_TOKEN"])
run = client.actor("agentsgearbox/contact-details-scraper").call(run_input={"websites": ["apify.com", "hetzner.com"]})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item.get("type") == "site":
        print(item["domain"], item["bestEmail"], [p["number"] for p in item["phones"]])
```

**cURL**

```bash
curl -s -X POST "https://api.apify.com/v2/acts/agentsgearbox~contact-details-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' -d '{"websites":["apify.com"]}'
```

### For AI agents

Give your agent hands. "Find a way to reach this company" as one tool call: instead of opening the homepage, guessing where the contact page is and reading three more pages, the agent gets the mailbox, the phone number and the profiles back with the page each was found on.

- **MCP, this actor only:** add `https://mcp.apify.com?tools=agentsgearbox/contact-details-scraper` to Claude Desktop, Claude Code, Cursor or any MCP client (with your Apify token), then ask for "the general e-mail address and the LinkedIn page of apify.com".

* **MCP, all agentsgearbox actors:** `https://mcp.apify.com?tools=agentsgearbox/telegram-channel-scraper,agentsgearbox/google-play-reviews-scraper,agentsgearbox/substack-scraper,agentsgearbox/google-news-scraper,agentsgearbox/brand-name-generator,agentsgearbox/ai-readiness-audit,agentsgearbox/company-lookup,agentsgearbox/app-intelligence,agentsgearbox/app-store-reviews-scraper,agentsgearbox/company-jobs-scraper,agentsgearbox/apple-podcasts-scraper,agentsgearbox/remote-jobs-scraper,agentsgearbox/contact-details-scraper,agentsgearbox/tech-stack-detector`

- **No Apify account?** This actor is eligible for Apify's agentic payments: an agent can buy a spend-capped token through [agi.apify.com](https://agi.apify.com) (x402, MPP or Skyfire) and call the API directly.
- The price is per website with contacts and known in advance; websites that cannot be read come back as free error records instead of failed runs.

### How it reads a website

1. It asks for `robots.txt` first and follows it as RFC 9309 describes: the rules for `agentsgearbox` when a site writes any, otherwise the rules for `*`. A site owner can switch this actor off with `User-agent: agentsgearbox` and `Disallow: /`.
2. It reads the homepage, then up to four more pages chosen by their address or link text: contact, legal notice (Impressum, mentions légales, note legali), about, team, locations, support, press. Two pages at a time per website, never more.
3. It takes what is published in the clear: `mailto:` and `tel:` links, structured data, and addresses and labelled numbers written on the page.
4. One DNS lookup per mail domain tells whether that domain accepts mail. No mail server is ever contacted.

### Use it responsibly

- The actor collects contact details that an organization publishes about itself. An address that names a person is personal data under the GDPR and similar laws even when it sits on a company website; whoever runs the actor decides what the data is used for and needs a lawful basis for it. `roleAddressesOnly` keeps function mailboxes only.
- Rules on unsolicited e-mail differ by country (the ePrivacy rules in the EU, CAN-SPAM in the US, CASL in Canada); check the one that applies to your recipients before you send.
- It does not decode addresses that a site has obfuscated on purpose, does not guess addresses from names and does not read anything behind a login. When a site hides its addresses, `notes` says how many were left alone and `contactPageUrl` tells you where to look.

### Reading the results

- Free `error` items carry a `status`: `INVALID` (not a website: an e-mail address, a local host), `UNREACHABLE`, `ROBOTS_DISALLOWED` (the site's robots.txt excludes the homepage), `ROBOTS_UNAVAILABLE` (its robots.txt answered with a server error, in which case RFC 9309 says to stay out), `BOT_PROTECTED` (the site answered with a challenge page), `HTTP_<code>` or `NOT_HTML`.
- The same website in several spellings (`https://www.example.com/contact`, `example.com`, `EXAMPLE.COM`) is read and charged once.
- `kind` is a reading of the address, not a fact about a person: `personal` means the part before the `@` looks like `first.last` or `f.last`. Single first names such as `anna@` are `unknown`.
- `mailDomainOk: true` says the domain can receive mail, not that the mailbox exists.
- Phone numbers keep the form the site used. A number written nationally (`020 7946 0018`) is returned as digits without a country code.

### Limitations, stated plainly

- Pages are read as a plain client would read them, without running JavaScript. Contact details that a site loads with a script, or shows only after a click, are not seen.
- Addresses protected by a script-based obfuscation are counted and left alone. On such sites you get phone numbers, profiles and the contact page, and often no address.
- Sites behind aggressive bot protection return `BOT_PROTECTED` and are not charged.
- There is no mailbox verification and no address guessing: an address is in the output only when the site prints it.

### Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| `NO_CONTACTS` for a site that shows an address in the browser | The address is added by a script or obfuscated | Open `contactPageUrl`; raise `maxPagesPerSite` when the contacts sit on a team or location page |
| `bestEmail` is on another domain | The company publishes a group or Gmail address | Set `sameDomainOnly` to keep the site's own domain only |
| Many phone numbers | The site lists its branches | The contact page's numbers come first; `phones[].sources` names the page of each |
| `ROBOTS_DISALLOWED` | The site excludes automated clients | Nothing to fix; the actor stays out and does not charge |

### More from agentsgearbox

- [Telegram Channel Scraper](https://apify.com/agentsgearbox/telegram-channel-scraper): public Telegram channels as JSON, no API key.
- [Google Play Reviews Scraper](https://apify.com/agentsgearbox/google-play-reviews-scraper): Google Play reviews with replies and versions, any market.
- [Substack Scraper](https://apify.com/agentsgearbox/substack-scraper): Substack posts with full text and comments, custom domains too.
- [Google News Scraper](https://apify.com/agentsgearbox/google-news-scraper): Google News with real publisher URLs and full text.
- [Brand & Business Name Generator](https://apify.com/agentsgearbox/brand-name-generator): brand names verified live on domains, handles and app stores.
- [AI Readiness Audit](https://apify.com/agentsgearbox/ai-readiness-audit): how well AI search engines and agents can read a site: crawler access, llms.txt, structured data, content without JavaScript, scored with fixes.
- [Company Lookup](https://apify.com/agentsgearbox/company-lookup): one row per domain with legal identity and VAT validation, contacts, socials, tech stack, open jobs, apps, news and Wikidata facts.
- [App Intelligence](https://apify.com/agentsgearbox/app-intelligence): App Store and Google Play in one run: search, top charts, full app details and each app's twin on the other store.
- [App Store Reviews Scraper · iOS + Google Play, Any Country](https://apify.com/agentsgearbox/app-store-reviews-scraper): Reviews of any iOS or Android app from both stores in one run: stars, text, version, votes, developer replies, since-last-run checkpoint, rating trend per app..
- [Company Jobs Scraper](https://apify.com/agentsgearbox/company-jobs-scraper): every open job on a company's careers page: nine applicant tracking systems, one schema, salaries where stated, hiring signals free.
- [Apple Podcasts Scraper](https://apify.com/agentsgearbox/apple-podcasts-scraper): Apple Podcasts search, charts, episodes with audio links and listener reviews, any country.
- [Remote Jobs Scraper](https://apify.com/agentsgearbox/remote-jobs-scraper): remote jobs from six boards and the Hacker News hiring thread in one schema, deduplicated, only-new mode for alerts.
- [Tech Stack Detector](https://apify.com/agentsgearbox/tech-stack-detector): the technology behind any website from its homepage and its DNS records, with the evidence for every detection.

All of them are pay-per-event, run without a browser, and are compared with their alternatives on [agentsgearbox.com](https://agentsgearbox.com/actors/).

### Support

Email support@agentsgearbox.com or use the issues tab. Compare this actor with alternatives on [agentsgearbox.com](https://agentsgearbox.com).

# Changelog

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

# Actor input Schema

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

Websites to read, one per line, as domains or URLs (up to 5,000 per run). The homepage is read first, then the contact, legal notice, about and team pages it links to. A URL with a path (for example a contact page) is read as well. The same website in several spellings is read and charged once.

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

How many pages to read on each website, the homepage included. Five covers the contact, legal notice and about pages of most sites; raise it for sites that spread their contacts over team or location pages. The price per website stays the same.

## `roleAddressesOnly` (type: `boolean`):

Return only addresses that name a function (info@, sales@, support@, press@ and more than 200 others in several languages) and leave out addresses that look like a person's name. Useful when your outreach rules allow company mailboxes only.

## `sameDomainOnly` (type: `boolean`):

Keep an address only when its domain is the website's own. Leave it off for small businesses, which often publish a Gmail or Outlook address.

## `checkMailDomains` (type: `boolean`):

One DNS lookup per distinct domain: mailDomainOk is true when the domain publishes mail servers and false when it does not exist or declares that it takes no mail. This is a domain check, not a mailbox check; no mail server is ever contacted.

## `onlyNewSinceLastRun` (type: `boolean`):

Remembers every website it has delivered in a named key-value store and skips those next time, so a growing lead list can be re-run on a schedule and only the new websites are read and charged.

## `checkpointStoreName` (type: `string`):

Name of the key-value store that remembers delivered websites when the option above is on. Use a different name per list.

## `concurrency` (type: `integer`):

Each website is read at most two pages at a time whatever this number is. Lower it when many of your websites sit on the same hosting provider.

## `timeoutSecs` (type: `integer`):

Maximum time to wait for each page.

## Actor input object example

```json
{
  "websites": [
    "apify.com",
    "https://www.hetzner.com",
    "basecamp.com"
  ],
  "maxPagesPerSite": 5,
  "roleAddressesOnly": false,
  "sameDomainOnly": false,
  "checkMailDomains": true,
  "onlyNewSinceLastRun": false,
  "checkpointStoreName": "contact-details-scraper-state",
  "concurrency": 8,
  "timeoutSecs": 20
}
```

# Actor output Schema

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

One item per website (e-mails, phones, social profiles, address, contact page), free items for websites without contacts or that could not be read, and one free summary item.

# 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.hetzner.com",
        "basecamp.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("agentsgearbox/contact-details-scraper").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.hetzner.com",
        "basecamp.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("agentsgearbox/contact-details-scraper").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.hetzner.com",
    "basecamp.com"
  ]
}' |
apify call agentsgearbox/contact-details-scraper --silent --output-dataset

```

## MCP server setup

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

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/APl8CVcTxKs5MXJb0/builds/TKjVXRGd306OfjyqA/openapi.json
