# LinkedIn Post Engagers Scraper (`fanndev/linkedin-post-engagers-scraper`) Actor

Turn the people who engaged with a LinkedIn post into a lead list: name, headline, profile URL and their actual comment. Commenters need no login at all; reactor identities are read with your own li_at session cookie when you supply one.

- **URL**: https://apify.com/fanndev/linkedin-post-engagers-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

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

## LinkedIn Post Engagers Scraper

Turn the people who engaged with a LinkedIn post into a lead list: name, headline, profile URL and — the part that actually matters — the comment they wrote.

Someone who took the trouble to comment on a post about your category has told you what they think about it. That is a warmer opening than any list of job titles, and it is the reason this actor keeps comment text as a first-class field instead of dropping it.

### What you get, and what LinkedIn holds back

Be clear about this before you buy, because it decides whether this actor is useful to you:

| | Published to logged-out visitors | Needs your `li_at` cookie |
|---|---|---|
| **Commenters** — name, profile URL, comment text, relative time | ✅ Yes | — |
| **Commenter headline** | ⚠️ Sometimes (roughly 1 in 8) | — |
| **Reaction and comment totals**, reaction-type mix | ✅ Yes | — |
| **Reactor identities** — who liked it | ❌ No | ✅ Yes |
| Employer, location, follower count per engager | via profile enrichment | — |

LinkedIn publishes roughly the **first 8–10 comments** on a post's public page. A post with 111 comments will give you about 8 commenter rows plus the true total in `postComments`. The gap is visible in every row, on purpose: `postReactions` and `postComments` are always there so you can see exactly how much LinkedIn withheld rather than assuming you got everything.

If you need the full comment thread and the reactor list, supply a session cookie.

### Input

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/satyanadella_example-activity-7505114604155322368-bJb4",
    "urn:li:activity:7505114604155322368",
    "7505114604155322368"
  ],
  "includeCommenters": true,
  "includeReactors": false,
  "enrichProfiles": false,
  "maxEngagers": 500,
  "minDelaySeconds": 2,
  "maxDelaySeconds": 8
}
```

Post permalinks, `/feed/update/` links, `urn:li:activity:` values and bare numeric activity ids are all accepted and normalised to the same thing.

### Using a session cookie

Reactor identities are the only thing here that needs one. To get it: sign in to LinkedIn in your browser, open DevTools → Application → Cookies → `www.linkedin.com`, copy the **value** of `li_at`, and paste it into `sessionCookie`.

This actor never asks for your password and never signs in on your behalf. It sends the cookie you pasted, in that run, and nowhere else.

**The honest risk.** Scraping while signed in is against LinkedIn's User Agreement, and LinkedIn does restrict accounts for it. Three things reduce the odds, and this actor does or exposes all three:

- **Use a residential proxy in your own country.** LinkedIn weighs the exit IP against where your account normally signs in. An Apify datacenter IP is exactly the mismatch that gets a session flagged. The actor warns you in the log if you supply a cookie without a proxy.
- **Keep the caps low.** `maxEngagers` defaults to 500 for a reason. Long, greedy runs are what abuse scoring reacts to.
- **Leave the delays alone.** The 2–8 second randomised gap between page loads is not padding.

Use an account you would not mind losing.

### Rate gating, and why the delays exist

LinkedIn answers bursts with **HTTP 999** and a ~1.5 KB stub page. Measured on the guest surface: three back-to-back requests tripped it, and the same URLs answered 200 again after a four-second pause. It is per-IP and per-burst, not per-URL, and it is **not** a TLS fingerprint gate — a sweep of five browser fingerprints all returned 200 on the same page.

So the fix is patience, not evasion. The actor sleeps a random 2–8 seconds between page loads, backs off exponentially when it does meet the gate, and rotates among five browser fingerprints. If you see rate-gate warnings in the log, raise both delay bounds before you reach for anything else.

### Output

One `ENGAGER` row per person, one `POST` row per post, plus `NOTICE` rows where LinkedIn published nothing (comments disabled, very new post) and `ERROR` rows on failure. An empty result therefore always comes with a reason attached.

Names are split into `firstName` / `lastName` with pronouns, emoji hiring frames and credential suffixes (PhD, MBA, CFA) stripped — a mail merge that greets someone as "Hi Dr, PhD" is worse than no personalisation. Profile URLs have tracking parameters removed and country subdomains (`in.linkedin.com`, `id.linkedin.com`) folded onto `www`, so your CRM de-duplicates correctly.

```json
{
  "recordType": "ENGAGER",
  "fullName": "Marc Beierschoder",
  "firstName": "Marc",
  "lastName": "Beierschoder",
  "headline": "Most companies scale the wrong things",
  "profileUrl": "https://www.linkedin.com/in/marc-beierschoder",
  "engagementType": "COMMENT",
  "commentText": "One thing I'd add: observability tells us what the agent did...",
  "commentedAgo": "6d",
  "postUrl": "https://www.linkedin.com/posts/satyanadella_...",
  "postReactions": 836,
  "postComments": 111
}
```

### No email addresses

This actor does not guess email addresses. A fabricated `first.last@company.com` that bounces costs you your sending domain's reputation, which is a far more expensive mistake than a missing column. You get the name and the employer; put those through a verification tool that actually checks.

### Before you use this on people

The rows are real people, and in the EU, UK and similar jurisdictions they carry data-protection rights even though the data is public. Legitimate interest is a defensible basis for B2B outreach; it is not a blank cheque. Say where you got the data when you make contact, honour opt-outs, and do not mix this into a consumer marketing list. That is your obligation as the data controller, not the actor's.

### Related actors

- **LinkedIn Top Voice & Competitor Activity Monitor** — the content strategy behind the posts, no cookie needed.
- **LinkedIn Smart Job Description & Recruiter Extractor** — hiring signals, fully public.

# Actor input Schema

## `postUrls` (type: `array`):

The posts whose engagers you want. A post permalink (linkedin.com/posts/...-activity-7505114604155322368-abcd), a /feed/update/urn:li:activity:... link, a bare urn:li:activity:... or just the numeric activity id all work.

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

The same post links in the request-list format, for callers that already keep one.

## `includeCommenters` (type: `boolean`):

On by default and free: LinkedIn publishes the comment thread on the post's own public page, with each commenter's name, profile link and comment text. No login needed.

## `includeReactors` (type: `boolean`):

Requires a session cookie below. LinkedIn tells logged-out visitors HOW MANY people reacted and which reaction types were used, but never WHO - that list is only served to a signed-in session. Without a cookie this option is ignored and the run returns commenters only.

## `sessionCookie` (type: `string`):

Optional. Only needed for reactor identities. Copy the li_at cookie from a browser where you are already signed in to LinkedIn (DevTools > Application > Cookies > www.linkedin.com > li_at) and paste its value. This actor never asks for your password and never signs in on your behalf. Scraping while signed in is against LinkedIn's User Agreement and can get the account restricted - use an account you are willing to risk, and keep the run caps low.

## `enrichProfiles` (type: `boolean`):

Off by default. Adds current title, employer, location and follower count by loading each person's public profile - one extra page load per person. A post with 100 commenters becomes 100 extra requests, which is slower and meets LinkedIn's rate gate sooner.

## `maxEngagersPerPost` (type: `integer`):

Cap per post. LinkedIn's public page carries roughly the first 8-10 comments, so values above that only change anything when reactors are being read with a cookie.

## `maxEngagers` (type: `integer`):

Overall ceiling across every post. Keeping this modest is the single best protection for a session cookie: long, greedy runs are what LinkedIn's abuse scoring reacts to.

## `emitPostRecords` (type: `boolean`):

Write each post as its own POST row: author, text, publish date, reaction and comment totals, reaction-type mix and hashtags.

## `minDelaySeconds` (type: `integer`):

LinkedIn answers bursts with HTTP 999 and a near-empty page. A randomised gap between page loads is what keeps a run under that gate; this is the floor of that range.

## `maxDelaySeconds` (type: `integer`):

The ceiling of the randomised gap. Raise both bounds if you see rate-gate warnings in the log.

## `exportFormats` (type: `array`):

Besides the dataset, write ready-made files into this run's key-value store.

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

Optional for the logged-out path, strongly advised whenever you supply a session cookie. LinkedIn weighs the exit IP against where your account normally signs in, and an Apify datacenter IP is precisely the mismatch that gets a session flagged - pick RESIDENTIAL in your own country.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7505114604155322368"
  ],
  "includeCommenters": true,
  "includeReactors": false,
  "enrichProfiles": false,
  "maxEngagersPerPost": 100,
  "maxEngagers": 500,
  "emitPostRecords": true,
  "minDelaySeconds": 2,
  "maxDelaySeconds": 8,
  "exportFormats": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One ENGAGER row per person who engaged, one POST row per post, plus any NOTICE or ERROR rows explaining gaps.

# 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 = {
    "postUrls": [
        "https://www.linkedin.com/feed/update/urn:li:activity:7505114604155322368"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/linkedin-post-engagers-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 = { "postUrls": ["https://www.linkedin.com/feed/update/urn:li:activity:7505114604155322368"] }

# Run the Actor and wait for it to finish
run = client.actor("fanndev/linkedin-post-engagers-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 '{
  "postUrls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7505114604155322368"
  ]
}' |
apify call fanndev/linkedin-post-engagers-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fanndev/linkedin-post-engagers-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/dFMZb721wru5cS9ya/builds/OsYGqX7cZfJHMengT/openapi.json
