# Contact Details Scraper (`mina_safwat/contact-details-scraper`) Actor

Finds emails, phone numbers, postal addresses and social profiles on any website

- **URL**: https://apify.com/mina\_safwat/contact-details-scraper.md
- **Developed by:** [Mina](https://apify.com/mina_safwat) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Contact Details Scraper

### What does Contact Details Scraper do?

**Give it any website and it returns the contact details published on it** — email addresses, phone numbers, postal addresses, and links to the company's social media profiles.

It reads the site the way a person would: it looks at the page you give it, then follows links to find the contact, about and imprint pages where these details usually live. Paste a domain, press Start, and download the result as JSON, CSV or Excel — or pull it straight from the Apify API.

### Why use Contact Details Scraper?

- **Build a lead list** — collect emails and phone numbers for a list of companies in one run.
- **Enrich a CRM** — fill in missing contact details for accounts you already have.
- **Find the right inbox** — get sales@, support@ and press@ addresses instead of guessing.
- **Collect social profiles** — grab a company's LinkedIn, Instagram and X accounts at the same time.
- **Check your own site** — see exactly which contact details are exposed publicly.

### How to use Contact Details Scraper

1. Enter one or more **websites**. A bare domain like `stripe.com` is fine.
2. Set **Maximum pages per website** — 10 is usually plenty.
3. Click **Start**.
4. When the run finishes, open the **Output** tab to preview the data or export it.

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| **Websites** (`start_urls`) | array | Yes | The sites to scrape. |
| **Maximum pages per website** (`max_pages_per_site`) | integer | No | How many pages to read per site. Default 10. |
| **How deep to follow links** (`max_depth`) | integer | No | 0 reads only the page given, 1 also reads pages linked from it. Default 2. |
| **Stay on the same website** (`stay_on_site`) | boolean | No | Follow only same-site links. On by default. |
| **Phone number countries** (`phone_regions`) | string | No | Country codes used to read phone numbers, e.g. `US,GB,DE`. |
| **Also output a row per page** (`output_per_page`) | boolean | No | Adds a row per page showing where each detail came from. Off by default. |
| **Proxy configuration** (`proxyConfiguration`) | object | No | Optional. Most sites need no proxy. |

Example input:

```json
{
  "start_urls": ["https://stripe.com", "apify.com"],
  "max_pages_per_site": 10,
  "phone_regions": "US,GB,DE"
}
```

### Output

One row per website:

```json
{
  "website": "https://stripe.com/",
  "domain": "stripe.com",
  "pages_crawled": 8,
  "emails": ["sales@stripe.com", "dpo@stripe.com", "privacy@stripe.com"],
  "emails_on_domain": ["sales@stripe.com", "dpo@stripe.com"],
  "emails_third_party": [],
  "phones": ["+18889262289"],
  "phones_detail": [
    { "number": "+18889262289", "national": "(888) 926-2289", "country_code": 1, "source": "page text" }
  ],
  "addresses": ["510 Townsend Street, San Francisco, CA 94103"],
  "linkedin": ["https://www.linkedin.com/company/stripe"],
  "facebook": ["https://www.facebook.com/StripeHQ"],
  "twitter": ["https://x.com/stripe"],
  "instagram": [],
  "youtube": [],
  "tiktok": [],
  "record_type": "site"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Data fields

| Field | Description |
| --- | --- |
| `website` | The site that was scraped. |
| `domain` | Its domain, handy as a key when merging with other data. |
| `pages_crawled` | How many pages were read to produce this row. |
| `emails` | Every email address found. |
| `emails_on_domain` | Only addresses on the company's own domain — usually the ones you want. |
| `emails_third_party` | Addresses belonging to tools the site uses, such as a chat widget. |
| `phones` | Phone numbers in international format. |
| `phones_detail` | The same numbers with their local formatting and country code. |
| `addresses` | Postal addresses, where the site marks them up as such. |
| `linkedin`, `facebook`, `instagram`, `twitter`, `youtube`, `tiktok`, `pinterest`, `telegram`, `whatsapp`, `github` | Social profile links, one column per network. |
| `record_type` | `site` for the merged row, `page` for per-page rows. |

### How accurate is it?

Phone numbers are checked against real numbering rules for the countries you list, so dates, prices and product codes do not come through as phone numbers. Emails are filtered against filenames and placeholder addresses, so things like `logo@2x.png` and `you@example.com` are dropped.

Postal addresses are only returned where a site marks them up properly. Guessing addresses out of ordinary page text produces far more noise than signal, so it is not attempted.

### How much does it cost to scrape contact details?

Very little. Three websites, eight pages each, took twenty-one seconds and cost about a tenth of a cent.

### Tips

- **Ten pages per site is usually enough.** Contact pages are visited first, so raising the limit rarely finds more.
- **List the countries you expect** in Phone number countries — it makes phone detection noticeably more accurate.
- **Use `emails_on_domain`** when building a lead list, to skip addresses belonging to the site's vendors.

### FAQ and support

**Why did a site return no email?** Many companies publish only a contact form. If there is no address on the page, there is nothing to find.

**Can it find personal email addresses?** It returns only what is published openly on the website, which is normally a company inbox.

**Is scraping contact details legal?** This Actor collects only publicly available data. Contact details can be personal data, and in many places — including under GDPR — you need a lawful basis to collect and use them, especially for marketing. You are responsible for how you use what it returns. If in doubt, take legal advice.

Found a bug, or need a field that is not here? Open an issue on the **Issues** tab.

### SEO Keywords

contact details scraper, email scraper, phone number extractor, lead generation scraper, b2b contact finder, website email finder, social profile extractor, business contact data, sales prospecting tool, extract emails from a website, contact data enrichment

# Actor input Schema

## `start_urls` (type: `array`):

The websites to scrape contact details from. A domain on its own is fine, e.g. stripe.com.

## `max_pages_per_site` (type: `integer`):

How many pages to read on each site. Contact pages are visited first, so a small number usually finds everything.

## `max_depth` (type: `integer`):

0 reads only the page you give it, 1 also reads pages linked from it, and so on.

## `stay_on_site` (type: `boolean`):

Leave on to follow only links belonging to the same site.

## `phone_regions` (type: `string`):

Comma-separated country codes used to read phone numbers, e.g. "US,GB,DE". The same digits can be a valid number in one country and not another, so listing the countries you expect improves accuracy.

## `output_per_page` (type: `boolean`):

Off by default, which gives one merged row per website. Turn on to also see which page each detail came from.

## `proxyConfiguration` (type: `object`):

Optional. Most sites need no proxy at all.

## Actor input object example

```json
{
  "start_urls": [
    "https://stripe.com",
    "apify.com"
  ],
  "max_pages_per_site": 10,
  "max_depth": 2,
  "stay_on_site": true,
  "phone_regions": "US,GB,DE,FR,EG,AE",
  "output_per_page": false
}
```

# 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 = {
    "start_urls": [
        "https://stripe.com",
        "apify.com"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("mina_safwat/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 '{
  "start_urls": [
    "https://stripe.com",
    "apify.com"
  ]
}' |
apify call mina_safwat/contact-details-scraper --silent --output-dataset

```

## MCP server setup

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