# 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
- **Features:** Limited permissions
- **Stats:** 203 total users, 0 monthly users, 85.7% 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/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

## 🕵️‍♂️ 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(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 '{}' |
apify call easyapi/social-media-contact-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/social-media-contact-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/IhPaXJaMCaNYA953X/builds/xkPGEv0icEX3r1Zdd/openapi.json
