# Website Contact Extractor: Emails, Phones, Socials & Address (`ahmedmoq/website-contact-extractor`) Actor

Get one clean row of contact details per website: emails (including hidden ones), phones in international format, WhatsApp, address, company name and social profiles. Pay only for websites where contacts are found.

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

## Pricing

from $3.00 / 1,000 website 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 Extractor: Emails, Phones, Socials & Address

Give it a list of websites. Get back **one clean row per website** with the business email, phone numbers, WhatsApp, address, company name and social media profiles.

**You only pay for websites where contacts are found.** Websites that are offline, parked or have no contact details are free.

### Why use it

- **Finds contacts on most websites.** In our tests on over 8,000 real business websites from 10 countries, it found contact details on about **8 out of 10 websites that were online**.
- **Fair price.** One flat price per website with contacts. No charge per page, no extra charge for the browser or proxy.
- **Clean data, ready to use.**
  - Phones in international format (`+971 4 321 3540` becomes `+97143213540`).
  - Emails checked for a valid mail server.
  - Junk addresses removed (image names, placeholders, tracking codes, regulator addresses).
- **Finds hidden emails.** Reads emails protected by Cloudflare, written as `name [at] domain [dot] com`, or encoded by WordPress plugins.
- **Handles difficult websites.** When a site refuses simple requests or shows a short "please wait" check, the tool opens it in a real browser automatically.
- **Clear status for every website**, so you know why a row is empty: `found`, `socials_only`, `no_contacts`, `parked`, `protected`, `blocked`, `unreachable`, `timeout`, `redirected_away`, `invalid_input`.
- **Works worldwide**, including Arabic and Gulf websites (Arabic contact pages, Arabic digits, local phone formats).

### How to use

1. Paste your websites into **Websites** (one per line). Domains like `example.com` work too.
2. Click **Start**.
3. Download the results as Excel, CSV or JSON.

Duplicates of the same domain are removed automatically, so you are never charged twice for one website.

### Input

| Field | Description | Default |
|---|---|---|
| Websites | Website addresses or domains, one per line | required |
| Maximum pages per website | How many pages to open on each site | 15 |
| Stop early when email and phone are found | Makes runs faster | on |
| Default country for phone numbers | Country code used to read local phone numbers, e.g. `AE`, `SA`, `GB` | auto |
| Use a real browser for difficult sites | Open sites that refuse simple requests in a real browser | on |
| Websites processed in parallel | Speed setting | 25 |

### Output example

(Example values.)

```json
{
  "domain": "example-garage.ae",
  "status": "found",
  "companyName": "Example Garage",
  "primaryEmail": "info@example-garage.ae",
  "primaryPhone": "+97140000000",
  "emailList": ["info@example-garage.ae"],
  "phoneList": ["+97140000000", "+971500000000"],
  "whatsapp": ["+971500000000"],
  "address": "Street 1, Business Bay, Dubai, UAE",
  "facebook": ["https://www.facebook.com/examplegarage"],
  "instagram": ["https://www.instagram.com/examplegarage"],
  "linkedin": [],
  "contactPageUrl": "https://example-garage.ae/contact-us/",
  "qualityScore": 85
}
```

Each email and phone also comes with details: where it was found, whether it is the company's own domain, and whether the phone was confirmed by a clickable link.

### Pricing

**$3 per 1,000 websites where contacts are found.** Websites with no contacts, offline or parked websites cost nothing.

You can set a maximum cost for each run in the run options.

### Limits

- Websites protected by strong anti-bot services (for example Cloudflare's challenge page) usually cannot be read. They are marked `protected` and are free.
- Contact details shown only inside images or contact forms cannot be extracted.
- The tool reads publicly published business contact details only. Make sure your use of the data follows the privacy laws that apply to you (for example GDPR).

### Support

Found a website where the result looks wrong? Open an issue with the website address and we will check it.

# Actor input Schema

## `urls` (type: `array`):

Websites or domains to check, one per line. Any form works: example.com, www.example.com or https://example.com/page. Duplicates of the same website are removed automatically.

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

The most pages to open on each website. Contact and about pages are opened first, so 10 to 15 is enough for most websites.

## `stopWhenComplete` (type: `boolean`):

Stops crawling a website after an email and a confirmed phone are found and its contact pages are checked. Makes runs faster.

## `defaultCountry` (type: `string`):

Two-letter country code (for example US, GB, AE, SA, OM) used to read local phone numbers written without a country code. Leave empty to detect it from each website.

## `maxConcurrency` (type: `integer`):

How many websites are processed at the same time.

## `browserFallback` (type: `boolean`):

When a website refuses plain downloads or shows a short JavaScript check, open it in a real browser. Slower, but finds contacts on more sites.

## Actor input object example

```json
{
  "urls": [
    "apify.com"
  ],
  "maxPagesPerSite": 15,
  "stopWhenComplete": true,
  "maxConcurrency": 25,
  "browserFallback": true
}
```

# Actor output Schema

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

One row per website with the main email, phone, WhatsApp, address and social profiles.

## `allData` (type: `string`):

Full results, including where each email and phone was found and the pages visited.

# 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 = {
    "urls": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmedmoq/website-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 = { "urls": ["apify.com"] }

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

```

## MCP server setup

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