# LinkedIn Post Metrics Tracker: Reactions, Comments & Growth (`neverempty/linkedin-post-metrics-tracker`) Actor

Track LinkedIn post reactions and comments over time. Paste post URLs, URNs or IDs and get exact reaction and comment counts, the author's followers and the engagement rate, plus the change since the last run, per day and over 7 days. Schedule it daily. One row per post.

- **URL**: https://apify.com/neverempty/linkedin-post-metrics-tracker.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 post returneds

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 Metrics Tracker

Track the reactions and comments of any public LinkedIn post over time. Each run returns the **exact reaction and comment counts**, the **author's follower count** and the **engagement rate**, and from the second run on, **how much each post gained since the previous check**, as a number, a percent, a daily rate, and over 7 days.

Paste post URLs, `urn:li:` URNs or bare post numbers, schedule the Actor (for example daily), and every run adds one point to each post's history. Posts by people and by company pages both work. No LinkedIn login or setup is needed, and you pay only per post returned, with no start fee.

### What you get for each post

| Column | Meaning |
|---|---|
| `reactions` | Total reactions (likes, celebrates, loves and the rest together), as an integer |
| `reactionsChange` | Change since the previous check of this post (`+120`, `0`) |
| `reactionsChangePercent`, `reactionsChangePerDay` | The same change as a percent of the previous count, and per day between the two checks |
| `reactionsChange7d` | Change compared with the check made 7 days earlier. Empty until the post has been tracked for 7 days |
| `comments`, `commentsChange`, `commentsChangePerDay`, `commentsChange7d` | Comment count and the same changes |
| `previousReactions`, `previousComments`, `previousCheckedAt`, `daysSincePreviousCheck` | What the change is measured against |
| `engagementRatePercent` | (reactions + comments) / author followers x 100 |
| `authorName`, `authorType`, `authorUrl` | Who posted it: a `person` or a `company` page, and the profile or page address |
| `authorFollowers`, `authorFollowersChange` | The author's follower count and its change since the previous check |
| `postUrl`, `activityId`, `shareUrn` | The post's address and LinkedIn's IDs for it |
| `contentType` | `text`, `image` or `video` |
| `publishedAt`, `postAgeDays` | When the post was published and how old it was at this check |
| `headline`, `text`, `hashtags` | The post's first line, its text and its hashtags |
| `imageUrl`, `videoDurationSeconds`, `authorImageUrl` | Media of the post and the author's picture |
| `isFirstCheck`, `trackedSince`, `checksRecorded` | Whether this is the first check, when tracking started, how many checks are saved |
| `inputUrl`, `historyName`, `checkedAt`, `status`, `note` | What you typed, which history the row belongs to, when it was read, `ok`, and a note on the first check |

A value LinkedIn does not show is `null`, never 0 or a guess. On the first check of a post the change columns are `null` and `note` says the history has started.

### Example output

From a real run (counts as returned; the change columns fill in from each post's second check):

| Author | Type | Reactions | Comments | Author followers | Engagement % | Post age (days) |
|---|---|---|---|---|---|---|
| Satya Nadella | image | 14,706 | 864 | 12,293,887 | 0.1266 | 11.23 |
| Microsoft | video | 1,887 | 63 | 29,475,432 | 0.0066 | 5.48 |
| Microsoft | video | 202 | 31 | 29,475,432 | 0.0008 | 4.11 |
| Microsoft | image | 153 | 11 | 29,475,432 | 0.0006 | 3.19 |

### Why this one

- **The change is already worked out.** You do not need to keep yesterday's export and compare it in a spreadsheet: the previous value, the difference, the percent and the daily rate are in the same row.
- **Post and author in one row.** The author's follower count sits next to the post's numbers, so the engagement rate is ready to sort and compare across posts and accounts.
- **Any form of post address.** `/posts/` links, `/feed/update/` links, embed links, `urn:li:activity`, `urn:li:share`, `urn:li:ugcPost` and bare numbers all work, and the same post given in two forms is returned and charged once.
- **One history per post.** The history is kept by LinkedIn's post number, so a post entered by URL one day and by URN the next continues the same history.
- **No guessed numbers.** If a reaction count cannot be read, the row is not charged and nothing is saved as the "previous" value.
- **Pay per post, nothing else.** There is no start fee: a run that checks 3 posts costs 3 rows.

### Input

```json
{
  "startUrls": [
    { "url": "https://www.linkedin.com/posts/stripe_general-matter-ceo-scott-nolan-joins-john-activity-7523810590717427712-p6X_" }
  ],
  "postUrlsOrIds": ["urn:li:activity:7521344259774660609", "7521355928982634496"],
  "historyName": "campaign-q4"
}
```

- `startUrls`: post URLs, as copied from LinkedIn (the post's menu > Copy link to post).
- `postUrlsOrIds`: URNs, embed links or bare post numbers. Both lists are read together, up to 2,000 posts per run.
- `historyName` (optional): keeps a separate history under this name, for example one per client or per campaign. Leave it empty to use the `default` history. Runs with the same name compare with each other.
- `resetMonitoringState` (off unless you turn it on): start the history again for the posts in this run. The change columns are empty in that run and fill in from the next one.

### How to track a post every day

1. Run the Actor once with your list of posts. This is the first check of each post.
2. Open **Schedules** in Apify Console and schedule the same task daily (or every few hours during a launch).
3. From the second run on, every row has the change since the previous run. After 7 days, `reactionsChange7d` and `commentsChange7d` fill in too.

You can run as often as you like: each row is compared with the previous run, and one value per day (the last check of the day) is kept for the 7-day change, for up to 400 days.

### FAQ

#### How do I track the reactions and comments of a LinkedIn post over time?

Run this Actor on the post and schedule it daily. Every row after the first has `reactionsChange`, `commentsChange`, the daily rate and the 7-day change.

#### How do I get the engagement rate of a LinkedIn post?

Every row has `engagementRatePercent`: reactions plus comments divided by the author's followers, times 100. The author's follower count is in the same row.

#### Can I compare my posts with competitors' posts?

Yes. Put all the posts in one run and give it a `historyName` such as `competitors`. Each row has the same columns, so you can sort by `reactionsChangePerDay` or `engagementRatePercent` to see which post is moving fastest.

#### Can I track posts of company pages and of people?

Yes. Both work; `authorType` says which one it is, and `authorFollowers` is the page's or the person's follower count.

#### Can I export the results to CSV or Excel?

Yes. Every run's rows can be downloaded from the run's Output tab as CSV, Excel or JSON, or read through the Apify API.

#### Do I need a LinkedIn account?

No. Only the public post that anyone can open without logging in is read, and there is nothing to set up.

### What is charged

One event per post row with a reaction count (`status` = `ok`), including the first check of a post. Rows that explain why a post was not returned are free.

### Rows that are not posts (free)

| `status` | Meaning |
|---|---|
| `not-available` | LinkedIn does not show the post to signed-out visitors: deleted, visible only to connections or group members, or a wrong number. |
| `not-found` | LinkedIn says the post does not exist. |
| `different-post` | LinkedIn showed a different post than the one you entered, so no data is returned. Check the link and run it again. |
| `blocked` / `unreadable` | LinkedIn did not answer, or did not show the reaction count for this entry. Try again in a few minutes; if it keeps happening, tell us in the Issues tab with the run ID. |
| `bad-input` | The entry is not a LinkedIn post address (an article, a profile, a company page, a short link, another site). |
| `budget-reached` | The run hit the maximum charge you set; the rest were not read, charged or saved. |
| `already-returned` | The same post as an earlier entry of the run; `sameAs` names the entry whose row has the data. |

Every free row has a `note` with the reason. The run log ends with a count of post rows, which equals the number of charged events.

### Limitations

- The history starts with your first run. Counts from before that run are not available.
- `reactions` is the total of all reaction types; LinkedIn does not show the split by type to signed-out visitors.
- Only public information visible without logging in is returned. The names of people who reacted or commented are not included.
- Articles (`/pulse/`) and `lnkd.in` short links are not posts; open the short link and paste the post address it leads to.
- The history is saved in your own Apify account. Deleting the key-value store `linkedin-post-metrics-tracking` deletes it.

If something does not work as expected, open the **Issues** tab and tell us; we answer there.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

## `startUrls` (type: `array`):

Post URLs starting with https://, one per line, as copied from LinkedIn: https://www.linkedin.com/posts/<name>\_<title>-activity-<number>-<code> or https://www.linkedin.com/feed/update/urn:li:activity:<number>/. Posts by people and by company pages both work. If this and the field below are both empty, the run checks the example post.

## `postUrlsOrIds` (type: `array`):

Posts given in any other form, one per line: urn:li:activity:<number>, urn:li:share:<number>, urn:li:ugcPost:<number>, an embed link, or the bare post number such as 7523810590717427712. Read together with the URLs above; the same post given twice is returned and charged once.

## `historyName` (type: `string`):

The change columns compare each post with the last run that used the same history name. Leave it empty to use one shared history, or give each list its own name (for example campaign-q4 or competitors) so two schedules never mix. Letters, digits and dashes, up to 40 characters.

## `resetMonitoringState` (type: `boolean`):

Forgets the saved counts of the posts in this run (in this history name only) and starts their history from today. The change columns are empty in this run and fill in from the next one. Other posts and other history names are not touched.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.linkedin.com/posts/stripe_general-matter-ceo-scott-nolan-joins-john-activity-7523810590717427712-p6X_"
    }
  ]
}
```

# Actor output Schema

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

One row per LinkedIn post: exact reactions and comments with the change since the previous run (number, percent, per day, 7 days), the author's name, type and followers with their change, the engagement rate, post text, hashtags, publish date, post age and media. A post that is deleted, private or not a post comes back as a free row that says why.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.linkedin.com/posts/stripe_general-matter-ceo-scott-nolan-joins-john-activity-7523810590717427712-p6X_"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/linkedin-post-metrics-tracker").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 = { "startUrls": [{ "url": "https://www.linkedin.com/posts/stripe_general-matter-ceo-scott-nolan-joins-john-activity-7523810590717427712-p6X_" }] }

# Run the Actor and wait for it to finish
run = client.actor("neverempty/linkedin-post-metrics-tracker").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 '{
  "startUrls": [
    {
      "url": "https://www.linkedin.com/posts/stripe_general-matter-ceo-scott-nolan-joins-john-activity-7523810590717427712-p6X_"
    }
  ]
}' |
apify call neverempty/linkedin-post-metrics-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neverempty/linkedin-post-metrics-tracker"
        }
    }
}
```

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/g9r0OdgWvYk8mMgao/builds/O6ROEzpDijQwh5ael/openapi.json
