# LinkedIn Post Comments Scraper (No Cookies, Bulk) (`pratikdani/linkedin-post-comments-scraper`) Actor

Export all comments from LinkedIn posts without cookies or a LinkedIn account. Get each commenter's name, headline and profile URL, plus comment text, date, reaction and reply counts. Turn post engagement into leads. Bulk post URLs.

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

## Pricing

from $1.20 / 1,000 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/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 Scraper (No Cookies, Bulk)

Export **every comment on LinkedIn posts**: who commented, their headline and profile URL, the comment text, when it was posted, and its reactions and replies. No LinkedIn account or cookies needed.

Use it to **export LinkedIn comments** to CSV, Excel or JSON: scrape LinkedIn comments from any post and turn commenters into a lead list.

People who comment on a post about your topic, product or competitor are warm leads. This Actor turns them into a list you can work with.

### What can this LinkedIn comments scraper do?

- **Bulk posts:** add as many post URLs as you like; they run in parallel.
- **Every comment, not just the first few.** The Actor pages through all of them (up to 10,000 per post), or stops at the number you set.
- **Most recent or most relevant first.**
- **Any post URL format:** `linkedin.com/posts/...`, `linkedin.com/feed/update/urn:li:activity:...` and `lnkd.in` short links.
- **No duplicate charges.** Every comment is returned, and charged, once per run.
- **Posts with no comments, and posts that fail, are free.** The reason is saved in the `FAILED_INPUTS` record.

### What data do you get?

| Field | Example |
| --- | --- |
| Commenter name, headline, profile or page URL | Jane Doe, VP Sales at Example Corp |
| Whether the commenter is the post's author | false |
| Comment text and mentions | Great breakdown! We saw the same... |
| Posted at | 2026-11-30T15:16:32Z |
| Reactions on the comment, reply count | 4 reactions, 1 reply |
| Pinned / edited flags | false |
| Comment link and id | https://www.linkedin.com/feed/update/...?commentUrn=... |
| Post it belongs to | the post URL you gave |

Want the people who reacted too? Use our [LinkedIn Post Reactions Scraper](https://apify.com/pratikdani/linkedin-post-reactions-scraper). To find posts to scrape, use the [LinkedIn Post Search Scraper](https://apify.com/pratikdani/linkedin-post-search-scraper) or the [LinkedIn Profile Posts Scraper](https://apify.com/pratikdani/discover-linkedin-people-posts).

### How to use it

1. Paste one or more **post URLs**, one per line.
2. Choose **Max comments per input** (100 by default; 0 means all).
3. Pick the sort order.
4. Click **Start** and download as JSON, CSV or Excel, or send the commenters to your CRM, Clay, Make, Zapier or n8n.

### Input example

```json
{
  "postUrls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000",
    "https://www.linkedin.com/posts/janedoe-example_ai-sales-activity-7500000000000000001-AbCd"
  ],
  "maxItems": 0,
  "sortOrder": "recent"
}
```

### Output example

```json
{
  "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000",
  "id": "7500000000000000099",
  "text": "Great breakdown! We saw the same thing in our pipeline last quarter.",
  "times": "2026-11-30T15:16:32.073Z",
  "commenter": {
    "title": "Jane Doe",
    "subtitle": "VP Sales at Example Corp",
    "navigation_url": "https://www.linkedin.com/in/janedoe-example",
    "is_post_author": false
  },
  "reactions_count": 4,
  "replies_count": 1,
  "pinned": false,
  "edited": false,
  "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000?commentUrn=..."
}
```

### How much does it cost?

You pay per comment returned, with lower prices on higher Apify plans; see the **Pricing** tab. Posts with no comments and posts that fail are never charged.

**Free plan:** Apify free-plan users can scrape up to 1,000 comments in total to try the Actor. Any paid Apify plan removes the limit.

### Use it as a LinkedIn comments API

Run it from your code and get the comments back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/pratikdani~linkedin-post-comments-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"postUrls": ["https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000"], "maxItems": 0}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("pratikdani/linkedin-post-comments-scraper").call(run_input={"postUrls": ["https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000"], "maxItems": 0})
for comment in client.dataset(run.default_dataset_id).iterate_items():
    print(comment["commenter"]["title"], "|", comment["text"][:80])
```

It also works with **Make, Zapier, n8n, Clay, Google Sheets** and the **Apify MCP server**, so AI agents (Claude, ChatGPT, Cursor) can call it directly.

### Run it on a schedule

Schedule it on your own or a competitor's latest posts to **collect new commenters as they arrive**. Comments are de-duplicated within a run, so re-running a post is safe.

1. Run the Actor once with the input you want and check the results.
2. Click **Save as a new task**, then **Schedule** it (daily, weekly or monthly).
3. Add an **integration** to send each run's results where you work: Google Sheets, Slack, HubSpot, Make, Zapier, n8n, Clay or a webhook to your own app.

Each scheduled run is billed like any other run: only for the results it returns.

### FAQ

**How do I export comments from a LinkedIn post?**
Paste the post URL into **Post URLs**, set **Max comments** to 0 for all of them, and run. Download the comments as CSV or Excel.

**Why not use the official LinkedIn API?**
LinkedIn's official APIs only open to approved partners, and only for data about your own account, your own company page or members who signed in to your app. There is no official endpoint to read comments on other people's posts. This Actor fills that gap: call it over HTTP from any language, get JSON back, and pay only for results, with no partner approval and no LinkedIn login.

**Do I need a LinkedIn account?** No. The Actor never logs in, and no cookies are used.

**Are replies included?** Top-level comments are returned, each with its reply count.

**Is it legal?** The Actor collects publicly visible comments. They include personal data protected by the GDPR and similar laws. Only collect what you have a legitimate reason to use, and check with a lawyer if you're unsure.

**Something isn't working?** Open an issue on the **Issues** tab with your run link.

### Related LinkedIn scrapers

- [LinkedIn Post Reactions Scraper](https://apify.com/pratikdani/linkedin-post-reactions-scraper): everyone who liked or reacted to a post.
- [LinkedIn Post Search Scraper](https://apify.com/pratikdani/linkedin-post-search-scraper): search posts by keyword, hashtag, author or company.
- [LinkedIn Profile Posts Scraper](https://apify.com/pratikdani/discover-linkedin-people-posts): every post a person has published.
- [LinkedIn Company Posts Scraper](https://apify.com/pratikdani/discover-linkedin-company-posts): every post a company page has published.
- [LinkedIn Profile Scraper](https://apify.com/pratikdani/linkedin-people-profile-scraper): full profiles from LinkedIn URLs.

# Actor input Schema

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

LinkedIn post URLs, one per line: https://www.linkedin.com/posts/..., https://www.linkedin.com/feed/update/urn:li:activity:... or lnkd.in short links.

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

How many comments to scrape for each input. 0 means all of them (up to 10,000).

## `sortOrder` (type: `string`):

Order in which comments are collected.

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

How many inputs to scrape at the same time.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7528967346154254336"
  ],
  "maxItems": 100,
  "sortOrder": "recent",
  "concurrency": 3
}
```

# Actor output Schema

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

Comments scraped in this run, one per dataset item.

## `failedInputs` (type: `string`):

Inputs that failed or returned nothing (not charged), with the 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 = {
    "postUrls": [
        "https://www.linkedin.com/feed/update/urn:li:activity:7528967346154254336"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pratikdani/linkedin-post-comments-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:7528967346154254336"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pratikdani/linkedin-post-comments-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:7528967346154254336"
  ],
  "maxItems": 100
}' |
apify call pratikdani/linkedin-post-comments-scraper --silent --output-dataset

```

## MCP server setup

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