# Social Media Contact Scraper (`easyapi/social-media-contact-scraper`) Actor

🕵️‍♂️ Supercharge your lead generation with our Social Media Contact Scraper! Extract emails, phone numbers, and social media profiles from websites effortlessly. Customizable depth, domain control, and stealth mode for efficient and ethical scraping. Build your contact database today! 📧📞🌐

- **URL**: https://apify.com/easyapi/social-media-contact-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Lead generation, Social media
- **Stats:** 190 total users, 6 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## 🕵️‍♂️ Social Media Contact Scraper

This powerful Apify Actor scrapes contact information from websites, including email addresses, phone numbers, and social media profiles. It's perfect for lead generation, market research, and building comprehensive contact databases.

### ✨ Features

- 📧 Extract email addresses
- 📞 Collect phone numbers
- 🌐 Gather social media profiles (LinkedIn, Twitter, Instagram, Facebook, YouTube, TikTok, Pinterest, Discord)
- 🔍 Crawl multiple pages with customizable depth
- 🏠 Option to stay within the same domain
- 🚀 Fast and efficient scraping with concurrent requests
- 🕵️‍♂️ Uses stealth mode to avoid detection

### 📥 Input

Configure your scraping job with the following options:

- `startUrls`: List of URLs to start scraping from
- `maxDepth`: Maximum depth of links to follow (default: 1)
- `sameDomain`: Whether to stay on the same domain while crawling (default: true)
- `maxResults`: Maximum number of results to collect (default: 100)

### 📤 Output

The Actor provides detailed contact information for each scraped page:

- 🔗 Original start URL and referrer URL
- 🌐 Current URL and domain
- 📧 Email addresses
- 📞 Phone numbers
- 🔗 Social media profile links (LinkedIn, Twitter, Instagram, Facebook, YouTube, TikTok, Pinterest, Discord)

### 💡 Use Cases

- 🎯 Lead Generation: Build targeted contact lists for your sales team
- 🔬 Market Research: Analyze contact preferences across different websites
- 🤝 Networking: Find potential partners or collaborators in your industry
- 📊 Competitive Analysis: Gather contact information from competitor websites
- 🗃️ Database Enrichment: Add valuable contact details to your existing records

### 🚀 Getting Started

1. Set up your input parameters in the Apify console or via API.
2. Run the Actor and watch as it collects valuable contact information.
3. Access your results in JSON format, ready for further analysis or integration.

### 🆘 Support

If you encounter any issues or have questions about using this Actor, please don't hesitate to reach out through Apify's support channels.

Start scraping valuable contact details today and supercharge your outreach efforts! 🚀📇

#### Input Example

A full explanation of an input example in JSON.

{
"startUrls": \['https://apify.com'],
"maxDepth": 2,
"sameDomain": true,
"maxResults": 100,
}

```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:  

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.  

```

\[
{
"originalStartUrl": "https://apify.com",
"referrerUrl": null,
"url": "https://apify.com",
"domain": "apify.com",
"emails": \[],
"phones": \[],
"linkedIns": \[
"https://www.linkedin.com/company/apifytech/"
],
"twitters": \[],
"instagrams": \[],
"facebooks": \[],
"youtubes": \[],
"tiktoks": \[],
"pinterests": \[],
"discords": \[
"https://discord.com/invite/jyEM2PRvMU"
]
},
{
"referrerUrl": "https://apify.com",
"url": "https://apify.com/resources/scraping-tiktok-webinar",
"domain": "apify.com",
"emails": \[],
"phones": \[],
"linkedIns": \[
"https://www.linkedin.com/company/apifytech/"
],
"twitters": \[],
"instagrams": \[],
"facebooks": \[],
"youtubes": \[],
"tiktoks": \[],
"pinterests": \[],
"discords": \[
"https://discord.com/invite/jyEM2PRvMU"
]
},
...
]

````

### Related Actors

- 📧 [All-in-One Social Media Email Scraper](https://apify.com/easyapi/all-in-one-social-media-email-scraper) - Discover emails across 30+ social platforms for lead generation and influencer outreach
- 📱 [All-in-One Social Media Phone Number Scraper](https://apify.com/easyapi/all-in-one-social-media-phone-number-scraper) - Extract phone numbers from 30+ social platforms for networking and marketing
- 📧 [Instagram Email Scraper](https://apify.com/easyapi/instagram-email-scraper) - Find Instagram users matching your keywords and specific email domains
- 📧 [Twitter Email Scraper](https://apify.com/easyapi/twitter-email-scraper) - Effortlessly scrape email addresses from Twitter profiles
- 📧 [Facebook Email Scraper](https://apify.com/easyapi/facebook-email-scraper) - Extract email addresses from Facebook profiles and pages
- 📧 [TikTok Email Scraper](https://apify.com/easyapi/tiktok-email-scraper) - Find TikTok creators matching your keywords and specific email domains
- 📧 [LinkedIn Email Scraper](https://apify.com/easyapi/linkedin-email-scraper) - Extract email addresses from LinkedIn profiles for B2B outreach
- 📧 [YouTube Email Scraper](https://apify.com/easyapi/youtube-email-scraper) - Discover email addresses from YouTube channel descriptions
- 📧 [Snapchat Email Scraper](https://apify.com/easyapi/snapchat-email-scraper) - Find Snapchat users matching your keywords and specific email domains
- 📧 [Telegram Email Scraper](https://apify.com/easyapi/telegram-email-scraper) - Extract emails from Telegram profiles, channels and groups
- 📧 [Discover & Verify Professional Emails](https://apify.com/easyapi/discover-verify-professional-emails) - Find and validate professional email addresses instantly
- 🔍 [Username Availability Checker](https://apify.com/easyapi/username-availability-checker) - Check username availability across 80+ platforms
- 👥 [Social Media Influencer Scraper](https://apify.com/easyapi/social-media-influencer-scraper) - Discover top influencers across TikTok, Instagram, and YouTube
- 🏷️ [Social Media Hashtag Generator](https://apify.com/easyapi/social-media-hashtag-generator) - Generate trending hashtags for multiple topics at once
- 📧 [Email & Contact Extractor From Any Web](https://apify.com/easyapi/email-contact-extractor-from-any-web) - Extract emails, phone numbers, and social media profiles from any website

# Actor input Schema

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

List of URLs to start scraping from
## `maxDepth` (type: `integer`):

Maximum depth of links to follow
## `sameDomain` (type: `boolean`):

Whether to stay on the same domain while crawling
## `maxResults` (type: `integer`):

Maximum number of contact details to scrape

## Actor input object example

```json
{
  "startUrls": [
    "https://www.apify.com"
  ],
  "maxDepth": 1,
  "sameDomain": true,
  "maxResults": 5
}
````

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/social-media-contact-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/social-media-contact-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call easyapi/social-media-contact-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=easyapi/social-media-contact-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IhPaXJaMCaNYA953X/builds/tZFNBe5oRUfqY7bx1/openapi.json
