# Website Contacts & Social Links Scraper (`springlike_meadowland/website-contacts-scraper`) Actor

Extract public emails, phone numbers and social profile links from supplied websites, page by page. Crawl bounded same-origin contact/about links and export source URLs plus coverage and errors. Public HTTPS HTML only; no enrichment.

- **URL**: https://apify.com/springlike\_meadowland/website-contacts-scraper.md
- **Developed by:** [Akshay Aggarwal](https://apify.com/springlike_meadowland) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 saved pages

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 Contacts & Social Links Scraper

Turn public company and organization websites you already know into a page-level contact sheet. Enter up to 20 HTTPS URLs; the Actor reads each starting page and a small number of linked contact/about pages, then exports visible email addresses, phone numbers and social profile links with the exact source page.

### Quick start

```json
{
  "startUrls": ["https://www.w3.org/contact/", "https://www.gnu.org/contact/"],
  "maxPagesPerSite": 1,
  "maxPages": 2,
  "includeTextContacts": true
}
```

Each dataset row is **one fetched HTML page**, even when it has no contacts. For example, W3C's public contact page shows `contact@w3.org`, `membership@w3.org`, and `+1.339.273.2711`. See the [W3C page example](examples/w3c-contact.json) and [GNU page example](examples/gnu-contact.json). Website contents can change.

| Field | Meaning |
| --- | --- |
| `website_url` | HTTPS origin of the supplied website |
| `page_url` | Fetched page URL after allowed redirects |
| `emails` | Deduplicated lowercase addresses from `mailto:` links and, optionally, visible text |
| `phones` | Deduplicated normalized `tel:` links and, optionally, labeled visible numbers |
| `social_links` | Deduplicated links to supported social profile hosts; tracking queries removed |
| `company_name` | Site name only when explicitly supplied by `og:site_name` or `application-name` metadata; omitted otherwise |
| `source_url` | The page that contained the contacts |
| `status` | `success` when public HTML was fetched and parsed, including pages with empty contact arrays |

The run's **Coverage and errors** output is a separate `OUTPUT` summary: fetched and saved counts, skipped pages, per-site errors, page limits, unprocessed start URLs and overall `complete`/`partial`/`error` status. Error and summary objects are not dataset rows.

### Scope and limits

- Public HTTPS HTML only. The Actor follows same-host HTTPS redirects and linked same-origin contact/about/team/company/impressum pages. Supply the site's final canonical hostname when it redirects between bare and `www` domains.
- Defaults: 3 attempts per site, 10 attempts total. Set `maxPagesPerSite` from 1–20 and `maxPages` from 1–400; both caps count attempted pages, including errors. Repeated URLs are skipped. Candidate discovery prioritizes direct `/contact` and `/about` paths.
- HTML downloads are capped at 1 MiB with a 100-second soft run budget. Pages that need JavaScript, login, a form submission, a browser challenge, or a cross-origin redirect are outside scope. An inaccessible page is recorded as an error.
- Contacts must appear in HTML links or visible text. No guessed addresses, person discovery, domain-wide email database, enrichment API, credential input or runtime AI. Hidden scripts and metadata other than explicit site name are ignored. Phone text extraction requires a visible phone label or an international `+` number.
- Each fetched page is independent: the same contact may appear in several page rows. Social links cover LinkedIn, Instagram, Facebook, YouTube, X/Twitter, TikTok, Bluesky and listed Mastodon hosts when explicitly linked. The Actor does not prove account ownership or provide complete site coverage.
- A run spending limit stops additional fetches. The billing unit is one successfully processed and saved page row. A page with empty contact arrays can still be a processed page. Partial saved rows remain if later pages fail. Check the Store pricing panel for the current price.

To check a source, open `page_url` from the row. For an error, inspect the `OUTPUT` summary and try the public page in a browser. Sites may change their HTML or deny automated access.

# Actor input Schema

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

1–20 public HTTPS company or organization pages. Use the final canonical hostname when the site redirects between bare and www domains.

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

Attempt up to this many pages on each website, including its starting page. Default: 3; maximum: 20.

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

Attempt no more than this many pages across all websites, including pages that return errors. Default: 10; maximum: 400.

## `includeTextContacts` (type: `boolean`):

Find email addresses and labeled phone numbers in visible page text as well as mailto: and tel: links.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.w3.org/"
  ],
  "maxPagesPerSite": 3,
  "maxPages": 10,
  "includeTextContacts": true
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        "https://www.w3.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("springlike_meadowland/website-contacts-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://www.w3.org/"] }

# Run the Actor and wait for it to finish
run = client.actor("springlike_meadowland/website-contacts-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://www.w3.org/"
  ]
}' |
apify call springlike_meadowland/website-contacts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,springlike_meadowland/website-contacts-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/994mAIuxnGpfC0tby/builds/Kqm2WMHTypwYz5U21/openapi.json
