# LinkedIn Post Reactions Scraper (No Cookies) (`harvestapi/linkedin-post-reactions`) Actor

Extract reactions of LinkedIn posts or comments, such as likes, appreciations, etc. No cookies or account required.

- **URL**: https://apify.com/harvestapi/linkedin-post-reactions.md
- **Developed by:** [HarvestAPI](https://apify.com/harvestapi) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 6,691 total users, 1,658 monthly users, 100.0% runs succeeded, 124 bookmarks
- **User rating**: 4.98 out of 5 stars

## Pricing

from $1.50 / 1,000 post reaction results

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 Reactions Mass scraper

Our powerful tool helps you extract reactions to LinkedIn posts or comments, such as likes, appreciations, and 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 reactions data without sharing cookies or risking account restrictions
- Low pricing: $2 per 1k reactions.
- Fast response times deliver data in seconds 🚀
- No caching, fresh data.

### How It Works

- (required) List of post URLs or post comment URLs to scrape.

Other params (optionally):

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

#### Data You'll Receive

- Reaction type (like, love, insightful, etc.)
- Actor's name
- Actor's LinkedIn encoded URL
- Actor's position
- Actor's profile picture URL

Note: By default, this Actor returns encoded LinkedIn profile URLs as provided by the LinkedIn website. To obtain standard profile URLs and additional user data, enable Profile Scraper Mode in the input settings. Please note that visiting individual profiles incurs additional usage costs.

Note: The total number of reactions is limited by the LinkedIn website reactions loader pop-up. Currently, the website stops loading more reactions after 1218 items. This Actor is scraping the LinkedIn website. It can only get the information that is available on the website.

#### Sample output data

Here is the example reaction output of this actor:

```json
{
  "id": "urn:li:fsd_reaction:(urn:li:fsd_profile:ACoAAAMHAagBPz-UgeRDsX3klfoVZEkDw1ulS7E,urn:li:ugcPost:7329207002977443840,0)",
  "reactionType": "LIKE",
  "actor": {
    "id": "ACoAAAMHAagBPz-UgeRDsX3klfoVZEkDw1ulS7E",
    "name": "Gangotri Dey (Ph.D)",
    "linkedinUrl": "https://www.linkedin.com/in/ACoAAAMHAagBPz-UgeRDsX3klfoVZEkDw1ulS7E",
    "position": "Licensing Officer | Intellectual Property | Patents | Technology Transfer | Egalitarian | Numismatist",
    "pictureUrl": "https://media.licdn.com/dms/image/v2/D4E03AQGDj6wx_xJbRQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1668631616852?e=1753315200&v=beta&t=12ishzrb2wqXHERve9a-wNaL4_V6H6a2rA76UYX5MWI",
    "picture": {
      "url": "https://media.licdn.com/dms/image/v2/D4E03AQGDj6wx_xJbRQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1668631616852?e=1753315200&v=beta&t=12ishzrb2wqXHERve9a-wNaL4_V6H6a2rA76UYX5MWI",
      "width": 594,
      "height": 594,
      "expiresAt": 1753315200000
    }
  },
  "postId": "7329207003942125568"
}
```

### Linkedin Post Reactions 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

## `posts` (type: `array`):

Queries to search LinkedIn profiles by name.

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

Maximum number of reactions to scrape per each post

## `reactionTypeFilter` (type: `array`):

Select specific reaction types to scrape. If none selected, all reaction types will be scraped.

## `profileScraperMode` (type: `string`):

Choose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data.

## Actor input object example

```json
{
  "posts": [
    "https://www.linkedin.com/posts/satyanadella_today-at-microsoft-build-we-showed-you-how-activity-7330296202275495938-EWFD?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
    "https://www.linkedin.com/posts/microsoft-events_microsoft-build-has-arrived-in-seattle-and-ugcPost-7329991434395160578-GnK7?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
    "https://www.linkedin.com/feed/update/urn:li:activity:7320867199693246465/",
    "https://www.linkedin.com/feed/update/urn:li:activity:7408723748973056001?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7408723748973056001%2C7408723949095772161%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287408723949095772161%2Curn%3Ali%3Aactivity%3A7408723748973056001%29"
  ],
  "maxItems": 10,
  "profileScraperMode": "short"
}
```

# 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 = {
    "posts": [
        "https://www.linkedin.com/posts/satyanadella_today-at-microsoft-build-we-showed-you-how-activity-7330296202275495938-EWFD?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
        "https://www.linkedin.com/posts/microsoft-events_microsoft-build-has-arrived-in-seattle-and-ugcPost-7329991434395160578-GnK7?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
        "https://www.linkedin.com/feed/update/urn:li:activity:7320867199693246465/",
        "https://www.linkedin.com/feed/update/urn:li:activity:7408723748973056001?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7408723748973056001%2C7408723949095772161%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287408723949095772161%2Curn%3Ali%3Aactivity%3A7408723748973056001%29"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("harvestapi/linkedin-post-reactions").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 = {
    "posts": [
        "https://www.linkedin.com/posts/satyanadella_today-at-microsoft-build-we-showed-you-how-activity-7330296202275495938-EWFD?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
        "https://www.linkedin.com/posts/microsoft-events_microsoft-build-has-arrived-in-seattle-and-ugcPost-7329991434395160578-GnK7?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
        "https://www.linkedin.com/feed/update/urn:li:activity:7320867199693246465/",
        "https://www.linkedin.com/feed/update/urn:li:activity:7408723748973056001?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7408723748973056001%2C7408723949095772161%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287408723949095772161%2Curn%3Ali%3Aactivity%3A7408723748973056001%29",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("harvestapi/linkedin-post-reactions").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 '{
  "posts": [
    "https://www.linkedin.com/posts/satyanadella_today-at-microsoft-build-we-showed-you-how-activity-7330296202275495938-EWFD?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
    "https://www.linkedin.com/posts/microsoft-events_microsoft-build-has-arrived-in-seattle-and-ugcPost-7329991434395160578-GnK7?utm_source=share&utm_medium=member_desktop&rcm=ACoAACzazy4B3ajZsA0WxWr6m4S77iItYbYCLZM",
    "https://www.linkedin.com/feed/update/urn:li:activity:7320867199693246465/",
    "https://www.linkedin.com/feed/update/urn:li:activity:7408723748973056001?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7408723748973056001%2C7408723949095772161%29&dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287408723949095772161%2Curn%3Ali%3Aactivity%3A7408723748973056001%29"
  ],
  "maxItems": 10
}' |
apify call harvestapi/linkedin-post-reactions --silent --output-dataset

```

## MCP server setup

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

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/S6mgSO5lezSZKi0zN/builds/qa0pb5QkytsGYeXQ3/openapi.json
