# Website Emails, Phones and Social Links Scraper (`thoob/contact-details-scraper`) Actor

Finds public emails, phones and social links (LinkedIn, X/Twitter, Facebook, Instagram, YouTube, TikTok, GitHub) on websites you list, with the source page. Billed only per site with contacts found.

- **URL**: https://apify.com/thoob/contact-details-scraper.md
- **Developed by:** [Pono Data](https://apify.com/thoob) (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

from $1.50 / 1,000 site 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.

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 Emails, Phones and Social Links Scraper

This actor visits a list of websites and returns the email addresses, phone numbers and social profile links published on them, one row per site. It is for sales, research and data teams who need the public contact details of many organizations at once.

### What it does

For each site it checks robots.txt, fetches the start page, then follows same-site links. Pages such as contact, about, team, impressum, support and legal are visited first, up to `maxPagesPerSite` pages. From each page it collects:

- Emails from `mailto:` links and from addresses in the visible page text
- Phones from `tel:` links and `telephone` values in JSON-LD
- Profiles on LinkedIn, X/Twitter, Facebook, Instagram, YouTube, TikTok and GitHub from page links

Each value is listed once per site. `evidence` shows the first page it was found on.

### Input

```json
{
  "startUrls": ["https://ponodata.com", "https://www.python.org"],
  "maxPagesPerSite": 10,
  "maxRecords": 0
}
```

Bare domains such as `example.com` become `https://example.com/`. URLs on the same origin are merged with a warning. `maxPagesPerSite` (1 to 50) includes the start page. `maxRecords` caps billed rows; 0 means no cap.

### Output

Illustration only, values are made up:

```json
{
  "inputUrl": "northwind.example",
  "domain": "northwind.example",
  "startUrl": "https://www.northwind.example/",
  "emails": ["info@northwind.example"],
  "phones": ["+15550100"],
  "linkedin": ["https://linkedin.com/company/northwind"],
  "twitter": [], "facebook": [], "instagram": [],
  "youtube": [], "tiktok": [], "github": [],
  "evidence": [
    { "type": "email", "value": "info@northwind.example", "foundOn": "https://www.northwind.example/contact" },
    { "type": "phone", "value": "+15550100", "foundOn": "https://www.northwind.example/contact" },
    { "type": "linkedin", "value": "https://linkedin.com/company/northwind", "foundOn": "https://www.northwind.example/" }
  ],
  "pagesCrawled": 6,
  "pagesSkippedByRobots": 0,
  "found": true,
  "error": null,
  "sourceUrl": "https://northwind.example/",
  "retrievedAt": "2025-01-01T12:00:00Z"
}
```

`error` explains a failed site, for example `blocked by robots.txt`, and is null otherwise.

### Pricing

Pay per event `site-contacts`: one charge per site where at least one email, phone or social profile was found. Every other row is free, including sites with nothing found, failed sites and sites blocked by robots.txt.

### Limits

- Phone numbers that appear only as plain text are not returned.
- JavaScript is not run; only the HTML sent by the server is read.
- Only HTML responses are read, up to 2 MB per page.
- Requests to one site are 500 ms apart, 4 sites run in parallel, 20 s timeout per page.
- A failed page is skipped with a warning; a failed start page gives a free row with `error`.
- Placeholder and asset addresses (example.com, sentry.io, image file names and similar) are dropped.

### Compliance

- Public sources only: no login, no CAPTCHA solving, no proxies.
- Honest User-Agent: `PonoDataActors/1.0 (+https://ponodata.com)`.
- robots.txt is obeyed for every page; blocked pages are never fetched and are counted in `pagesSkippedByRobots`.
- Found on the page only: hidden or obfuscated addresses, such as encoded emails or "name at domain dot com", are not decoded or rewritten.
- Every row carries `sourceUrl` and `retrievedAt`.

### Who uses it

- Sales reps who turn a list of company websites into `emails` and `phones` for outreach.
- Agencies who collect `instagram`, `facebook` and `tiktok` profiles for brands before pitching.
- Data teams who fill CRM gaps and keep `sourceUrl` and `evidence` to show where each contact appeared.
- Researchers who check which sites publish any public contact, using `found`.

### FAQ

#### What goes into `startUrls`?

A list of website addresses, usually homepages such as `https://example.com`. `maxPagesPerSite` limits how many pages are crawled on each site.

#### What does `found: false` mean?

No public email, phone or social profile was found on the pages crawled. Those sites are not billed. `pagesSkippedByRobots` shows how many pages were left out under the site's robots rules.

#### How do I see where a contact came from?

`evidence` and `sourceUrl` record the pages the details were taken from, and `pagesCrawled` shows how many pages were read.

#### Can it run on a schedule or through the API?

Yes. Use Apify Schedules for recurring runs, or start it through the Apify API with the same input JSON.

# Actor input Schema

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

Website URLs or bare domains, one per line. example.com becomes https://example.com/. URLs on the same origin are merged into one site with a warning.

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

Pages fetched per site, start page included. Contact, about, team, impressum, support and legal pages are visited first.

## `maxRecords` (type: `integer`):

Cap on delivered, billed rows (sites with at least one email, phone or social profile). 0 means no cap. Free rows are not counted. The platform spend cap is honored regardless.

## Actor input object example

```json
{
  "startUrls": [
    "https://ponodata.com",
    "https://www.python.org"
  ],
  "maxPagesPerSite": 10,
  "maxRecords": 0
}
```

# Actor output Schema

## `contacts` (type: `string`):

One row per input site.

# 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": [
        "https://ponodata.com",
        "https://www.python.org"
    ]
};

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

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

```

## MCP server setup

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