# Website Contact Info Scraper (`datamule/website-contact-info-scraper`) Actor

Find public business contact details on websites: emails, phone numbers and social profile links from contact and about pages. Respects robots.txt. No login. $1.50 per 1,000 pages with contacts.

- **URL**: https://apify.com/datamule/website-contact-info-scraper.md
- **Developed by:** [Datamule](https://apify.com/datamule) (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

$1.50 / 1,000 page with contact details

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 Info Scraper

**Price: $1.50 per 1,000 pages returned ($0.0015 each). No start fee.** You are charged one `page` event per returned row, and the run stops cleanly at your max run charge.

Find the **public business contact details** a website publishes: email addresses, phone numbers and social profile links, from the start page and its contact-like pages (contact, about, imprint, support, privacy). Also reads Organization JSON-LD and decodes Cloudflare-protected email links.

### Example input

```json
{ "startUrls": ["https://www.python.org/about/help/"], "maxPagesPerDomain": 5, "maxDepth": 1, "preferContactPages": true }
```

### Output (one row per page with contact details)

`site`, `url`, `depth`, `emails`, `phones`, `socials` (by network), `orgName`, `pageTitle`, `scrapedAt`.

### How it behaves

- **Respects robots.txt.** Pages a site disallows are never fetched; sites whose robots.txt cannot be read reliably (5xx) are skipped. Crawl-delay is honored (capped at 5 s).
- **Polite and bounded**: about one request per second per site, same-site links only, at most 100 pages and 3 link hops per site.
- HTTP only: pages that build contact details with JavaScript are not rendered.
- Not a verifier: addresses and numbers are extracted as published, not checked for deliverability.

### Privacy and lawful use (GDPR / CCPA / anti-spam)

Intended for **public business contact information** (organisation mailboxes such as info@ or sales@, switchboard numbers, company social pages). Pages can also show personal data such as named staff addresses. Use "Role mailboxes only" to drop personal-looking addresses. **You are responsible for having a lawful basis and complying with GDPR, CCPA, e-privacy/anti-spam rules (e.g. CAN-SPAM, PECR) and each site's terms** when you store, process or contact anyone. This Actor does not log in, bypass access controls or collect non-public data. Not affiliated with any site it reads.

### Limits (honest)

- Sites that disallow crawling, block automated requests or require JavaScript return no rows; the run fails only if no row at all is returned.
- Phone detection requires an international `+` prefix or a `tel:` link; local-format numbers without either are missed.

### Cost control

One `page` event per delivered row; "Return only pages with contact details" is on by default so empty pages are free.

# Actor input Schema

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

Websites or pages to start from, e.g. https://www.python.org/about/help/ or python.org. Robots.txt is honored; pages it disallows are skipped.

## `maxPagesPerDomain` (type: `integer`):

Pages fetched per website, including the start page (1-100).

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

How many link hops from the start page to follow within the same website (0-3).

## `preferContactPages` (type: `boolean`):

Prioritise links such as contact, about, imprint, support and privacy.

## `onlyPagesWithContacts` (type: `boolean`):

Skip pages where no email, phone or social link was found. You pay per returned row.

## `roleEmailsOnly` (type: `boolean`):

Keep only generic business mailboxes (info@, sales@, support@...) and drop personal-looking addresses.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.python.org/about/help/"
  ],
  "maxPagesPerDomain": 5,
  "maxDepth": 1,
  "preferContactPages": true,
  "onlyPagesWithContacts": true,
  "roleEmailsOnly": 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 = {
    "startUrls": [
        "https://www.python.org/about/help/"
    ],
    "maxPagesPerDomain": 5,
    "maxDepth": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("datamule/website-contact-info-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.python.org/about/help/"],
    "maxPagesPerDomain": 5,
    "maxDepth": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("datamule/website-contact-info-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.python.org/about/help/"
  ],
  "maxPagesPerDomain": 5,
  "maxDepth": 1
}' |
apify call datamule/website-contact-info-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datamule/website-contact-info-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/2wor7mEowlH9cxgGf/builds/PuSly0pR2JcAjXDns/openapi.json
