# Social Media Finder (`datapilot/social-media-finder`) Actor

Scrape social media profile links from websites, including Facebook, Instagram, LinkedIn, X, YouTube, TikTok, GitHub, Pinterest, Discord, and Telegram. Extract page titles, descriptions, and social URLs with support for multiple websites and Apify Proxy.

- **URL**: https://apify.com/datapilot/social-media-finder.md
- **Developed by:** [Data Pilot](https://apify.com/datapilot) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 scraped social link 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 Finder** is a powerful Apify Actor designed to find the official social media profile links of any website. This **Social Media Finder** scans a site's pages and returns links to Facebook, Instagram, LinkedIn, X (Twitter), YouTube, TikTok, GitHub, Pinterest, Discord, and Telegram, along with the page title and description. Whether you're enriching a lead list, researching brands, or building a contact database, the Social Media Finder delivers structured social profile data efficiently.

With multi-site input, deep page scanning, smart fallback pages, brand-parent fallback, and reliable Apify Dataset delivery, this **Social Media Finder** actor goes beyond a simple link check. It cleans and filters links so you get profile URLs instead of share buttons and login links, making **Social Media Finder** a practical tool for lead generation and brand research.

***

### 📋 Table of Contents

- [Features](#-features)
- [Data Source](#-data-source)
- [How It Works](#-how-it-works)
- [Input](#-input)
- [Output](#-output)
- [Technical Stack](#-technical-stack)
- [Data Fields](#-data-fields-explained)
- [Use Cases](#-use-cases)
- [Quick Start](#-quick-start)
- [Configuration](#-configuration)
- [Performance](#-performance)
- [Important Notes](#-important-notes)
- [License & Legal](#-license--legal)

***

### 🔥 Features

- **10 Social Platforms** – This Social Media Finder looks for Facebook, Instagram, LinkedIn, X (Twitter), YouTube, TikTok, GitHub, Pinterest, Discord, and Telegram links. This is the core of **Social Media Finder**.
- **Multiple Websites per Run** – Scan a list of websites in one Social Media Finder run.
- **Deep Page Scanning** – Reads both the page's link tags and the full page source, so links hidden in scripts and embedded data can be found too.
- **Fallback Pages** – If the home page has no social links, the Social Media Finder also checks `/about`, `/contact`, and `/terms`.
- **Parent Brand Fallback** – For a few known apps, the Social Media Finder falls back to the parent company's site (see [Important Notes](#-important-notes)).
- **Link Filtering** – Removes share buttons, login links, embeds, and similar non-profile links.
- **Clean Links** – Strips query strings and trailing slashes from every link.
- **Page Title & Description** – Returns the site's title and meta description.
- **Domain or URL Input** – Accepts full URLs or plain domains; `https://` is added if missing.
- **Apify Proxy Support** – Optional Apify Proxy for reliable **Social Media Finder** access.
- **Proxy Fallback Handling** – Each page request is retried without a proxy if the proxied request fails.
- **Detailed Logging** – Logs progress and the number of platforms found for every **Social Media Finder** run.

***

### 📊 Data Source

#### **The Websites You Provide**

- **Source**: The public web pages of the sites you list in `startUrls`, plus `/about`, `/contact`, and `/terms` when needed
- **Access Method**: HTTP requests via `curl_cffi` with Chrome 124 TLS fingerprint impersonation, parsing HTML with BeautifulSoup
- **Coverage**: Any public website whose pages can be fetched
- **Data**: Social profile links, page title, and page description
- **Access**: No login or API key used
- **Update Frequency**: Reflects each site's pages at time of run

***

### ⚙️ How It Works

The Social Media Finder accepts a list of websites. For each site it downloads the home page, searches its links and source code for known social profile URL patterns, filters out non-profile links, and records one link per platform. If nothing is found, it tries fallback pages and, for a few known brands, the parent company's site. Each site becomes one record, and all records are pushed to the Apify Dataset as one batch.

**Key Processing Steps:**

1. **Input Parsing** – Read `startUrls` and normalize each one (add `https://` if missing)
2. **Proxy Setup** – Configure Apify Proxy if enabled
3. **Home Page Fetch** – Download the page (it must return HTTP 200 and more than 500 characters)
4. **Link Extraction** – Match social URL patterns in link tags and in the full page source
5. **Filtering & Cleaning** – Remove non-profile links, query strings, and trailing slashes
6. **Fallback Pages** – If no social links were found, check `/about`, `/contact`, and `/terms`
7. **Parent Brand Fallback** – If still none and the domain is a known app, check the parent company's site
8. **Record Building** – Create one record per website
9. **Dataset Push** – Push all **Social Media Finder** records at once

***

### 📥 Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `startUrls` | array of strings | `["https://apify.com"]` | Websites to scan. Full URLs or domains; `https://` is added if missing. |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify Proxy configuration. |

**Example Input:**

```json
{
  "startUrls": ["https://apify.com", "example.com", "https://www.example.org"]
}
```

**Run Without Proxy:**

```json
{
  "startUrls": ["https://apify.com"],
  "proxyConfiguration": {
    "useApifyProxy": True 
  }
}
```

***

### 📤 Output

One **Social Media Finder** record is pushed per website:

| Field | Type | Description |
|-------|------|-------------|
| `domain` | string | The site's domain |
| `url` | string | The URL that was scanned |
| `pageTitle` | string | Page title (empty if the page could not be fetched) |
| `pageDescription` | string | Meta description (empty if none) |
| `facebook` | string or null | Facebook profile link |
| `instagram` | string or null | Instagram profile link |
| `linkedin` | string or null | LinkedIn company, personal, or school link |
| `twitter` | string or null | X (Twitter) profile link |
| `youtube` | string or null | YouTube channel link |
| `tiktok` | string or null | TikTok profile link |
| `github` | string or null | GitHub profile or organization link |
| `pinterest` | string or null | Pinterest profile link |
| `discord` | string or null | Discord invite link |
| `telegram` | string or null | Telegram link |
| `scrapedAt` | string | ISO 8601 UTC timestamp |

**Example Social Media Finder Record:**

```json
{
  "domain": "example.com",
  "url": "https://example.com",
  "pageTitle": "Example Company",
  "pageDescription": "We build example products.",
  "facebook": "https://facebook.com/examplecompany",
  "instagram": "https://instagram.com/examplecompany",
  "linkedin": "https://linkedin.com/company/example-company",
  "twitter": "https://x.com/examplecompany",
  "youtube": null,
  "tiktok": null,
  "github": "https://github.com/example-company",
  "pinterest": null,
  "discord": null,
  "telegram": null,
  "scrapedAt": "2026-10-30T09:00:00+00:00"
}
```

***

### 🧰 Technical Stack

- **HTTP Client:** `curl_cffi` with Chrome 124 TLS fingerprint impersonation
- **HTML Parsing:** BeautifulSoup plus regular expressions for each social platform
- **Async:** `asyncio` with executor-run blocking requests, one site at a time with a 1 second pause
- **Proxy:** Apify Proxy, optional via `useApifyProxy`
- **Logging:** Apify Actor logging system
- **Platform:** Apify Actor serverless environment

***

### 📊 Data Fields Explained

#### **Site Identity**

- **domain / url / pageTitle / pageDescription**: Which site was scanned and how it describes itself

#### **Social Profiles**

- **facebook / instagram / linkedin / twitter / youtube / tiktok / github / pinterest / discord / telegram**: The profile link found for each platform, or `null` if none was found

#### **Metadata**

- **scrapedAt**: UTC timestamp of the scan

***

### 🎯 Use Cases

- **Lead Enrichment** – Add social profile links to a list of company websites with the Social Media Finder
- **Brand Research** – Find a brand's official channels in one run
- **Influencer & Partner Outreach** – Locate social accounts for sites you want to contact
- **Competitor Analysis** – Check which platforms competitors are active on
- **CRM & Database Enrichment** – Fill missing social fields in contact databases
- **Sales Prospecting** – Use the Social Media Finder to prepare outreach lists

***

### 🚀 Quick Start

#### **1. Prepare Input**

Go to Apify Console and enter:

```json
{
  "startUrls": ["https://apify.com"]
}
```

#### **2. Run the Actor**

Click **Start**. The Social Media Finder will:

- Connect through Apify Proxy if enabled
- Download each website's pages
- Extract and filter social profile links
- Push one record per website to the Dataset

#### **3. Monitor Progress**

Console shows:

```
🛡️ Apify Proxy connected.
🔎 Deep Scanning social links for 1 target(s)...
[1/1] Scanning: https://apify.com
✅ Found 5 social platform(s) for apify.com
🎉 Successfully pushed 1 record(s) to dataset!
Done!
```

#### **4. View & Download Results**

- **Results Tab**: All **Social Media Finder** records
- **Export**: JSON, CSV, Excel, or HTML
- **API Access**: Available via the Apify API

***

### ⚙️ Configuration

Several websites:

```json
{
  "startUrls": ["https://example.com", "https://example.org", "example.net"]
}
```

Direct connection without proxy:

```json
{
  "startUrls": ["https://example.com"],
  "proxyConfiguration": { "useApifyProxy": True }
}
```

***

### 📈 Performance

#### **Processing Speed**

- Sites are processed one after another with a 1 second pause between them
- One request per site in the best case, up to four if fallback pages are needed (plus one for the parent site on known brands)
- Each request times out after 20 seconds

#### **Resource Usage**

- Memory: Low, since no browser instance is launched
- Network: Lightweight HTML requests only
- Proxy: Optional Apify Proxy, with a direct retry on failure

***

### ⚠️ Important Notes

#### **Legal & Compliance**

- **Public Pages Only**: The Social Media Finder reads public web pages without logging in
- **Privacy**: LinkedIn `in/` links and similar personal profile links can be personal data under laws such as GDPR. Use them only for legitimate purposes.
- **Outreach Rules**: If you use results for marketing or outreach, follow anti-spam, telemarketing, and platform terms of service
- **robots.txt**: The Social Media Finder does not check robots.txt, so respect each site's terms
- **Legal**: Not legal advice

#### **Data Quality**

- **One Link per Platform**: If several links for the same platform are found, only one is returned, and which one is not guaranteed. Check the result if a site lists multiple accounts.
- **Parent Brand Fallback**: For `chatgpt.com`, `claude.ai`, and `gemini.google.com`, if no social links are found on the site, the Social Media Finder uses the links from `openai.com`, `anthropic.com`, and `google.com`. In those cases the record shows the **parent company's** accounts, not accounts of the app itself.
- **Link Filter Can Skip Real Profiles**: The filter removes any link containing words such as `share`, `login`, `help`, `about`, `press`, `search`, `static`, `terms`, `privacy`, or `settings`. A real profile whose username contains one of these words is skipped.
- **Static HTML Only**: The Social Media Finder does not run JavaScript. Links added to the page by JavaScript after loading may be missed unless they also appear in the page source.
- **Fallback Pages**: `/about`, `/contact`, and `/terms` are checked only when the home page has no social links at all.
- **Failed Fetches**: If a site cannot be fetched (blocked, timed out, or too short a response), its record is still pushed with an empty title and description and `null` for every platform. A `null` means "not found", not "no account exists".
- **Not Verified**: Links are matched by URL pattern. The Social Media Finder does not check that a profile exists or belongs to the site.
- **Log Messages**: The "Found N social platform(s)" line is logged for every site, including ones that returned zero.

#### **Best Practices**

- Use the official site URL (not a redirecting or shortened link)
- Spot-check results for sites that list several accounts
- Run a small batch first to see how well the Social Media Finder works for your sites
- Treat the parent brand fallback results with care

***

### 📄 License & Legal

**Terms of Use:**

- Use for legitimate research, enrichment, and outreach purposes
- Respect the terms of service of the websites and platforms involved
- Do not use for spam, harassment, or unlawful data collection
- Use data responsibly and in compliance with applicable privacy laws

**Disclaimer:**
Social Media Finder is provided as-is for research purposes. Users are responsible for compliance with all applicable laws and the terms of the websites and platforms involved. This is not legal advice.

***

### ⚖️ Social Media Finder Excellence

Why choose this **Social Media Finder**:

- ✅ Finds profile links on 10 social platforms
- ✅ Scans link tags and full page source
- ✅ Fallback pages when the home page has no links
- ✅ Filters out share buttons, login links, and embeds
- ✅ One clean record per website
- ✅ Production-ready Social Media Finder code

# Actor input Schema

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

List of website URLs to extract social media links from.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `crawlResults` (type: `string`):

No description

## `overview` (type: `string`):

No description

# 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": [
        "https://apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datapilot/social-media-finder").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": ["https://apify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("datapilot/social-media-finder").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": [
    "https://apify.com"
  ]
}' |
apify call datapilot/social-media-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datapilot/social-media-finder"
        }
    }
}
```

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/VxNmsINBhATbOIHkD/builds/EKQd8wIg1bx6vrbdq/openapi.json
