# LinkedIn Profile Activity Scraper: Comments, Reactions, Posts (`alexmorain/linkedin-profile-activity-scraper`) Actor

What a LinkedIn profile commented and reacted to, and the posts of a company page, in one run: text, date, author and counts. New-only watch, webhook. No cookies, no LinkedIn account. From $0.80 per 1,000 rows.

- **URL**: https://apify.com/alexmorain/linkedin-profile-activity-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 Profile Activity Scraper: Comments, Reactions, Posts

Get what a LinkedIn profile commented and reacted to, and the posts of a company page, in one run. Give profile URLs and the Actor returns the comments each person wrote and the posts each person reacted to, with the post text, its author and its counts. Give company page URLs and it returns the posts of the page. No cookies, no LinkedIn account, no proxy to configure. A watch mode returns only what is new since your last run.

### What does LinkedIn Profile Activity Scraper do?

This Actor is three LinkedIn scrapers in one input:

- a **LinkedIn profile comments scraper**: every comment a person wrote, with the text, the date and the post it answers;
- a **LinkedIn profile reactions scraper**: every post a person reacted to (like, celebrate, support, love, insightful, funny), with the date and the post;
- a **LinkedIn company posts scraper**: the recent posts of a company page, with text, date, reactions, comments and shares.

For comments and reactions, each row carries the post the activity belongs to: its text, its date, its author with headline and profile URL, and its reaction, comment and share counts at read time. That is what you need to see what a person reads, who they engage with and what they say.

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.

### Why use it?

- One run for the whole activity of a profile: comments and reactions together, newest first.
- Company posts without a second tool: the same input takes company pages, and each post row says whether the page wrote it or reposted it.
- The limits are written down, measured on real accounts, instead of discovered after the run (see "Limits you should know").
- Watch mode. Tick "New rows only" and schedule the Actor: each run returns only the comments, reactions and posts 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.
- Filters that save money. Keep only the reaction types you care about and the rest is not billed.
- Apify platform: schedules, API, webhooks, integrations, run history and monitoring.

Typical uses: follow what an investor, a competitor's CEO or a prospect comments on and likes, find the topics and people a profile engages with, build a warm list from the posts a buyer reacts to, track the posts a company page publishes and reposts, and alert a CRM or a channel when someone you follow does something new.

### What data can it extract?

Every row has a `type`: `comment`, `reaction` or `post`. Fields that do not apply to a row type are `null`.

| Field | Rows | Description |
|---|---|---|
| `type` | all | `comment`, `reaction` or `post` |
| `sourceUrl`, `sourceName` | all | The profile or company page you asked for |
| `createdAt` | all | When the comment was written, the reaction given or the post published (reposted, for a repost). ISO 8601 UTC |
| `commentId`, `commentUrl` | comments | Id of the comment and a link to it |
| `commentText` | comments | The text of the comment |
| `commentReactionCount` | comments | Reactions the comment received |
| `isPinned`, `isEdited` | comments | Pinned by the post author, edited |
| `reactionType` | reactions | `LIKE`, `PRAISE` (celebrate), `EMPATHY` (support), `APPRECIATION` (love), `INTEREST` (insightful), `ENTERTAINMENT` (funny) |
| `reactionId` | reactions | Id of the reaction itself |
| `postId`, `postUrn`, `postUrl` | all | The post the row is about |
| `postText`, `postDate`, `postType` | all | Text and publication date of that post, and its kind when known (text, image, article, video, document) |
| `postAuthorName`, `postAuthorHeadline`, `postAuthorUrl`, `postAuthorType` | all | Author of that post: name, headline (follower count for a page), URL, `profile` or `company` |
| `postReactionCount`, `postCommentCount`, `postShareCount` | all | Counts on that post at read time |
| `postImages`, `postVideoUrl` | all | Media links of that post (they expire after a few weeks) |
| `isRepost`, `repostedBy`, `repostedAt` | posts | Whether the page reposted it, and who |
| `scrapedAt` | all | When the row was read |

The Actor does not return emails or phone numbers.

### How to scrape the comments and reactions of a LinkedIn profile

1. Open the Actor and paste profile links in "Profiles", one per line. A URL (`https://www.linkedin.com/in/satyanadella`) or just the handle (`satyanadella`) works.
2. Choose what to collect: comments and reactions, comments only, or reactions only.
3. Set the limits: maximum comments per profile, maximum reactions per profile, and a maximum for the whole run.
4. Optional: keep only some reaction types. Fill "Company pages" to read their posts in the same run.
5. Click Start, then download the dataset as JSON, CSV or Excel, or read it by API.

To follow a person or a page: 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 a LinkedIn profile's activity?

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 | $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 |
| Company post | $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: the 1,000 most recent comments of a profile cost about $1.50; the roughly 1,000 reactions LinkedIn lists for a profile cost about $1.50; the 400 posts LinkedIn lists for a company page cost about $0.60; a daily watch on 10 profiles that each give 20 new rows per day costs about $0.30 per day.

What is not billed: rows removed by your reaction type filter, rows skipped by the new-only watch, profiles and pages 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:

- `profiles`: profile URLs or handles. Duplicates are removed, unrecognized lines are skipped with a warning.
- `companies`: company page URLs or page names (`microsoft`). A numeric company id is not accepted: use the name from the page URL.
- `collect`: `both`, `comments` or `reactions`, for profiles.
- `reactionTypes`: keep only these types. Empty keeps all.
- `maxCommentsPerProfile` (up to 20,000), `maxReactionsPerProfile` (up to 1,000), `maxPostsPerCompany` (up to 500), `maxItems`: the per-source and global limits. Rows come newest first, so a limit keeps the most recent.
- `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
{
  "profiles": ["https://www.linkedin.com/in/satyanadella", "justinwelsh"],
  "companies": ["https://www.linkedin.com/company/microsoft"],
  "collect": "both",
  "maxCommentsPerProfile": 200,
  "maxReactionsPerProfile": 500,
  "maxPostsPerCompany": 100
}
```

Example input for a daily watch on what a profile comments on:

```json
{
  "profiles": ["satyanadella"],
  "collect": "comments",
  "maxCommentsPerProfile": 100,
  "onlyNew": true,
  "watchName": "satya-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",
  "sourceUrl": "https://www.linkedin.com/in/satyanadella",
  "sourceName": "satyanadella",
  "createdAt": "2026-11-18T17:38:34.820Z",
  "commentId": "7528874308300021760",
  "commentUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7528470314725318658",
  "commentText": "Congrats Robin Vince, Leigh-Ann Russell, and the BNY team! Very cool and a good example of what security and trust look like across an agentic workflow.",
  "commentReactionCount": 5,
  "isPinned": false,
  "isEdited": false,
  "postId": "7528470314725318658",
  "postUrn": "urn:li:activity:7528470314725318658",
  "postUrl": "https://www.linkedin.com/posts/robin-vince_ai-activity-7528470314725318658-JVRo",
  "postText": "What happens when two #AI agents negotiate a trade? ...",
  "postDate": "2026-11-17T14:53:15.245Z",
  "postAuthorName": "Robin Vince",
  "postAuthorHeadline": "Chief Executive Officer at BNY",
  "postAuthorUrl": "https://www.linkedin.com/in/robin-vince",
  "postAuthorType": "profile",
  "postReactionCount": 1543,
  "postCommentCount": 28,
  "postShareCount": 77,
  "scrapedAt": "2026-11-18T18:00:00Z"
}
```

A reaction row has `type: "reaction"`, a `reactionType` and the same `post*` fields. A company post row has `type: "post"`, the `post*` fields of the post itself, and `isRepost`, `repostedBy`, `repostedAt`. Fields that do not apply are `null`; the full list is in the table above and in the dataset schema.

The run also writes a `SUMMARY` record in the key-value store: for each source, the rows delivered, the post count LinkedIn announces for a company page, the sources 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-profile-activity-scraper").call(run_input={
    "profiles": ["satyanadella"],
    "collect": "comments",
    "maxCommentsPerProfile": 200,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["createdAt"], "|", row["commentText"][:80], "|", row["postAuthorName"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('alexmorain/linkedin-profile-activity-scraper').call({
    companies: ['microsoft'],
    maxPostsPerCompany: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'posts');
```

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~linkedin-profile-activity-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"profiles": ["satyanadella"], "collect": "reactions", "maxReactionsPerProfile": 50}'
```

### Limits you should know

These were measured on real accounts on 18 November 2026. They are LinkedIn's limits, not the Actor's.

- Reactions: LinkedIn lists about 1,000 reactions per profile, newest first, even for a person who gave many more. On a very active profile the Actor read 997 rows and the list ended. A reaction type filter does not go further back: it is applied to the same list.
- A reaction on a comment is listed with the post the comment belongs to. A person who likes many comments under one post therefore has many reaction rows with the same `postId` and different `reactionId`. All of them are delivered and billed, because each one is a separate reaction.
- Comments: the list is read page after page until LinkedIn stops serving it. No wall was found: 3,489 comments were read on one profile. The count LinkedIn gives for a profile's comments is not reliable, so the run log shows what was delivered, not a total.
- Company posts: LinkedIn announces 467 to 500 posts for a large page and serves 400, in pages of 50. The posts include reposts and posts of affiliated pages as LinkedIn lists them: `isRepost` and `postAuthorName` tell them apart.
- Reactions and comments are returned with the counts the post has at read time, not at the time of the activity.
- A profile or page that does not exist, or is not public, is reported as not found and is not billed.
- Speed: expect about 10 rows per second for one list. Profiles and pages are read four at a time, but the comments and the reactions of one profile are read one after the other. Memory 256 MB is enough.

### Tips

- Start small. The default limits (100 comments, 100 reactions, 50 posts) are meant for a first look. Raise them once you see the shape of the data.
- To follow a person, collect comments first: they say more than reactions and cost the same.
- A watch reads each list in full every run, because LinkedIn does not let the Actor stop at the first known row without losing rows. With the watch on, the limits are a window on the newest rows: rows already known count in it, so a run with nothing new delivers nothing and bills nothing. Keep the window low on a daily watch: 100 per profile is enough to catch a day of activity, and raise it only if you want the older rows too.
- To spot who a profile engages with, group the rows by `postAuthorUrl`.

### FAQ

#### Can I scrape the comments of a LinkedIn profile 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 see the posts a person liked on LinkedIn?

Set `collect` to `reactions`. Likes are the `LIKE` reaction type; the other types are celebrate, support, love, insightful and funny. Each row is a post with its author, text and counts. LinkedIn lists about the last 1,000 reactions of a profile.

#### How do I export the comments of a LinkedIn profile to Excel or CSV?

Run the Actor, open the dataset and choose CSV or Excel in the export menu. One row per comment, with the text next to the post it answers.

#### How do I get all the posts of a LinkedIn company page?

Give the page in `companies`. The Actor returns the posts LinkedIn lists for the page, up to about 400 for a large one, newest first. Use the new-only watch and a daily schedule to collect new posts as they appear without paying again for the old ones.

#### Why do I get fewer company posts than the page shows?

LinkedIn announces more than it serves. The `SUMMARY` record shows the announced count next to the delivered one, so the gap is visible and not a guess.

#### Can I monitor a profile for new comments or reactions?

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.

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

This Actor returns the comments a person wrote, each with the post it is on. To read all the comments and replies under a given post, use my LinkedIn post comments and reactions scraper.

#### 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 profile activity?

The Actor reads only what LinkedIn shows publicly. Public does not mean free of rules, though. Names, headlines and the content of what a person writes or likes 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 market research, or B2B prospecting where the offer is relevant to the person's role.
- Do not infer sensitive information (political opinion, health, religion) from what someone likes or comments.
- 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 monitoring and automation, the output fields, pricing and common questions are on the [LinkedIn Profile Activity Scraper page](https://alexis.morain.fr/en/scrapers/linkedin-profile-activity-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

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

One LinkedIn profile per line: a profile URL (<code>linkedin.com/in/...</code>) or just the handle (<code>satyanadella</code>). The Actor returns the comments this person wrote and the posts this person reacted to. Duplicates are removed.

## `companies` (type: `array`):

One company page per line: a URL (<code>linkedin.com/company/...</code>) or just the page name (<code>microsoft</code>). The Actor returns the posts of the page, with reposts and posts of its affiliated pages as LinkedIn lists them.

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

Comments, reactions, or both in the same run. Rows are billed per comment and per reaction.

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

Keep only these reaction types. Empty keeps all. The filter is applied after reading: filtered rows are not billed, but it does not reach further back than the all-types list (about 1,000 reactions per profile).

## `maxCommentsPerProfile` (type: `integer`):

Stops reading a profile after this many comments, newest first.

## `maxReactionsPerProfile` (type: `integer`):

Stops reading a profile after this many reactions, newest first. LinkedIn lists about 1,000 reactions per profile, even when the person gave more.

## `maxPostsPerCompany` (type: `integer`):

Stops reading a company page after this many posts, newest first. LinkedIn lists about 400 posts per page.

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

Total rows (comments, reactions and posts) for the whole run. The run stops cleanly when it is reached.

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

Deliver only the rows not delivered by an earlier run with the same watch name. Rows already delivered are skipped and not billed. The Actor still reads each list in full, so the data source cost of a run does not shrink. With this option on, the limits below count the rows already known: they are a window on the newest rows, so a run with nothing new delivers nothing.

## `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, sources 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
{
  "profiles": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "companies": [
    "https://www.linkedin.com/company/microsoft"
  ],
  "collect": "both",
  "reactionTypes": [],
  "maxCommentsPerProfile": 20,
  "maxReactionsPerProfile": 20,
  "maxPostsPerCompany": 20,
  "maxItems": 10000,
  "onlyNew": false,
  "watchName": "default"
}
```

# Actor output Schema

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

All comment, reaction and post rows in the default dataset.

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

Sources read, not found or failed; rows delivered per source; announced post count per page; 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 = {
    "profiles": [
        "https://www.linkedin.com/in/satyanadella"
    ],
    "companies": [
        "https://www.linkedin.com/company/microsoft"
    ],
    "maxCommentsPerProfile": 20,
    "maxReactionsPerProfile": 20,
    "maxPostsPerCompany": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/linkedin-profile-activity-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 = {
    "profiles": ["https://www.linkedin.com/in/satyanadella"],
    "companies": ["https://www.linkedin.com/company/microsoft"],
    "maxCommentsPerProfile": 20,
    "maxReactionsPerProfile": 20,
    "maxPostsPerCompany": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/linkedin-profile-activity-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 '{
  "profiles": [
    "https://www.linkedin.com/in/satyanadella"
  ],
  "companies": [
    "https://www.linkedin.com/company/microsoft"
  ],
  "maxCommentsPerProfile": 20,
  "maxReactionsPerProfile": 20,
  "maxPostsPerCompany": 20
}' |
apify call alexmorain/linkedin-profile-activity-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexmorain/linkedin-profile-activity-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/PkbLm3uXC3ENRS4OW/builds/iSfkecY6fOeqMBqSf/openapi.json
