# Contact Details Scraper: Emails, Phones & Social Profiles (`rowfinch/contact-details-scraper`) Actor

Read websites a few pages deep and return their public emails, phone numbers and social profiles: Instagram, LinkedIn, WhatsApp, Telegram, Discord and more. One row per site with Merge contacts on. No login.

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

## Pricing

from $0.80 / 1,000 page reads

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

## Contact Details Scraper

Give it websites and it reads each one a few pages deep: the home page, then the contact and about pages it links to. It returns the public emails, phone numbers and social profiles it finds, including Instagram, LinkedIn, WhatsApp, Telegram, Discord and more. No login.

**$1.50 per 1,000 pages on Apify's Starter plan, less on higher plans.** No charge to start a run.

### What it's for

- **Lead lists**: an email and a phone for each business website from a search, a map or a spreadsheet.
- **Partner and influencer outreach**: the social profiles a brand links to from its own site.
- **Enriching a list you already have**: add a way to reach each company without opening each site.

### Input

| Field                    | What it does                                                                                                    |
| ------------------------ | --------------------------------------------------------------------------------------------------------------- |
| `startUrls`              | Websites to read, such as `https://example.com`                                                                 |
| `maxRequestsPerStartUrl` | Most pages read for each start URL (default 20). Contact and about pages come first                             |
| `maxDepth`               | How many links away from a start URL to follow (default 2). `0` reads only the start pages                      |
| `maxRequests`            | Stops the whole run after this many page loads                                                                  |
| `sameDomain`             | Follow only links to the start URL's own site; `www` counts as the same site (default on)                       |
| `mergeContacts`          | One row per start URL with the contacts of all its pages (default on). Off: one row per page that has a contact |

Settings this actor does not offer (lead enrichment, social profile details, a browser, iframes, proxy groups) are accepted so saved inputs keep working. They are ignored, and the run log says which ones were set.

### Output

One row per start URL with Merge contacts on, from a real run (`scrapedUrls` cut to four here):

```json
{
  "url": "https://katzsdelicatessen.com/",
  "domain": "katzsdelicatessen.com",
  "emails": [
    "press@katzsdelicatessen.com",
    "catering@katzsdelicatessen.com",
    "events@katzsdelicatessen.com",
    "cs@katzsdelicatessen.com"
  ],
  "phones": ["2122542246", "+18004468364"],
  "phonesUncertain": [],
  "facebooks": ["https://www.facebook.com/katzsdeli"],
  "instagrams": ["https://www.instagram.com/katzsdeli"],
  "linkedIns": [],
  "twitters": ["https://x.com/KatzsDeli"],
  "youtubes": [],
  "tiktoks": [],
  "pinterests": [],
  "discords": [],
  "snapchats": [],
  "threads": [],
  "telegrams": [],
  "reddits": [],
  "whatsapps": [],
  "depth": 0,
  "originalStartUrl": "https://katzsdelicatessen.com/",
  "referrerUrl": null,
  "scrapedUrls": [
    "https://katzsdelicatessen.com/",
    "https://katzsdelicatessen.com/our-story",
    "https://katzsdelicatessen.com/contact",
    "https://katzsdelicatessen.com/shipping/top-sellers-gift-ideas/holiday-gifts.html"
  ]
}
```

A start URL that cannot be read gets an error row with the reason in `error`.

Input and output names match the most used contact details actor's, so you can switch without changing code.

### Price

Per 1,000 pages read, by your Apify plan:

| Free  | Starter | Scale | Business |
| ----- | ------- | ----- | -------- |
| $1.50 | $1.50   | $1.10 | $0.80    |

You pay for a page when it loads as a web page, whether or not it has contacts. Pages that fail to load, files such as PDFs, pages that redirect off the site and pages another start URL in the run already read are free. Error rows are free.

| Run, on Starter                                                  | Cost   |
| ---------------------------------------------------------------- | ------ |
| 100 websites, 20 pages each: 2,000 × $0.0015                     | $3.00  |
| 1,000 websites, 5 pages each: 5,000 × $0.0015                    | $7.50  |
| 10,000 websites, home page only (`maxDepth` 0): 10,000 × $0.0015 | $15.00 |

A run stops at the maximum cost you set for it. On Apify's free plan, a run reads up to 50 pages, 10 per website.

### FAQ

**Which pages does it read?**
The start page, then the pages it links to, up to `maxDepth` links away and `maxRequestsPerStartUrl` pages per site. Pages with a contact, about or imprint link come first. Files such as PDFs and images are skipped. With Stay within domain on, it stays on the start URL's site.

**Why does a site give nothing?**
Most small sites show their contacts on a page that is not linked from the home page, or not at all. Some sites show contacts only through a script, which this actor does not run, so it reads what the server sends. A site that answers slowly, blocks automated visits or is down gives an error row or no contacts.

**Is this personal data?**
It reads only pages anyone can open, and it saves only the contact details published there. Those are meant for contacting a business. Check that your use of them follows the law where your contacts live.

# Actor input Schema

## `startUrls` (type: `array`):

Websites to read, such as https://example.com. Each one is read for its contacts and the pages it links to.

## `maxRequestsPerStartUrl` (type: `integer`):

Most pages read for each start URL. Contact and about pages are read before the others.

## `mergeContacts` (type: `boolean`):

One row per start URL with the contacts of all its pages. Off: one row per page that has a contact.

## `maxDepth` (type: `integer`):

Links away from the start URLs that are followed. 0 reads only the start pages.

## `maxRequests` (type: `integer`):

Stops the run after this many page loads. The default is no practical limit.

## `sameDomain` (type: `boolean`):

Follow only links to the start URL's own site. www and the bare domain count as the same site.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxRequestsPerStartUrl": 20,
  "mergeContacts": true,
  "maxDepth": 2,
  "maxRequests": 9999999,
  "sameDomain": true
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://apify.com"
        }
    ],
    "maxRequestsPerStartUrl": 20,
    "mergeContacts": true,
    "maxDepth": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfinch/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 = {
    "startUrls": [{ "url": "https://apify.com" }],
    "maxRequestsPerStartUrl": 20,
    "mergeContacts": True,
    "maxDepth": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("rowfinch/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 '{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxRequestsPerStartUrl": 20,
  "mergeContacts": true,
  "maxDepth": 2
}' |
apify call rowfinch/contact-details-scraper --silent --output-dataset

```

## MCP server setup

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