# LinkedIn Profile Comments Scraper (No Cookies) (`harvestapi/linkedin-profile-comments`) Actor

Extract LinkedIn profile comments, as well as comment social activities such as likes and reactions. No cookies or account required, fast response times

- **URL**: https://apify.com/harvestapi/linkedin-profile-comments.md
- **Developed by:** [HarvestAPI](https://apify.com/harvestapi) (community)
- **Categories:** Lead generation, Social media, Automation
- **Stats:** 2,335 total users, 749 monthly users, 100.0% runs succeeded, 44 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$2.00 / 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.

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 Profile Comments Mass scraper

Our powerful tool helps you extract comments that are generated by a LinkedIn profile. For example, from this page https://www.linkedin.com/in/satyanadella/recent-activity/comments/\
It will scrape social activities and reactions such as likes, appreciations, praises without compromising security or violating platform policies. It is very helpful for engagement analysis and outreach purposes.

#### Key Benefits

- No cookies or account required: Access comments data without sharing cookies or risking account restrictions
- Low pricing: $2 per 1k comments.
- Fast response times deliver data in seconds 🚀
- No caching, fresh data.

### How It Works

- (required) List of LinkedIn profile URLs to scrape.

Other params (optionally):

- `maxItems` - Maximum number of comments to scrape per each profile. If you set to 0, it will scrape all available pages or up to 100 pages (each page 20 items) per profile.

#### Data You'll Receive

- Comment URL
- Comment text
- Number of replies, likes, shares
- Reaction type counts (like, love, insightful, etc.)
- Actor's name
- Actor's LinkedIn URL
- Actor's position
- Actor's profile picture URL
- Comment creation date
- Full post details including:
  - Post URL
  - Post content
  - Post author details
  - Engagement metrics (likes, comments, shares)
  - Post images and videos

#### Sample output data

Here is the example on just 1 result output of this actor:

```json
{
  "id": "7348473344318504960",
  "linkedinUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7348370815530258432?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7348370815530258432%2C7348473344318504960%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287348473344318504960%2Curn%3Ali%3Aactivity%3A7348370815530258432%29",
  "commentary": "Looking forward to partnering with you, Amjad, as well as the entire Replit team, as we bring natural language coding to the enterprise.\n",
  "createdAt": "2025-07-08T22:09:33.318Z",
  "createdAtTimestamp": 1752012573318,
  "engagement": {
    "likes": 120,
    "comments": 13,
    "shares": 0,
    "reactions": [
      {
        "type": "LIKE",
        "count": 106
      },
      {
        "type": "PRAISE",
        "count": 7
      },
      {
        "type": "EMPATHY",
        "count": 7
      }
    ]
  },
  "postId": "7348473369610080256",
  "contributed": false,
  "edited": false,
  "actor": {
    "id": "ACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ",
    "name": "Satya Nadella",
    "linkedinUrl": "https://www.linkedin.com/in/satyanadella",
    "position": "Chairman and CEO at Microsoft",
    "pictureUrl": "https://media.licdn.com/dms/image/v2/C5603AQHHUuOSlRVA1w/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1579726625483?e=1758153600&v=beta&t=5h2uTQwPlptry-ubK81Y22csoCvOz0cL3NaGptLvfGE",
    "picture": {
      "url": "https://media.licdn.com/dms/image/v2/C5603AQHHUuOSlRVA1w/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1579726625483?e=1758153600&v=beta&t=5h2uTQwPlptry-ubK81Y22csoCvOz0cL3NaGptLvfGE",
      "width": 800,
      "height": 800,
      "expiresAt": 1758153600000
    },
    "author": false
  },
  "post": {
    "id": "7348473369610080256",
    "linkedinUrl": "https://www.linkedin.com/posts/amjadmasad_replit-microsoft-vibecoding-activity-7348370815530258432-zCV8",
    "content": "Excited to team up with Microsoft to bring Vibe Coding to the Enterprise.\n\nNow every team member—not just engineers—can turn ideas into software with Replit Agent, no code required.\n\nWe’re aligned with Microsoft on a shared mission: empowering every person and organization to create and achieve more.\n\nAt Replit, we've spent years building a secure, enterprise-ready platform that enables teams to collaborate, build, and ship production-grade software with confidence.\n\nHere is what's going to happen shortly. You'll be able to:\n\n- Develop applications securely on Replit and deploy seamlessly to Microsoft Azure’s reliable infrastructure\n\n- Purchase Replit directly via the Azure Marketplace, streamlining procurement and accelerating adoption across the organization\n\nWe aspire for Replit to be the most trusted name for enterprise in this new era of Agentic coding. \n\nReplit is SOC 2 Type II compliant and offers the controls enterprises need and we have a long roadmap of features that security and IT teams at customers are really excited about.\n\nRead more: https://lnkd.in/gNpkGMaj\n\nPartnering with Microsoft marks the beginning of an exciting new chapter in that journey. A huge thanks to the incredible Microsoft team for their partnership: Satya Nadella, Deb Cupp, Shaloo Garg, Asha Sharma, Gustavo Blum, Mike Gaal, Merrilee Rubin, Britton Winterrose and the rest of the team!",
    "author": {
      "universalName": null,
      "publicIdentifier": "amjadmasad",
      "type": "profile",
      "name": "Amjad Masad",
      "linkedinUrl": "https://www.linkedin.com/in/amjadmasad?miniProfileUrn=urn%3Ali%3Afsd_profile%3AACoAAAKoldoBqSsiXY_DHsXdSk1slibabeTvDDY",
      "info": "Founder at Replit",
      "website": null,
      "websiteLabel": null,
      "avatar": {
        "url": "https://media.licdn.com/dms/image/v2/D5635AQGdabxGhpSiBQ/profile-framedphoto-shrink_800_800/B56Zc22XJQHUAg-/0/1748971910019?e=1753297200&v=beta&t=PJmmoYaSRMXzAugp3rYsIh0hHgClaulVzEoA2VRRzkY",
        "width": 400,
        "height": 400,
        "expiresAt": 1753297200000
      }
    },
    "postedAt": {
      "timestamp": 1752012579348,
      "date": "2025-07-08T22:09:39.348Z",
      "postedAgoShort": "1w",
      "postedAgoText": "1 week ago • Edited • Visible to anyone on or off LinkedIn"
    },
    "postImages": [],
    "repostId": "7348364637240795136",
    "socialContent": {
      "hideCommentsCount": false,
      "hideReactionsCount": false,
      "hideSocialActivityCounts": false,
      "hideShareAction": true,
      "hideSendAction": true,
      "hideRepostsCount": false,
      "hideViewsCount": false,
      "trustInterventionBanner": null,
      "hideReactAction": false,
      "hideCommentAction": false,
      "shareUrl": "https://www.linkedin.com/posts/amjadmasad_replit-microsoft-vibecoding-activity-7348370815530258432-zCV8?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAAFsW--gB0OI23qAUPf3hibO_hmfvlrkhdAE",
      "showContributionExperience": false,
      "showSocialDetail": true
    },
    "header": {
      "image": {
        "url": "https://media.licdn.com/dms/image/v2/C5603AQHHUuOSlRVA1w/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1579726625483?e=1758153600&v=beta&t=5h2uTQwPlptry-ubK81Y22csoCvOz0cL3NaGptLvfGE",
        "width": 800,
        "height": 800,
        "expiresAt": 1758153600000
      },
      "linkedinUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7348473369610080256?updateEntityUrn=urn%3Ali%3Afsd_update%3A%28urn%3Ali%3Aactivity%3A7348473369610080256%2CPROFILE_COMMENTS%2CEMPTY%2CDEFAULT%2Cfalse%29&originTrackingId=LrCBvry5g%2Bd0u2yJqfPHnA%3D%3D",
      "imageLink": "https://www.linkedin.com/in/satyanadella?miniProfileUrn=urn%3Ali%3Afsd_profile%3AACoAAAEkwwAB9KEc2TrQgOLEQ-vzRyZeCDyc6DQ",
      "text": "Satya Nadella commented on this"
    },
    "repost": {
      "id": "7348364637240795136",
      "linkedinUrl": "https://www.linkedin.com/posts/shaloo-garg_replit-microsoft-vibecoding-activity-7348364637240795136-i-UJ",
      "content": "We are ecstatic to announce Replit's strategic partnership with Microsoft to bring Vibe Coding to enterprise customers! This collaboration integrates Replit with Microsoft services like Azure Container Apps, VM's and Neon Serverless Postgres, enabling secure app development on Replit with seamless deployment to Azure — and soon, direct purchase via the Azure Marketplace.\n \nMassive congrats to the stellar Replit team- Amjad Masad, Haya Odeh, Michele Catasta, Jeff Burke, Patrick Y. Purvis🔸, Luis Héctor Chávez & others and the fantastic Microsoft team Merrilee Rubin, Bea Nallar, Steve Forbes, Megan Fairchild, Tom Davis, Heena Purohit, Britton Winterrose, Corrie Khan, Edward O'Donnell, Sarah Andersen, Pia Biswas, Mohamad Al Jazaery, Gana Chandrasekaran, Prashanth Mohan & others for driving this to fruition! \n \nClick here to learn more: https://lnkd.in/gH5wDFFW\n \n#replit #microsoft #vibecoding\n\nDeb Cupp, Asha Sharma, Katy Brown, Samantha Buchon, Sylvia Jarzynski, Gustavo Blum, Reza Alizadeh, Mike Gaal, Kenny Schulman, Daniel R Stein,  James Jarrett, Jay Emery, Anne Kennedy, Sylvia MacPherson, Tyler Hagens,Raina Saboo",
      "author": {
        "universalName": null,
        "publicIdentifier": "shaloo-garg",
        "type": "profile",
        "name": "Shaloo Garg",
        "linkedinUrl": "https://www.linkedin.com/in/shaloo-garg?miniProfileUrn=urn%3Ali%3Afsd_profile%3AACoAAAARfEoBnchqpQsnKe5Gg21qHa4jfVM4QHs",
        "info": "MD, Late Stage Startups, Microsoft | NASDAQ Entreprenurial Cent., UN Women Board Member | Forbes Contributor",
        "website": null,
        "websiteLabel": null,
        "avatar": {
          "url": "https://media.licdn.com/dms/image/v2/C4D03AQHECtaUAf6LsQ/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1516233092483?e=1758153600&v=beta&t=FLXpODYPRUtjshFKIUyCyONfdk0qSv8ku55WVID9Npk",
          "width": 360,
          "height": 360,
          "expiresAt": 1758153600000
        }
      },
      "postedAt": {
        "timestamp": 1751986655531,
        "date": "2025-07-08T14:57:35.531Z",
        "postedAgoShort": "1w",
        "postedAgoText": "1 week ago • Visible to anyone on or off LinkedIn"
      },
      "postImages": [
        {
          "url": "https://media.licdn.com/dms/image/v2/D5622AQGX8YqbnEU4rg/feedshare-shrink_2048_1536/B56ZfqisZEHEA4-/0/1751986654414?e=1755734400&v=beta&t=_IGYJUqefhfWFXbirGj8TqB4L12Moc9XfNx4ddaz8S0",
          "width": 2048,
          "height": 1055,
          "expiresAt": 1755734400000
        }
      ],
      "socialContent": {
        "hideCommentsCount": false,
        "hideReactionsCount": false,
        "hideSocialActivityCounts": false,
        "hideShareAction": true,
        "hideSendAction": true,
        "hideRepostsCount": false,
        "hideViewsCount": false,
        "trustInterventionBanner": null,
        "hideReactAction": false,
        "hideCommentAction": false,
        "shareUrl": "https://www.linkedin.com/posts/shaloo-garg_replit-microsoft-vibecoding-activity-7348364637240795136-i-UJ?utm_source=social_share_send&utm_medium=member_desktop_web&rcm=ACoAAFsW--gB0OI23qAUPf3hibO_hmfvlrkhdAE",
        "showContributionExperience": false,
        "showSocialDetail": true
      },
      "comments": [],
      "header": {
        "text": null
      },
      "engagement": {
        "likes": 377,
        "comments": 28,
        "shares": 42,
        "reactions": [
          {
            "type": "LIKE",
            "count": 287
          },
          {
            "type": "PRAISE",
            "count": 55
          },
          {
            "type": "EMPATHY",
            "count": 28
          },
          {
            "type": "INTEREST",
            "count": 6
          },
          {
            "type": "APPRECIATION",
            "count": 1
          }
        ]
      }
    },
    "engagement": {
      "likes": 1678,
      "comments": 129,
      "shares": 94,
      "reactions": [
        {
          "type": "LIKE",
          "count": 1335
        },
        {
          "type": "PRAISE",
          "count": 209
        },
        {
          "type": "EMPATHY",
          "count": 102
        },
        {
          "type": "INTEREST",
          "count": 17
        },
        {
          "type": "APPRECIATION",
          "count": 14
        },
        {
          "type": "ENTERTAINMENT",
          "count": 1
        }
      ]
    }
  }
}
```

### Linkedin Profile Comments API

The actor stores results in a dataset. You can export data in various formats such as CSV, JSON, XLS, etc. You can scrape and access data on demand using API.

#### Support and Feedback

We continuously enhance our tools based on user feedback. If you encounter technical issues or have suggestions for improvement:

- Create an issue on the actor’s Issues tab in Apify Console
- Chat with us on our [Discord server](https://discord.gg/TGA9k9u2gE)
- Or contact us at contact@harvest-api.com

**\* \* \***

**Disclaimer**: This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by LinkedIn Corporation. LinkedIn® is a registered trademark of LinkedIn Corporation. All trademarks are property of their respective owners.

# Actor input Schema

## `profiles` (type: `array`):

List of LinkedIn profile URLs to scrape comments from.

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

Maximum number of comments to scrape per each profile

## `postedLimit` (type: `string`):

Fetch posts no older than X time. Options: '24h', 'week', 'month'.

## Actor input object example

```json
{
  "profiles": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "maxItems": 10
}
```

# 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 = {
    "profiles": [
        "https://www.linkedin.com/in/satyanadella"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("harvestapi/linkedin-profile-comments").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 = {
    "profiles": ["https://www.linkedin.com/in/satyanadella"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("harvestapi/linkedin-profile-comments").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 '{
  "profiles": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "maxItems": 10
}' |
apify call harvestapi/linkedin-profile-comments --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,harvestapi/linkedin-profile-comments"
        }
    }
}
```

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/FiHYLewnJwS6GnRpo/builds/NvL7sYm6azAAuSCer/openapi.json
