# LinkedIn Post Comments & Reactions Scraper (No Cookies) (`alexmorain/linkedin-post-comments-reactions-scraper`) Actor

Comments, replies and reactions of LinkedIn posts in one run: author name, headline, profile URL, date, text. Post URLs or a profile's recent posts, new-only watch, webhook. No cookies, no LinkedIn account. From $0.80 per 1,000 rows.

- **URL**: https://apify.com/alexmorain/linkedin-post-comments-reactions-scraper.md
- **Developed by:** [Alexis Morain](https://apify.com/alexmorain) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 linkedin comments

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 Comments & Reactions Scraper (No Cookies)

Get every comment, reply and reaction of a LinkedIn post in one run, with the name, headline, profile URL and URN of each person, the date and text of each comment, and the reaction type. Give post URLs, or give a profile or a company page and read the engagement of its latest posts. No cookies, no LinkedIn account, no proxy to configure. A watch mode returns only what is new since your last run.

### What does LinkedIn Post Comments & Reactions Scraper do?

This Actor is a LinkedIn comments scraper and a LinkedIn reactions scraper in one. For each post it returns one row per comment (replies included), and one row per reaction (like, celebrate, support, love, insightful, funny). Each row names the person with their headline, profile URL and stable profile URN, so you can see who engages with a post and match the same people across posts.

It reads public data through an API, not a browser: runs are fast and cheap, and nothing in your LinkedIn account is touched. It does not post, like or comment, and it does not read private profiles or private groups.

### Why use it?

- Comments and reactions in the same run. Most scrapers do one or the other, so you pay for two runs, two inputs and two datasets.
- Watch mode. Turn on "New rows only" and schedule the Actor: each run returns only the comments and reactions that were not delivered before, and you are not billed for the rest. Add a webhook URL and the summary goes to Slack, Discord, Make, Zapier or n8n.
- Latest posts of a profile or a company. Give `linkedin.com/in/...` or `linkedin.com/company/...` and a number of posts: the Actor lists them and reads the engagement of each.
- Past the usual walls. A post with 12,000 reactions is read up to LinkedIn's own limit of 5,000 reactions per post, and the exact limit is documented below instead of discovered after the run.
- Filters that save money. Keep only the reaction types you care about (for example "Insightful" and "Support") and the rest is not billed.
- Apify platform: schedules, API, webhooks, integrations, run history and monitoring.

Typical uses: find the people who engage with a competitor's posts, build a lead list from the commenters of a thought-leadership post, measure the reaction mix of your own content, follow the reply threads of a launch, feed a CRM or an outbound tool with warm contacts, or monitor a company page and get alerted on new comments.

### What data can it extract?

Every row has a `type`: `comment` or `reaction`. Replies are comment rows with `isReply: true`.

| Field | Rows | Description |
|---|---|---|
| `type` | all | `comment` or `reaction` |
| `postUrn`, `postUrl` | all | The post the row belongs to |
| `authorName` | all | Name of the person (or company page) who commented or reacted |
| `authorHeadline` | all | Headline shown under the name |
| `authorProfileUrl` | all | LinkedIn profile URL |
| `authorUrn` | all | Stable profile identifier (`urn:li:fsd_profile:...`) |
| `authorType` | all | `profile` or `company` |
| `commentId`, `commentUrl` | comments | Id of the comment and a link to it |
| `parentCommentId`, `isReply` | comments | Set on replies, with the id of the comment they answer |
| `text` | comments | The text of the comment |
| `createdAt` | comments | Publication time, ISO 8601 UTC |
| `reactionCount` | comments | Number of reactions on the comment itself |
| `replyCount` | comments | Number of replies the comment announces |
| `isPinned`, `isEdited`, `isPostAuthor` | comments | Pinned by the author, edited, written by the post author |
| `reactionType` | reactions | `LIKE`, `PRAISE` (celebrate), `EMPATHY` (support), `APPRECIATION` (love), `INTEREST` (insightful), `ENTERTAINMENT` (funny) |
| `scrapedAt` | all | When the row was read |

LinkedIn does not date reactions, so reaction rows have no date. The Actor does not return emails or phone numbers.

### How to scrape LinkedIn post comments and reactions

1. Open the Actor and paste your post links in "Post URLs or URNs", one per line. A post URL (`https://www.linkedin.com/posts/...`), a feed URL (`https://www.linkedin.com/feed/update/urn:li:activity:...`) or a bare URN (`urn:li:activity:...`, `urn:li:share:...`, `urn:li:ugcPost:...`) all work.
2. Choose what to collect: comments and reactions, comments only, or reactions only.
3. Set the limits: maximum comments per post, maximum reactions per post, and a maximum for the whole run.
4. Optional: keep only some reaction types, switch replies off, or fill "Profiles or company pages" to read the latest posts of an account instead of listing post links.
5. Click Start, then download the dataset as JSON, CSV or Excel, or read it by API.

To monitor a post or an account: tick "New rows only", pick a "Watch name", set a schedule (every day is a good start) and add a webhook URL if you want a message when the run ends.

### How much does it cost to scrape LinkedIn comments and reactions?

You pay per row delivered, plus a small fee at the start of each run. The price per 1,000 rows goes down with your Apify plan.

| Event | Free and Bronze | Silver | Gold and above |
|---|---|---|---|
| Comment or reply | $1.50 per 1,000 | $1.10 per 1,000 | $0.80 per 1,000 |
| Reaction | $1.50 per 1,000 | $1.10 per 1,000 | $0.80 per 1,000 |
| Actor start | $0.002 | $0.002 | $0.002 |

Examples at the Free and Bronze price: a post with 300 comments and 800 reactions costs about $1.65; 20 recent posts of a company page with the default limits (100 comments and 100 reactions per post) cost at most $6.00; a daily watch on 10 posts that gather 50 new rows each per day costs about $0.75 per day.

What is not billed: rows removed by your reaction type filter, rows skipped by the new-only watch, posts that cannot be found, and any row the Actor could not read. Set "Maximum cost per run" in the Apify run options and the Actor stops cleanly when the limit is reached, keeping what it already delivered. On the Apify Free plan, runs have a small daily data allowance: the Actor stops with a clear message when it is used up, and any paid plan lifts it.

### Input

See the Input tab for every option. The ones worth a note:

- `posts`: post URLs or URNs. Duplicates are removed, unrecognized lines are skipped with a warning.
- `sourceUrls`: profile or company page URLs. With `postsPerSource` (1 to 50), the Actor reads the engagement of each account's latest posts. A post listed twice is read once.
- `collect`: `both`, `comments` or `reactions`.
- `includeReplies`: replies come with their parent comment, up to 10 per thread, and count as comments.
- `reactionTypes`: keep only these types. Empty keeps all.
- `maxCommentsPerPost`, `maxReactionsPerPost`, `maxItems`: the per-post and global limits.
- `onlyNew` and `watchName`: the watch memory, stored in your own Apify account.
- `webhookUrl`: receives a summary by POST when the run ends. The URL is never written to the logs.

Example input:

```json
{
  "posts": [
    "https://www.linkedin.com/posts/satyanadella_highlights-from-my-opening-of-the-ignite-activity-7528647007431720960-KV0i",
    "urn:li:activity:7508596155145043968"
  ],
  "collect": "both",
  "includeReplies": true,
  "maxCommentsPerPost": 500,
  "maxReactionsPerPost": 1000
}
```

Example input for the latest posts of an account, with a watch:

```json
{
  "sourceUrls": ["https://www.linkedin.com/company/microsoft/"],
  "postsPerSource": 10,
  "collect": "comments",
  "onlyNew": true,
  "watchName": "microsoft-comments",
  "webhookUrl": "https://hooks.slack.com/services/..."
}
```

### Output

Download the dataset in various formats such as JSON, HTML, CSV or Excel. A comment row:

```json
{
  "type": "comment",
  "postUrn": "urn:li:activity:7508596155145043968",
  "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7508596155145043968/",
  "commentId": "7508597840642928641",
  "parentCommentId": null,
  "isReply": false,
  "text": "Bringing tech, government, and academia under one roof is how true innovation happens",
  "createdAt": "2026-09-23T18:47:08.212Z",
  "reactionCount": 6,
  "replyCount": 0,
  "authorName": "Anita Solomon",
  "authorHeadline": "Building Safer, Smarter, and More Human-Centered Healthcare",
  "authorProfileUrl": "https://www.linkedin.com/in/anita-solomon-813a12237",
  "authorUrn": "urn:li:fsd_profile:ACoAADsPiw8B6i4DHS5b2xs5vZPPNVp5ehmrm7A",
  "authorType": "profile",
  "scrapedAt": "2026-11-18T12:00:00Z"
}
```

A reaction row:

```json
{
  "type": "reaction",
  "postUrn": "urn:li:activity:7508596155145043968",
  "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7508596155145043968/",
  "reactionType": "LIKE",
  "authorName": "Mahinder Ganner",
  "authorHeadline": "Algemeen directeur bij Microsoft",
  "authorProfileUrl": "https://www.linkedin.com/in/mahinder-ganner-574560173/",
  "authorUrn": "urn:li:fsd_profile:ACoAACkx1SgBixzgT8wrHXR2yZA2GHJXPNcP6ew",
  "authorType": "profile",
  "scrapedAt": "2026-11-18T12:00:00Z"
}
```

The run also writes a `SUMMARY` record in the key-value store: for each post, the rows delivered next to the counts LinkedIn announces, the posts that were not found, and the stop reason if the run was cut short.

#### Use it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("alexmorain/linkedin-post-comments-reactions-scraper").call(run_input={
    "posts": ["urn:li:activity:7508596155145043968"],
    "collect": "comments",
    "maxCommentsPerPost": 200,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["authorName"], "|", row["authorHeadline"], "|", row["text"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('alexmorain/linkedin-post-comments-reactions-scraper').call({
    posts: ['urn:li:activity:7508596155145043968'],
    collect: 'reactions',
    reactionTypes: ['INTEREST', 'EMPATHY'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'reactions');
```

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~linkedin-post-comments-reactions-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"posts": ["urn:li:activity:7508596155145043968"], "maxCommentsPerPost": 50, "maxReactionsPerPost": 50}'
```

### Limits you should know

These were measured on a post with 12,321 reactions and 1,625 comments, and they are LinkedIn's limits, not the Actor's.

- Reactions: LinkedIn lists at most 5,000 reactions per post. On the test post the Actor returned 4,928 unique reactions (the list repeats about 1.4% of its entries, and the Actor removes them) out of 12,321 announced. A reaction type filter does not go further: it is applied to the same list.
- Comments: the whole comment list is read until LinkedIn stops serving pages. On the test post that was 1,333 comments plus 113 replies, 1,446 rows, against 1,625 announced. LinkedIn's counter includes comments that its list does not serve.
- Replies: they come with their parent comment, up to 10 per thread. A thread with more replies is returned with its first 10 and a `replyCount` that shows the rest.
- Reactions have no date and comments are not sorted by date, so "New rows only" reads each post in full and compares with its memory.
- A post that is deleted, private, or only visible to connections returns nothing and is reported as not found.
- A run reads about 20 rows per second: 6,000 rows take about 5 minutes. Memory 256 MB is enough.

### Tips

- Start small. The default limits (100 comments and 100 reactions per post) are meant for a first look. Raise them once you see the shape of the data.
- Match people across posts by `authorUrn`: it does not change when someone edits their headline.
- To build a lead list, collect comments and filter on `authorHeadline` in your spreadsheet or CRM. Commenters are warmer than reactors.
- To watch a company page cheaply, use `collect: "comments"`, `postsPerSource: 5` and a daily schedule.

### FAQ

#### Can I scrape LinkedIn comments without cookies or a LinkedIn account?

Yes. The Actor needs no cookies, no login and no proxy. Nothing about your own LinkedIn account is read or changed, and there is no risk for your account.

#### How do I get the likes on a LinkedIn post?

Set `collect` to `reactions`. Likes are the `LIKE` reaction type; the other types are celebrate, support, love, insightful and funny. Each row is a person with their headline and profile URL.

#### How do I export LinkedIn post comments to Excel or CSV?

Run the Actor, open the dataset and choose CSV or Excel in the export menu. One row per comment, replies included, with the author columns next to the text.

#### Can I get the replies to a comment?

Yes, replies are on by default and come with the parent comment, up to 10 per thread. They have `isReply: true` and the `parentCommentId` of the comment they answer.

#### Why does the number of comments differ from what LinkedIn shows?

LinkedIn's counter includes comments its list does not serve. The `SUMMARY` record shows both numbers for each post, so the gap is visible and not a guess.

#### Can I monitor a post for new comments?

Yes. Tick "New rows only", keep the same "Watch name" and schedule the run. Each run delivers only the rows not delivered before and bills only those.

#### Does it work with a company page?

Yes, give the page URL in "Profiles or company pages" and the number of latest posts to read.

#### Can I use it as a LinkedIn API?

You can call it by API (see the code examples) and read the dataset in JSON. It is not the official LinkedIn API and it needs no LinkedIn developer app.

#### Is it legal to scrape LinkedIn comments and reactions?

The Actor reads only what LinkedIn shows publicly on a post. Public does not mean free of rules, though. Names and headlines of people are personal data under the GDPR in the European Union and under similar laws elsewhere. Once you download the rows, you are the data controller, not this Actor and not Apify.

In practice:

- Have a legitimate reason and write it down, for example B2B prospecting where the offer is relevant to the person's role.
- Tell people where you got their details, at the latest in your first message.
- Give an easy way to opt out, honor it right away, and keep a suppression list so a later run does not bring them back.
- Delete data you no longer use, and answer access or deletion requests.
- Check LinkedIn's terms for your use case.

The Actor does not collect emails or phone numbers. This is not legal advice: check with your counsel before a large campaign.

#### Support

Something wrong, missing or surprising? Open an issue on the Issues tab of the Actor page, with the run link. I answer there. The API tab has everything you need for programmatic access.

### Guide and use cases

Use cases for outbound and automation, the output fields, pricing and common questions are on the [LinkedIn Post Comments & Reactions Scraper page](https://alexis.morain.fr/en/scrapers/linkedin-post-comments-reactions-scraper/) of my site. The [Social content family page](https://alexis.morain.fr/en/scrapers/families/social-content/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

## `posts` (type: `array`):

One LinkedIn post per line: a post URL (<code>linkedin.com/posts/...</code> or <code>linkedin.com/feed/update/urn:li:activity:...</code>) or a URN (<code>urn:li:activity:...</code>, <code>urn:li:share:...</code>, <code>urn:li:ugcPost:...</code>). Duplicates are removed. Leave empty if you only use the profile and company field below.

## `sourceUrls` (type: `array`):

Optional. Profile URLs (<code>linkedin.com/in/...</code>) or company page URLs (<code>linkedin.com/company/...</code>). The Actor lists their most recent posts and reads the engagement of each. Combined with the post list above, a post is read once.

## `postsPerSource` (type: `integer`):

How many of the most recent posts to read for each profile or company page.

## `collect` (type: `string`):

Comments (with replies if you keep them on), reactions, or both in the same run. Rows are billed per comment and per reaction.

## `includeReplies` (type: `boolean`):

Replies come with their parent comment (up to 10 per thread) and are billed as comments. Each reply row has <code>isReply: true</code> and the <code>parentCommentId</code>.

## `reactionTypes` (type: `array`):

Keep only these reaction types. Empty keeps all. The filter is applied after reading: it saves you money (filtered rows are not billed) but it does not reach further than the all-types list, which LinkedIn serves up to 5,000 reactions per post.

## `maxCommentsPerPost` (type: `integer`):

Stops reading a post after this many comment rows (replies included).

## `maxReactionsPerPost` (type: `integer`):

Stops reading a post after this many reaction rows. LinkedIn lists at most 5,000 reactions per post, even when the post shows more.

## `maxItems` (type: `integer`):

Total comment and reaction rows for the whole run. The run stops cleanly when it is reached.

## `onlyNew` (type: `boolean`):

Deliver only the comments and reactions not delivered by an earlier run with the same watch name. Rows already delivered are skipped and not billed. The Actor still reads each post in full, because LinkedIn does not list comments by date.

## `watchName` (type: `string`):

Name of the memory used by the new-only option, kept in your own Apify account. Use one name per monitoring job.

## `webhookUrl` (type: `string`):

Optional. A summary of the run (rows delivered, posts read) is sent here with a POST when the run ends. Works with Slack, Discord, Make, Zapier or n8n. The URL is never logged.

## Actor input object example

```json
{
  "posts": [
    "urn:li:activity:7508596155145043968"
  ],
  "sourceUrls": [],
  "postsPerSource": 5,
  "collect": "both",
  "includeReplies": true,
  "reactionTypes": [],
  "maxCommentsPerPost": 20,
  "maxReactionsPerPost": 20,
  "maxItems": 10000,
  "onlyNew": false,
  "watchName": "default"
}
```

# Actor output Schema

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

All comment and reaction rows in the default dataset.

## `summary` (type: `string`):

Posts read, not found or failed; comment and reaction rows delivered; announced counts per post; stop reason.

# 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 = {
    "posts": [
        "urn:li:activity:7508596155145043968"
    ],
    "maxCommentsPerPost": 20,
    "maxReactionsPerPost": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/linkedin-post-comments-reactions-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 = {
    "posts": ["urn:li:activity:7508596155145043968"],
    "maxCommentsPerPost": 20,
    "maxReactionsPerPost": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/linkedin-post-comments-reactions-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 '{
  "posts": [
    "urn:li:activity:7508596155145043968"
  ],
  "maxCommentsPerPost": 20,
  "maxReactionsPerPost": 20
}' |
apify call alexmorain/linkedin-post-comments-reactions-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexmorain/linkedin-post-comments-reactions-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/wmUeuWM3GVW8YI88M/builds/kGB7yjCIdi15blIC7/openapi.json
