# Linkedin Post Comments Scraper (`bestscrapers/linkedin-post-comments-scraper`) Actor

The **Linkedin Post's Comments Scraper** is a powerful tool designed to extract all comments from any LinkedIn profile post — without the need for cookies or login.

- **URL**: https://apify.com/bestscrapers/linkedin-post-comments-scraper.md
- **Developed by:** [Linkedin Scrapers](https://apify.com/bestscrapers) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **Stats:** 353 total users, 119 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00 / 1,000 processing data

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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's Comments Scraper

The **Linkedin Post's Comments Scraper** is a powerful tool designed to extract all comments from any LinkedIn profile post — without the need for cookies or login.

### ✨ Features

- 👤 **Full Post's Comments Detail Extraction**

- 🍪 **No Cookies Required**\
  The scraper works without any LinkedIn login or cookies — simplifying setup and execution.

### ✨ You may also want to check out my other powerful actors:

#### For people:

- https://apify.com/bestscrapers/fresh-linkedin-profile-data
- https://apify.com/bestscrapers/linkedin-open-profile-status
- https://apify.com/bestscrapers/linkedin-open-to-work-status
- https://apify.com/bestscrapers/linkedin-detect-activity-time

#### For Sales Navigator searches:

- https://apify.com/bestscrapers/linkedin-sales-navigator-scraper
- https://apify.com/bestscrapers/linkedin-sales-account-scraper

#### For companies:

- https://apify.com/bestscrapers/linkedin-company-scraper
- https://apify.com/bestscrapers/linkedin-company-insights-scraper
- https://apify.com/bestscrapers/linkedin-company-by-domain
- https://apify.com/bestscrapers/linkedin-company-custom-headcount

#### For jobs:

- https://apify.com/bestscrapers/linkedin-job-details-scraper
- https://apify.com/bestscrapers/linkedin-job-scraper

#### For posts:

- https://apify.com/bestscrapers/linkedin-post-scraper
- https://apify.com/bestscrapers/get-post-details
- https://apify.com/bestscrapers/linkedin-company-post-scraper
- https://apify.com/bestscrapers/linkedin-post-comments-scraper
- https://apify.com/bestscrapers/reaction-scraper

### 🛠️ How It Works

1. 🔗 **Input**\
   Provide a post URN

2. ▶️ **Run the Scraper**\
   Start the actor to extract rich profile post data in real time — results will be available in Apify's Dataset tab.

### 💰 Pricing

1. Paid users: $0.008/1 request = 1 "processing" events / 1 request ($8/1000 requests).
2. Free users: $0.8/1 request = 100 "processing" events/ 1 request ($800/1000 requests).

### ✨ Go to my profile for more powerful actors: https://apify.com/freshdata

### 📥 Input Example

```json
{
  "urn": "7267273010393358336",
  "pagination_token": "",
  "page": 1,
  "sort_by":"Most relevant"
}
```

### 📤 Output Example

```json
{
  "data": [
    {
      "annotation": null,
      "commenter": {
        "headline": "Procurement | Certified Functional Analyst | Product Design & Engineering",
        "linkedin_url": "https://www.linkedin.com/in/ssgoh",
        "name": "Goh Swee Siong"
      },
      "created_at": 1732656234066,
      "created_datetime": "11/26/2024, 1:23:54 PM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267286973164187649%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267286973164187649%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "This happened all the time in high performance culture nowadays. Nothing new. As the doer, we need to seek clarification and pin down to do or not to do even at the expense of irking the manager.",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "\"Trust must be repeated again and again because the error is constantly preached around.\" J.W. von Goethe",
        "linkedin_url": "https://www.linkedin.com/in/dr-corina-ross-8a928419",
        "name": "Dr. Corina Ross"
      },
      "created_at": 1733046436128,
      "created_datetime": "12/1/2024, 1:47:16 AM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7268923599233732608%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287268923599233732608%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "The choice between short-term and big, immediate but risky advantages and long-term and small sure advantages had always been questioned. In economics, the government has traditionally chosen the second choice, while private business is based on the first one. And the head can be \"off\", indifferently of choice :).",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "Aspiring Property Manager/ Real Estate Agent",
        "linkedin_url": "https://www.linkedin.com/in/manzanarespropmgmt",
        "name": "Monate Manzanares"
      },
      "created_at": 1732655923782,
      "created_datetime": "11/26/2024, 1:18:43 PM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267285671738765313%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267285671738765313%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "Love this",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "Sociologist//Financial Planner//Researcher//Realtor//Educationist//Sales//Humanitarian//Hospitality//Positive Change Agent..",
        "linkedin_url": "https://www.linkedin.com/in/john-w-emmanuel-72220774",
        "name": "John W. Emmanuel"
      },
      "created_at": 1732652963885,
      "created_datetime": "11/26/2024, 12:29:23 PM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267273257030926336%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267273257030926336%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "Very Apt... 😎👌🙌👍",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "GRAPHIC DESIGNER AT DIGITAL COACH.IT",
        "linkedin_url": "https://www.linkedin.com/in/mohammad-monowarul-hoque-33444b324",
        "name": "Mohammad Monowarul Hoque"
      },
      "created_at": 1732809192123,
      "created_datetime": "11/28/2024, 7:53:12 AM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267928525754556416%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267928525754556416%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "https://kwork.com/manage_kworks",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "Build, Grow & Scale Your Business with LinkedIn for Business Strategies. Talk to More People via LinkedIn Fast & within Just 7 Days Guaranteed, with Tested & Proven LinkedIn for Business Solutions ✅ 320+ Recommendations",
        "linkedin_url": "https://www.linkedin.com/in/derickmildred-linked-in-for-business-coach",
        "name": "Derick Mildred"
      },
      "created_at": 1732755894176,
      "created_datetime": "11/27/2024, 5:04:54 PM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267704977962205184%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267704977962205184%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "Hi Anthony J James It's a reminder of the constant balancing act we face in decision-making. It's fascinating how these choices shape our paths. 😎 😎 ",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "💎 WellBeing Champion | ESG Leader | Business Connector | Linkedin Top 250 influencer |",
        "linkedin_url": "https://www.linkedin.com/in/reenastrehle",
        "name": "Reena Strehle"
      },
      "created_at": 1732663452583,
      "created_datetime": "11/26/2024, 3:24:12 PM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267317249823170561%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267317249823170561%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "Clarity should be a non-negotiable in communication!\n\nA little slip-up can become big quite fast, Anthony J James.",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "Sales Psychology Strategist | Top 20 Women in Business 2023 | Certified Master Neuroplastician™ | Helping curious entrepreneurs accelerate using the power of Psychology, AI & Neuroscience | Author | Harvard Graduate | ⬇️",
        "linkedin_url": "https://www.linkedin.com/in/leanne-elich",
        "name": "Dr Leanne Elich  (PhD. GAICD. M.npn)"
      },
      "created_at": 1732777378817,
      "created_datetime": "11/27/2024, 11:02:58 PM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267795091077894144%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267795091077894144%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "Classic indecision, Anthony J James! But hey, sometimes it's all about taking the time to get it right.",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "--",
        "linkedin_url": "https://www.linkedin.com/in/abhishek-yadav-1b9b26218",
        "name": "Abhishek Yadav"
      },
      "created_at": 1733167003542,
      "created_datetime": "12/2/2024, 11:16:43 AM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7269429295620476928%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287269429295620476928%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "I will do",
      "thread_urn": null
    },
    {
      "annotation": null,
      "commenter": {
        "headline": "emekli şirketinde serbest emekli",
        "linkedin_url": "https://www.linkedin.com/in/erdin-buluryar-4b750b136",
        "name": "ERDİN BULURYAR"
      },
      "created_at": 1732819322288,
      "created_datetime": "11/28/2024, 10:42:02 AM",
      "permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7267273010393358336?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7267273010393358336%2C7267971014746120193%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287267971014746120193%2Curn%3Ali%3Aactivity%3A7267273010393358336%29",
      "pinned": false,
      "replies": [],
      "text": "Ana düşünce strateji olmalıdır 😀",
      "thread_urn": null
    }
  ],
  "message": "ok",
  "pagination_token": "1388203668-1733209092407-fec4cb84fb5d80c384f61dba04a4f290",
  "total": 10
}

```

# Actor input Schema

## `urn` (type: `string`):

The URN identifier for the query.

## `pagination_token` (type: `string`):

Required when fetching the next result page. Please use the token from the result of your previous call.

## `page` (type: `integer`):

Page number for pagination.

## `sort_by` (type: `string`):

Default value: Most relevant. Possible values: Most relevant, Most recent

## Actor input object example

```json
{
  "urn": "7267273010393358336",
  "pagination_token": "dXJuOmxpOmFjdGl2aXR5OjcyOTE1MjI3MzU2MDI1NzMzMTItMTczODQzNDQ5MDA4OA==",
  "page": 1,
  "sort_by": "Most relevant"
}
```

# 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 = {
    "urn": "7267273010393358336",
    "pagination_token": "dXJuOmxpOmFjdGl2aXR5OjcyOTE1MjI3MzU2MDI1NzMzMTItMTczODQzNDQ5MDA4OA==",
    "sort_by": "Most relevant"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bestscrapers/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 = {
    "urn": "7267273010393358336",
    "pagination_token": "dXJuOmxpOmFjdGl2aXR5OjcyOTE1MjI3MzU2MDI1NzMzMTItMTczODQzNDQ5MDA4OA==",
    "sort_by": "Most relevant",
}

# Run the Actor and wait for it to finish
run = client.actor("bestscrapers/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 '{
  "urn": "7267273010393358336",
  "pagination_token": "dXJuOmxpOmFjdGl2aXR5OjcyOTE1MjI3MzU2MDI1NzMzMTItMTczODQzNDQ5MDA4OA==",
  "sort_by": "Most relevant"
}' |
apify call bestscrapers/linkedin-post-comments-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bestscrapers/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/gYUUwbocC674SLqAY/builds/TKU7ZTZSBRwxKNa4o/openapi.json
