# Linkedin post reactions scraper (`curious_coder/linkedin-post-reactions-scraper`) Actor

Scrape reactions or likes from linkedin post

- **URL**: https://apify.com/curious_coder/linkedin-post-reactions-scraper.md
- **Developed by:** [Curious Coder](https://apify.com/curious_coder) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 627 total users, 1 monthly users, 100.0% runs succeeded, 22 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

### How it works

Scrape reactions or likes of a linkedin post by providing link to any linkedin post. It gives you name, profile url, reaction type, etc of people who reacted to the post.

For extracting comments from LinkedIn posts, you can use the [LinkedIn Comment Scraper](https://apify.com/curious_coder/linkedin-comment-scraper) which provides complete comment details including nested replies. To scrape the posts themselves, check out the [LinkedIn Post Search Scraper](https://apify.com/curious_coder/linkedin-post-search-scraper) for extracting posts from profiles, companies, and search results. For detailed profile information about the people who reacted, use the [LinkedIn Profile Scraper](https://apify.com/curious_coder/linkedin-profile-scraper). You can also scrape company data with the [LinkedIn Company Scraper](https://apify.com/curious_coder/linkedin-company-scraper), search for people using the [LinkedIn People Search Scraper](https://apify.com/curious_coder/linkedin-people-search-scraper), and access premium Sales Navigator data with the [LinkedIn Sales Navigator Search Scraper](https://apify.com/curious_coder/linkedin-sales-navigator-search-scraper).

### Getting Started

Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension

Login to your linkedin account

Click on the extension and export the linkedin cookies

Paste the cookies into this actor's `Linkedin cookie` input field

Here is the sample output of this actor:

```json
{
    "profileId": "ACoAAC4oT_QBnojdo2tLwZGxFBDOoaFi4GvRwTQ",
    "reactionType": "LIKE",
    "name": "Pascal Metivier",
    "headline": "Technicien Leader Section fraisage CN chez Ravaj",
    "profileUrl": "https://www.linkedin.com/in/ACoAAC4oT_QBnojdo2tLwZGxFBDOoaFi4GvRwTQ",
    "connectionType": "3rd+",
    "photoUrl": "https://media.licdn.com/dms/image/C4E03AQEzAnMiq2IzRQ/profile-displayphoto-shrink_100_100/0/1596317924637?e=1696464000&v=beta&t=61DbKTxAXdK232c0qjLTceW9b4n-aDvE9VQ5knLWhdw"
  }
```

# Actor input Schema

## `postUrl` (type: `string`):

No description

## `cookie` (type: `array`):

Cookie used to authorize actor with linkedin.com. Install [Cookie-Editor](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) chrome extension. Login to your linkedin.com account. Click on the extension and export the linkedin.com cookies. Insert the contents here

## `userAgent` (type: `string`):

[Click here](https://www.google.com/search?q=my+user+agent) to get the user agent info.

## `startPage` (type: `integer`):

Page number to start scraping

## `count` (type: `integer`):

Leave this field empty if you want to scrape all items.

## `minDelay` (type: `integer`):

Minimum duration in seconds to wait before scraping next page

## `maxDelay` (type: `integer`):

Maximum duration in seconds to wait before scraping next page

## `proxy` (type: `object`):

Choose a proxy from the country where you are logged into LinkedIn

## Actor input object example

```json
{
  "startPage": 1,
  "minDelay": 2,
  "maxDelay": 5,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "startPage": 1,
    "minDelay": 2,
    "maxDelay": 5,
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("curious_coder/linkedin-post-reactions-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 = {
    "startPage": 1,
    "minDelay": 2,
    "maxDelay": 5,
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("curious_coder/linkedin-post-reactions-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 '{
  "startPage": 1,
  "minDelay": 2,
  "maxDelay": 5,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}' |
apify call curious_coder/linkedin-post-reactions-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,curious_coder/linkedin-post-reactions-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/GG8X5a2rlhcAT6Yo9/builds/QR01BN4TuVzc4Lkqq/openapi.json
