# Extract Contact Details from Any Website – Email, Phone, Social (`creative_tablecloth/extract-email-phone-social-media-from-any-website`) Actor

Discover our powerful scraper that effortlessly extracts emails, phone numbers, and social media links from any website. Ideal for marketers and businesses seeking to enhance their contact database quickly and efficiently.

- **URL**: https://apify.com/creative_tablecloth/extract-email-phone-social-media-from-any-website.md
- **Developed by:** [Jinny Kim](https://apify.com/creative_tablecloth) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 3,154 total users, 4 monthly users, 100.0% runs succeeded, 57 bookmarks
- **User rating**: 2.47 out of 5 stars

## Pricing

from $9.60 / 1,000 scraped pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Precision Contact Details Scraper

This robust tool, built using advanced web scraping technologies, efficiently extracts contact details from any website. It specifically targets vital information like emails, phone numbers, and social media profiles, ensuring quick lead generation and data gathering for business development.

### Included Features

- **Efficient Data Extraction**: Targets only necessary pages to minimize costs and enhance speed.
- **Simple Input Requirement**: Start your scrape with just a `startURL`.
- **Scalable Operations**: Extract details from up to 200 domains in a single run.
- **Secure and Private**: Your data remains confidential and protected.
- **Flexible Output Formats**: Export data in JSON, CSV, HTML, or integrate directly with APIs.
- **Cost-Effective**: Highly economical, approximately $0.2 for contact details from 1,000 websites.

### How it Works

The scraper begins by accepting a list of URLs provided in the `startURLs` parameter. It then scans these URLs to efficiently locate and extract email addresses, phone numbers, and social media links:

- Initiate the process with a single URL or a batch of up to 200 URLs at once. For best performance, we recommend batching URLs in groups of 100 or less.
- There's no need to add multiple URLs for the same domain; our system is designed to effectively find all necessary contact details from just one entry per domain.
- The system automatically finds and extracts the necessary contact details.
- Each contact detail is securely stored and can be exported in your preferred format.

### Text file input

- Ensure each URL includes "https://" at the beginning, such as https://apify.com/.
- Do not separate URLs with commas. List each URL on a new line:

### Results

The Actor stores its results in the default dataset associated with the Actor run. You can then download the results in formats such as JSON, HTML, CSV, XML, or Excel. For each page crawled, the following contact information is extracted:

- **Email** (Any domain)
- **Phone Number**
- **Social Media**
  - Facebook
  - Twitter
  - LinkedIn
  - TikTok
  - Instagram
  - Pinterest
  - Yelp
  - Google

### Output and Dataset Sample

For each page crawled, the resulting dataset contains a single record, which looks like this (in JSON format):

````json
[
  {
    "url": "https://yellowdogdenver.com/",
    "phone": "+13037652000",
    "email": "hello@yellowdogdenver.com",
    "facebook": "https://www.facebook.com/yellowdogden/",
    "linkedin": "https://www.linkedin.com/company/1510335/",
    "instagram": "https://www.instagram.com/yellowdogdenver/",
    "pinterest": "https://www.pinterest.com/yellowdogden/",
    "google": "https://g.page/r/CYiZ_Wz1YTN2EBM/",
    "yelp": "https://www.yelp.com/biz/yellowdog-denver-2/"
  }
]



# Actor input Schema

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

The URL of the website from which you want to extract contact details.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ]
}
````

# 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://crawlee.dev"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("creative_tablecloth/extract-email-phone-social-media-from-any-website").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://crawlee.dev" }] }

# Run the Actor and wait for it to finish
run = client.actor("creative_tablecloth/extract-email-phone-social-media-from-any-website").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://crawlee.dev"
    }
  ]
}' |
apify call creative_tablecloth/extract-email-phone-social-media-from-any-website --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,creative_tablecloth/extract-email-phone-social-media-from-any-website"
        }
    }
}
```

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/otDhC5EDrMgrqtSX3/builds/eTzplLWs5o0fIhLWU/openapi.json
