# Website Contact Details Extractor — Emails, Phones, Socials (`brightish_ascent/website-contact-details-extractor`) Actor

Extract publicly listed emails, phone numbers and social profile links (X/Twitter, LinkedIn, Facebook, Instagram, YouTube, GitHub, TikTok) from websites you supply. One clean row per page with contacts; empty pages are free. Respects robots.txt. By Harlo. Not affiliated with any website scraped.

- **URL**: https://apify.com/brightish_ascent/website-contact-details-extractor.md
- **Developed by:** [Michael Rice](https://apify.com/brightish_ascent) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 page 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 Contact Details Extractor — Emails, Phones, Socials

**By Harlo.** Give it a list of websites; get back the **publicly listed** emails, phone numbers and social profile links — one clean row per page that actually has contacts. Pages with nothing found are **not charged**.

> Unofficial tool. Not affiliated with, endorsed by, or connected to any website you scan. You supply the URLs.

### What it does

- Fetches your start URLs (and, optionally, same-site links like `/contact` or `/about` up to depth 2)
- Extracts:
  - **Emails** — `mailto:` links and visible text, simple `[at]`/`(dot)` obfuscation decoded; image filenames, placeholders (`you@example.com`) and tracking IDs filtered out
  - **Phones** — `tel:` links plus visible numbers with an international `+`, an `(area)` code, or a phone label next to them (keeps false positives like order numbers and dates out)
  - **Social profiles** — X/Twitter, LinkedIn, Facebook, Instagram, YouTube, GitHub, TikTok. Share buttons, intents and individual posts are ignored; URLs are normalised and de-duplicated
- **Respects robots.txt** (disallowed pages are skipped and counted), paces requests (≥ 400 ms apart) and identifies itself with a User-Agent that includes a support contact

### Why this one

- Simple input: paste URLs, pick toggles — sensible defaults (only your URLs, no crawling surprises)
- One row per page, with counts (`emailsFound`, `phonesFound`, `socialsFound`) ready for filtering
- Pay only for pages where contacts were found
- `compact` output for spreadsheets / CRMs, `full` for audit (final URL after redirects, title, timestamp)
- Works well from AI agents and MCP clients (Apify MCP server): small, typed input and a predictable row shape

### Input

| Field | Default | Notes |
|---|---|---|
| `startUrls` | required | Pages to scan, e.g. `[{"url":"https://example.com/contact"}]` |
| `maxPages` | 10 | 1–100 pages per run |
| `followLinks` | false | Follow links found on pages |
| `maxDepth` | 0 | 0 = start URLs only; up to 2 |
| `sameOriginOnly` | true | When following, stay on the same site |
| `includeEmails` / `includePhones` / `includeSocials` | true | Toggle each type |
| `maxItems` | 500 | Max rows (charged events) |
| `outputFormat` | full | `full` or `compact` |

Example:

```json
{ "startUrls": [{ "url": "https://apify.com/contact" }], "maxPages": 3, "maxDepth": 0 }
```

### Output

```json
{
  "pageUrl": "https://apify.com/contact",
  "finalUrl": "https://apify.com/contact",
  "title": "Contact us · Apify",
  "emails": ["hello@apify.com"],
  "phones": [],
  "socials": [{ "network": "linkedin", "url": "https://www.linkedin.com/company/apify" }],
  "emailsFound": 1, "phonesFound": 0, "socialsFound": 1,
  "depth": 0, "fetchedAt": "2026-10-26T00:00:00.000Z", "robotsAllowed": true
}
```

The `OUTPUT` record in the key-value store summarises the run: `count`, `pagesFetched`, `pagesSkippedRobots`, `pagesFailed`, `pagesNoContacts`, `warnings`.

### Pricing (pay per event)

- **$0.001 per page with contacts** (dataset row) — i.e. $1 per 1,000 pages with contacts. Pages with no contacts are free.
- $0.00005 per Actor start.
- Pricing ESTIMATE for launch; check the Store pricing tab for current prices. Set a max total charge on the run to cap spend.

### Limits

- Static HTML only (no JavaScript rendering). Contacts injected by JavaScript or shown as images are not detected.
- No login, CAPTCHA solving or paid lead databases — public pages only.
- Phone detection is precision-first; numbers in plain text without `+`, `(area)` code or a nearby phone label are skipped.
- **robots.txt:** disallowed paths are skipped. If robots.txt returns **4xx**, **5xx**, or a network error, the Actor treats the origin as **allowed** (best-effort) and continues; that matches common crawler practice and is noted in the internal TERMS notes.

### Responsible use

Only publicly visible information on the pages you provide is collected. You are responsible for complying with applicable laws (e.g. GDPR, CAN-SPAM) and website terms when using results.

### Support

Harlo · digitalpromohub.support@gmail.com — open an Issue on the Actor page for bugs or feature requests.

# Actor input Schema

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

Website pages to scan (homepage, /contact, /about...). Only URLs you supply are fetched, plus same-site links if you enable link following.

## `maxPages` (type: `integer`):

Maximum pages fetched per run (start URLs + followed links; robots.txt-skipped pages count too).

## `followLinks` (type: `boolean`):

Also visit links found on each page (e.g. homepage -> /contact) up to Max depth.

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

0 = only start URLs. 1 = also pages linked from start URLs. 2 = one more level. Needs Follow links on.

## `sameOriginOnly` (type: `boolean`):

When following links, stay on the start URL's origin (scheme + host).

## `includeEmails` (type: `boolean`):

Extract email addresses (mailto: links and visible text; common \[at]/(dot) obfuscation decoded).

## `includePhones` (type: `boolean`):

Extract phone numbers from tel: links and visible text (international +, (area) code, or next to a phone label).

## `includeSocials` (type: `boolean`):

Extract profile links: X/Twitter, LinkedIn, Facebook, Instagram, YouTube, GitHub, TikTok. Share buttons and post links are ignored.

## `maxItems` (type: `integer`):

Maximum dataset rows (pages with contacts) per run. Each row is one charged event.

## `outputFormat` (type: `string`):

full = all fields; compact = pageUrl, emails, phones, socials (URLs only), fetchedAt.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com/contact"
    }
  ],
  "maxPages": 10,
  "followLinks": false,
  "maxDepth": 0,
  "sameOriginOnly": true,
  "includeEmails": true,
  "includePhones": true,
  "includeSocials": true,
  "maxItems": 500,
  "outputFormat": "full"
}
```

# Actor output Schema

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

Default dataset. full rows: pageUrl, finalUrl (after redirects), title, emails\[], phones\[], socials\[{network,url}], emailsFound, phonesFound, socialsFound, depth, fetchedAt, robotsAllowed. compact rows: pageUrl, emails, phones, socials (URLs), fetchedAt.

## `runSummary` (type: `string`):

Fields: ok, count, chargeEvent, chargedCount, pagesFetched, pagesSkippedRobots, pagesFailed, pagesNonHtml, pagesNoContacts, failures, warnings, outputFormat, message, http (requests, retries, throttled, minIntervalMs, userAgent), disclaimer. On failure: ok false, error.

# 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/contact"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("brightish_ascent/website-contact-details-extractor").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/contact" }] }

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

```

## MCP server setup

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

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/ABKdmnouuGywlz3jR/builds/I6WPc6cHVAdr9zaMf/openapi.json
