# Website Social Media Links Extractor (`data-done-right/social-links-extractor`) Actor

Extract social media links from websites in bulk: Facebook, Instagram, LinkedIn, X, YouTube, TikTok and more. One row per site with a column per platform. Reads only the websites' own pages, never the social networks. Pay per website with links found.

- **URL**: https://apify.com/data-done-right/social-links-extractor.md
- **Developed by:** [Data Done Right](https://apify.com/data-done-right) (community)
- **Categories:** Lead generation, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 website with social links founds

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

## Website Social Media Links Extractor

**Extract social media links from websites in bulk.** Give it a list of company websites and it returns the Facebook, Instagram, LinkedIn, X (Twitter), YouTube, TikTok and other profile links each site publishes, as one row per website with one column per platform.

> **What this does NOT do.** It never opens Facebook, LinkedIn, Instagram, X or any other social network: no profile scraping, no follower counts, no posts, no emails from profiles, no login. It only reads the public pages of the websites you list and recognises profile links in their HTML (links, plus the `sameAs` list some sites publish in their structured data). Links that a site builds with JavaScript after loading are not seen, because no browser is started. It does not guess a company's profile from its name: if the site does not link to a profile, the answer is `not_found`, not a guess.

**What you get**

- One row per website, in input order: `status`, one column per platform (`facebook`, `instagram`, `linkedin`, `twitter`, `youtube`, `tiktok`, `pinterest`, `github`, `threads`, `whatsapp`, `telegram`, `snapchat`, `discord`, `reddit`, `twitch`, `vimeo`, `bluesky`) and a plain-language `reason`.
- Clean profile URLs: no tracking parameters, no `www`, no trailing slash. Share buttons, post links, video links and login links are ignored.
- Evidence for each link in `socialProfiles`: the page it was found on, on how many pages it appeared, whether the site declares it in its structured data, and the kind of page (company, channel, account...).

Typical use: enrich a CRM or lead list with social profiles, audit which networks competitors are on, or check that your own site links to the right accounts. Available through the Apify API, CSV/Excel/JSON export, and as a tool for AI agents (MCP).

### How to extract social media links from a list of websites

1. Open the Actor and paste your websites in **Websites (domains or URLs)**, one per line. Domains (`acme.com`) and URLs (`https://www.acme.com/about`) both work; URLs are cut back to the site root.
2. Leave the defaults. Each site is read on 3 pages (homepage plus contact, about or team pages), which covers the footer links of almost every site.
3. Click **Start**. Sites are read in parallel; a 3-site list took about 7 seconds in a local test, and larger lists scale with the number of sites and the delay setting.
4. Download the dataset as CSV, Excel or JSON. The **Overview** view shows one line per site with the main platforms; **All profile links with details** shows every link with its evidence.

### How to find only LinkedIn company pages (or any other platform)

Open **Only these platforms** and choose `LinkedIn`. Everything else is ignored, and the `linkedin` column holds the company page each site links to. Links to personal LinkedIn profiles (`/in/...`) are left out unless you switch on **Include personal LinkedIn profiles**, because a blog post that links to its author is not the company's page.

### How to tell the company's own profile from other links

A site can link to several profiles of the same platform, for example a partner or a community account. For every platform the Actor puts the best-supported link in the platform column and lists all of them in `socialProfiles` with `primary: true/false`. The best-supported link is the one found on the most pages, with a bonus when the site lists it in its structured data (`sameAs`). Use `pagesSeen` to judge a link: one seen on 3 of 3 pages is the site's own; one seen on a single help page may be a recommended community.

### How to use the social links of a website in your own workflow

Read the dataset with the API, or connect the Actor in n8n, Make or Zapier (see below). The platform columns are plain URLs, so they drop straight into a CRM import, a spreadsheet or a follow-up Actor that you point at the profiles you are allowed to use.

### Input

```json
{
  "websites": ["python.org", "mozilla.org", "apify.com"],
  "pagesPerWebsite": 3
}
```

| Field | Default | What it does |
|---|---|---|
| `websites` | 3 sample sites | Websites to read: domains or URLs, one per line. Required. |
| `maxWebsites` | 1000 | Maximum different websites read in this run (1 to 100,000). The rest get a free row with status `invalid`. Caps the cost. |
| `platforms` | empty (all 17) | Keep only these platforms. |
| `includePersonProfiles` | false | Also return personal LinkedIn `/in/` profile links. |
| `pagesPerWebsite` | 3 | Pages read per website (1 to 10): homepage, then contact / about / team / press pages. |
| `concurrency` | 10 | Websites read in parallel (1 to 50). One site is always read one request at a time. |
| `delaySecs` | 1 | Pause between two requests to the same site (0 to 10). A longer `Crawl-delay` in robots.txt wins. |
| `timeoutSecs` | 10 | Time allowed for one request (2 to 30). |
| `proxyConfiguration` | no proxy | Optional Apify Proxy. Does not override robots.txt or bot protection. |

### Output

Real output for `python.org` from a local run (the other platform columns are `null` and are shortened here):

```json
{
  "inputIndex": 0,
  "input": "python.org",
  "domain": "python.org",
  "status": "found",
  "reason": "Found 3 social profile link(s) on 3 page(s).",
  "pagesChecked": 3,
  "platformCount": 3,
  "linkCount": 3,
  "platforms": ["linkedin", "twitter", "reddit"],
  "socialLinks": {
    "linkedin": "https://linkedin.com/company/python-software-foundation",
    "twitter": "https://twitter.com/ThePSF",
    "reddit": "https://reddit.com/r/learnpython"
  },
  "facebook": null,
  "instagram": null,
  "linkedin": "https://linkedin.com/company/python-software-foundation",
  "twitter": "https://twitter.com/ThePSF",
  "youtube": null,
  "reddit": "https://reddit.com/r/learnpython",
  "socialProfiles": [
    {
      "platform": "linkedin",
      "url": "https://linkedin.com/company/python-software-foundation",
      "kind": "company",
      "primary": true,
      "pagesSeen": 3,
      "inStructuredData": false,
      "foundOn": "https://www.python.org/"
    },
    {
      "platform": "reddit",
      "url": "https://reddit.com/r/learnpython",
      "kind": "subreddit",
      "primary": true,
      "pagesSeen": 1,
      "inStructuredData": false,
      "foundOn": "https://www.python.org/about/help/"
    }
  ],
  "charged": true
}
```

Note the Reddit link: `python.org` recommends that community on a help page. It is a real link the site publishes, but `pagesSeen: 1` tells you it is not a profile of the site itself.

Statuses:

| `status` | Meaning | Charged |
|---|---|---|
| `found` | At least one social profile link was found. | yes |
| `not_found` | The site was read and contains no profile link in its HTML. | no |
| `blocked` | robots.txt forbids reading, the site refuses automated access (HTTP 401/403/429/503 or a bot-check page), or the domain points to an internal address. Nothing is worked around. | no |
| `unreachable` | No usable answer (DNS failure, timeout, TLS error). | no |
| `invalid` | Not read: social network or large platform, free-mail address, internal name, not a domain, duplicate of an earlier input, or beyond `maxWebsites`. | no |

The `SUMMARY` record has the counts by status, the number of charged websites and whether the spending limit was reached.

### How much does it cost

One event, **`website-with-social-links`: $0.0015 per website where at least one social profile link was found** ($1.50 per 1,000). Websites with status `not_found`, `blocked`, `unreachable` or `invalid` are free. There is no start fee.

| Websites in your list | Cost if all have links | Cost if 70% have links |
|---|---|---|
| 1,000 | $1.50 | $1.05 |
| 10,000 | $15.00 | $10.50 |
| 100,000 | $150.00 | $105.00 |

Set `maxWebsites` or a spending limit on the run to cap the bill; the Actor stops cleanly when the limit is reached and says so in the run status. Platform usage (compute) is included in the event price on pay-per-event pricing.

### Use cases

- Add Facebook, LinkedIn and Instagram links to a CRM or lead list that only has website domains.
- Map which social networks a list of competitors uses, and which ones they ignore.
- Collect LinkedIn company pages for an outreach or recruiting list.
- Check that every site in a portfolio links to the correct, current brand accounts.
- Prepare a clean list of brand profile URLs for a social media management tool.

### FAQ

**Does it scrape Facebook, LinkedIn or Instagram?** No. It never sends a request to a social network. It reads the website you give it and recognises profile links by their URL.

**Why is a platform `null` although the company is on it?** The site does not link to it in its static HTML, or the link is added by JavaScript. The Actor does not search the networks for the company, so a company profile that its own site never mentions is not returned.

**Can the main link be wrong?** Yes. Sites sometimes link to partner or community accounts. The platform column shows the best-supported link and `socialProfiles` shows all of them with `pagesSeen`, so you can check. Personal LinkedIn profiles are excluded by default for the same reason.

**What counts as a profile link?** A company page, channel, handle or invite: `linkedin.com/company/acme`, `youtube.com/@acme`, `instagram.com/acme`, `discord.gg/code`. Share buttons, single posts, videos, hashtags, login pages and bare network homepages are ignored.

**What about robots.txt and bot protection?** robots.txt is read first for every site and obeyed; a site that disallows reading is reported as `blocked`. The Actor identifies itself with its own user agent, keeps a delay between requests and does not try to get around bot protection, CAPTCHAs or logins.

**How many pages does it read?** `pagesPerWebsite` (default 3, maximum 10): the homepage plus pages found through its links that look like contact, about, team or press pages. Footer links are normally on every page, so more pages rarely add profiles; they mainly help sites whose footer differs per page.

### Use with the Apify API, MCP, n8n and Make

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("YOUR_USERNAME/social-links-extractor").call(run_input={"websites": ["python.org", "mozilla.org"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["domain"], row["status"], row["linkedin"], row["twitter"])
```

JavaScript:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('YOUR_USERNAME/social-links-extractor').call({ websites: ['python.org', 'mozilla.org'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.domain, r.status, r.linkedin, r.twitter]));
```

In n8n, Make or Zapier use the Apify "Run Actor" module, pass `websites` (an array of strings) and read the dataset items. For AI agents the Actor is available through the Apify MCP server; the only required input is the `websites` array.

### Related tools

- Domain List Email Extractor: Emails & Phones from Websites (emails and phone numbers from the same list of sites)
- Contact Page Finder: Find Contact Page & Contact Form URLs (the contact page of each site)
- Company Logo & Favicon Finder: Download Logos from Any Website (logos to go with the profiles)

# Actor input Schema

## `websites` (type: `array`):

The websites to read, one per line: domains or URLs, which are cut back to the site root. Example: acme.com or https://www.example.org/about. Social-network, free-mail and internal addresses are skipped with a reason, and every input still gets a result row.

## `maxWebsites` (type: `integer`):

Hard cap on how many different websites are read in this run (example: 500). The rest get a free row with status invalid and a reason. Also caps your cost.

## `platforms` (type: `array`):

Optional. Leave empty to look for all 17 supported platforms. Choose some to ignore the others, for example only LinkedIn and Instagram.

## `includePersonProfiles` (type: `boolean`):

Off (default): only company, school and showcase pages are kept, so a link to an author's or founder's personal /in/ profile is not returned. Turn on to also return personal LinkedIn profile links that the site publishes.

## `pagesPerWebsite` (type: `integer`):

Pages requested per website (example: 3): the homepage, then contact, about, team or press pages found through its links and common paths. Social links are usually in the footer of every page, so 3 is enough for most sites. robots.txt requests are not counted.

## `concurrency` (type: `integer`):

How many different websites are read at the same time (example: 10). One website is always read one request at a time.

## `delaySecs` (type: `integer`):

Pause between two requests to the same website, in seconds. A longer Crawl-delay in the site's robots.txt (up to 10 s) wins.

## `timeoutSecs` (type: `integer`):

Time allowed for one page request, redirects included, in seconds. Slow or unreachable sites get status unreachable.

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

Optional. Usually not needed: requests come from the Apify platform. A proxy can help with sites that block data-center IPs, but it does not override robots.txt or bot protection.

## Actor input object example

```json
{
  "websites": [
    "python.org",
    "mozilla.org",
    "apify.com"
  ],
  "maxWebsites": 1000,
  "includePersonProfiles": false,
  "pagesPerWebsite": 3,
  "concurrency": 10,
  "delaySecs": 1,
  "timeoutSecs": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One item per input website: status, one column per social platform, and all profile links with details (all result items of this run, as JSON, CSV, Excel and more).

## `records` (type: `string`):

Key-value store records: the run summary (SUMMARY: counts by status, charged websites, spending-limit flag).

# 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 = {
    "websites": [
        "python.org",
        "mozilla.org",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("data-done-right/social-links-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 = { "websites": [
        "python.org",
        "mozilla.org",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("data-done-right/social-links-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 '{
  "websites": [
    "python.org",
    "mozilla.org",
    "apify.com"
  ]
}' |
apify call data-done-right/social-links-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-done-right/social-links-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/qZB68alQ2EHhyUdTj/builds/0g1ZFxLA0nIjo1VVM/openapi.json
