# Website Email & Contact Scraper + Page Content Extractor (`locomint/website-content-contact-extractor`) Actor

Turn any list of URLs into clean Markdown text plus business contacts - emails, social profiles, WhatsApp, contact page, tech stack - in one pass. Fast HTTP fetch, no browser, one flat price per page. Built for RAG pipelines, lead lists and website audits.

- **URL**: https://apify.com/locomint/website-content-contact-extractor.md
- **Developed by:** [Umaid Ali](https://apify.com/locomint) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Website Content & Contact Extractor

Paste a list of URLs, get back **clean Markdown text plus business contacts** for
every page - in one pass, from one fetch, at one flat price per page.

- 📄 **Content** – title, description, language, headings, canonical URL and the page
  body as Markdown (headings, lists, links, code blocks kept) or plain text.
  Navigation, footers, scripts, cookie banners and forms are stripped.
- 📬 **Contacts** – business emails (role addresses only), Facebook / Instagram /
  LinkedIn / X / YouTube / TikTok profiles, WhatsApp click-to-chat numbers, the
  contact-page URL and the detected tech stack (CMS, analytics, e-commerce, chat).
- ⚡ **No browser** – plain HTTP fetch, 5 pages in parallel by default, a few hundred
  milliseconds per page. That is why it costs a fraction of browser-based crawlers.
- 🧾 **Honest statuses** – every URL comes back with a status, so you know exactly
  what you got: `ok`, `thin` (client-side rendered site, little server text),
  `parked`, `http_error`, `not_html`, `unreachable`, `blocked`, `refused`.

***

### 🎯 What can you do with it?

- **Feed an LLM / RAG pipeline** – Markdown per URL, size-capped, with metadata.
- **Build a lead list from a list of websites** – emails, socials and WhatsApp in a CSV.
- **Audit a portfolio of sites** – tech stack, language, thin or parked pages.
- **Enrich a CRM** – run it on the website column, merge the contacts back.

Pair it with **Locomint - Local Business Data** to go from "dentists in Lisbon" to
every clinic's website *and* its contact points.

***

### ▶️ How to use it

1. Paste full URLs (with `https://`) into **Page URLs**.
2. Pick **Markdown** or **Plain text**, and a size cap per page.
3. Run. Download the dataset as JSON, CSV, Excel or via the API.

### ⚙️ Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `startUrls` | list | – | Full URLs, up to 5,000 per run |
| `outputFormat` | `markdown` / `text` | `markdown` | |
| `maxChars` | integer | 50,000 | Longer pages are cut and marked `truncated: true` |
| `includeContacts` | boolean | true | Emails, socials, WhatsApp, contact page, tech stack – no extra cost |
| `includeLinks` | boolean | false | Add up to 500 outgoing links per page |
| `concurrency` | integer | 5 | Parallel fetches (1–10) |

### 🧾 Example output

```json
{
  "url": "https://acme.example/",
  "final_url": "https://acme.example/",
  "status": "ok",
  "http_status": 200,
  "title": "Acme Widgets",
  "description": "Hand-made widgets since 1999.",
  "language": "en",
  "headings": ["Welcome to Acme", "Services"],
  "content": "# Welcome to Acme\n\nWe build great widgets since 1999.\n\n## Services\n\n- Design\n- Repair",
  "word_count": 412,
  "truncated": false,
  "emails": ["info@acme.example"],
  "socials": {"facebook": "https://www.facebook.com/acme", "instagram": "https://www.instagram.com/acme"},
  "whatsapp": "+971501234567",
  "contact_form_url": "https://acme.example/contact",
  "tech_stack": ["wordpress", "woocommerce", "google-analytics"],
  "fetched_at": "2026-09-06T12:00:00+00:00"
}
```

***

### 💰 Pricing

One price per page delivered, whatever the page contains. No add-ons for contacts,
no compute-unit surprises: a failed URL still returns a row (with its status) so you
always know what happened, and a 5,000-URL run costs the same on a slow day as on a
fast one.

***

### 🛡️ What it deliberately does not do

- **No personal data.** Only role-based business mailboxes are kept
  (`info@`, `sales@`, `bookings@`…); mailboxes that look like a person's name are
  dropped, and nothing is collected from social profiles.
- **No JavaScript rendering.** Sites that render everything client-side come back
  with `status: "thin"` rather than a fake result. If you need a browser, Apify's
  Website Content Crawler is the right tool; this one is the fast, cheap half.
- **No bypassing.** If a site answers with a challenge or a block, the row says
  `blocked` and we back off. Private and internal addresses are refused.
- **Politeness.** Redirects are followed (max 5), bodies are capped at 3 MB, and the
  same page is never hammered.

***

### ❓ FAQ

**Does it crawl a whole site?** No – one row per URL you give it. That keeps the
price predictable. Put the pages you want in the list (sitemaps are a good source).

**Why is a page `thin`?** Fewer than ~40 words came back as server-rendered text.
Typically a React/Vue single-page app. Contacts may still be found in the HTML.

**Can I get the raw HTML?** Not in this actor – it is designed to return clean,
LLM-ready text. Ask if you need it.

**Languages?** Any. The `language` field reports what the page declares.

***

### 🧑‍💻 Support

Issues tab on this page, or hello@locomint.io. Part of the Locomint local business
data toolkit – see the other actors by this developer.

# Actor input Schema

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

The pages to extract. Full URLs including https:// - one result per URL, up to 5,000 per run.

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

Markdown keeps headings, lists, links and code blocks - ideal for LLM and RAG use. Plain text is just the words.

## `maxChars` (type: `integer`):

Longer content is cut here and marked truncated.

## `includeContacts` (type: `boolean`):

From the same page fetch: business emails (role addresses only - never personal mailboxes), social profiles, WhatsApp click-to-chat numbers, contact page URL and detected tech stack. No extra cost.

## `includeLinks` (type: `boolean`):

Add the list of links found on the page (up to 500).

## `concurrency` (type: `integer`):

How many pages to fetch at the same time.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.apify.com/"
    },
    {
      "url": "https://docs.python.org/3/"
    }
  ],
  "outputFormat": "markdown",
  "maxChars": 50000,
  "includeContacts": true,
  "includeLinks": false,
  "concurrency": 5
}
```

# Actor output Schema

## `pages` (type: `string`):

One row per URL: status, title, description, language, headings, clean Markdown/text content, and business contacts (emails, socials, WhatsApp, contact page, tech stack).

# 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://www.apify.com/"
        },
        {
            "url": "https://docs.python.org/3/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("locomint/website-content-contact-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://www.apify.com/" },
        { "url": "https://docs.python.org/3/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("locomint/website-content-contact-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://www.apify.com/"
    },
    {
      "url": "https://docs.python.org/3/"
    }
  ]
}' |
apify call locomint/website-content-contact-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,locomint/website-content-contact-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/xyGFuERqyGm5xjupd/builds/ytQ7ClfITBKcCtJ1B/openapi.json
