# LinkedIn Post Scraper (no cookies) (`mina_safwat/linkedin-post-scraper-no-cookies`) Actor

Scrapes the details of a single public LinkedIn post — text, author, reactions, comment count and top comments — without a session cookie.

- **URL**: https://apify.com/mina\_safwat/linkedin-post-scraper-no-cookies.md
- **Developed by:** [Mina](https://apify.com/mina_safwat) (community)
- **Categories:** AI, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## LinkedIn Post Scraper

### What does LinkedIn Post Scraper do?

**Give it a link to a public [LinkedIn](https://www.linkedin.com) post and it returns that post's details as structured data** — the text, who wrote it, when it was published, how many reactions and comments it has, and any image or video attached.

No LinkedIn account, login, or cookie is needed. Paste a link, press Start, and download the result as JSON, CSV or Excel — or pull it straight from the Apify API.

### Why use LinkedIn Post Scraper?

- **Track performance** — record reactions and comments on a post, and run it again later to see how they grew.
- **Archive posts** — keep a copy of the text, author and media of posts that matter to you.
- **Build reports** — the output is flat and predictable, so it drops straight into a spreadsheet or database.
- **Monitor accounts** — collect the numbers on any public post from your team, your competitors, or your industry.

### How to use LinkedIn Post Scraper

1. Paste one or more **LinkedIn post URLs** into the input.
2. Optionally tick **Fetch comments and follower count** if you want those too.
3. Click **Start**.
4. When the run finishes, open the **Output** tab to preview the data or export it.

#### Which links work

All of these point at the same post, and any of them is accepted:

```
https://www.linkedin.com/posts/williamhgates_some-slug-activity-7482647567445495808-9S6u
https://www.linkedin.com/feed/update/urn:li:activity:7482647567445495808/
urn:li:activity:7482647567445495808
7482647567445495808
```

The easiest way to get one: open the post on LinkedIn, click the **⋯** menu in its top-right corner, and choose **Copy link to post**.

### Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| **LinkedIn post URLs** (`post_urls`) | array | Yes | One or more post links. |
| **Fetch comments and follower count** (`include_comments`) | boolean | No | Adds the top comments, the author's follower count and the video length. Slower. Off by default. |
| **Max concurrent requests** (`max_concurrency`) | integer | No | How many posts to fetch at once. Default 1. |
| **Include raw data** (`include_raw`) | boolean | No | Adds the unprocessed page data to each record, for debugging. Off by default. |

Example input:

```json
{
  "post_urls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7482647567445495808/"
  ],
  "include_comments": true
}
```

### Output

One record per post you submit:

```json
{
  "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7482647567445495808",
  "activity_id": "7482647567445495808",
  "post_type": "video",
  "text": "Nuclear fission and fusion could give the world virtually unlimited clean energy.",
  "published_at": "2026-07-14T04:10:00Z",
  "reaction_count": 4150,
  "comment_count": 403,
  "author_name": "Bill Gates",
  "author_headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
  "author_profile_url": "https://www.linkedin.com/in/williamhgates",
  "author_avatar": "https://media.licdn.com/dms/image/v2/…",
  "author_followers": 40573405,
  "images": [],
  "video_url": "https://dms.licdn.com/playlist/vid/v2/…",
  "video_thumbnail": "https://media.licdn.com/dms/image/v2/…",
  "video_duration": "PT2M32S",
  "comments": [
    {
      "text": "Demystifying the science behind fission and fusion",
      "author_name": "Bill Gates",
      "published_at": "2026-07-14T04:10:26Z",
      "like_count": 12
    }
  ],
  "is_unavailable": false,
  "error": null
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

#### Data fields

| Field | Description |
| --- | --- |
| `post_url` | Link to the post. |
| `activity_id` | LinkedIn's own id for the post. |
| `post_type` | `post` for text and images, `video` for a native video. |
| `text` | The post as written. |
| `published_at` | When it was posted. |
| `reaction_count` | Total reactions. |
| `comment_count` | Total comments. |
| `author_name` | Who posted it. |
| `author_headline` | Their job title line. |
| `author_profile_url` | Link to their profile. |
| `author_avatar` | Their profile photo. |
| `author_followers` | Their follower count. Needs **Fetch comments and follower count**. |
| `images` | Images attached to the post. |
| `video_url` | Direct link to the video file, if the post has one. |
| `video_thumbnail` | The video's cover image. |
| `video_duration` | How long the video is. Needs **Fetch comments and follower count**. |
| `comments` | Top comments, each with its author, text, date and likes. Needs **Fetch comments and follower count**. |
| `is_unavailable` | `true` if the post is deleted or not public. |
| `error` | Filled in only if something went wrong with that link. |

### What it cannot return

- **The full comment thread.** LinkedIn shows only the top handful of comments publicly. `comment_count` is the true total; `comments` is the visible sample.
- **A breakdown of reactions.** You get the total, not the split between Like, Celebrate, Insightful and so on.
- **Private or deleted posts.** These come back with `is_unavailable: true`.

### How much does it cost to scrape LinkedIn posts?

Very little. A typical post costs a fraction of a cent, and a batch of five finishes in about twenty seconds. Ticking **Fetch comments and follower count** roughly doubles the work per post.

### Tips

- **Leave Max concurrent requests at 1** unless you are in a hurry. LinkedIn limits how fast anyone can read, and going faster mostly means more retries.
- **Batch your links into one run** instead of starting a separate run per post.
- **Only tick Fetch comments when you need them** — without it, runs are faster and cheaper.

### FAQ and support

**Do I need a LinkedIn account or cookie?** No. Nothing to log in with and nothing to keep alive.

**Why is `comments` shorter than `comment_count`?** LinkedIn only publishes the top few comments to people who are not signed in. The count is the real total.

**Why did a post come back as unavailable?** It was deleted, made private, or its author limited who can see it.

**Is scraping LinkedIn legal?** This Actor collects only publicly available data. You are responsible for how you use it, and you should not collect personal data without a legal basis. If in doubt, take legal advice.

Found a bug, or need a field that is not here? Open an issue on the **Issues** tab.

# Actor input Schema

## `post_urls` (type: `array`):

Post links to scrape. Accepts the shareable link (https://www.linkedin.com/posts/…-activity-<id>-<hash>/), a feed link (https://www.linkedin.com/feed/update/urn:li:activity:<id>/), a bare urn:li:activity:<id>, or just the numeric activity id.

## `max_concurrency` (type: `integer`):

Higher concurrency is faster but more likely to be flagged. 1 is safest; consider 2-3 for small batches.

## `include_comments` (type: `boolean`):

Off by default. The post itself comes from LinkedIn's lightweight embed page; turning this on additionally loads the full post page, which is about ten times larger, to add the top comments, the author's follower count and the video duration.

## `include_raw` (type: `boolean`):

Off by default. Turn on for debugging, or to reach fields not yet surfaced as structured properties.

## Actor input object example

```json
{
  "post_urls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7487492118366728192/"
  ],
  "max_concurrency": 1,
  "include_comments": false,
  "include_raw": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "post_urls": [
        "https://www.linkedin.com/feed/update/urn:li:activity:7487492118366728192/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mina_safwat/linkedin-post-scraper-no-cookies").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 = { "post_urls": ["https://www.linkedin.com/feed/update/urn:li:activity:7487492118366728192/"] }

# Run the Actor and wait for it to finish
run = client.actor("mina_safwat/linkedin-post-scraper-no-cookies").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 '{
  "post_urls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7487492118366728192/"
  ]
}' |
apify call mina_safwat/linkedin-post-scraper-no-cookies --silent --output-dataset

```

## MCP server setup

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

```

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/b2yOqhHcxv5cSY4V9/builds/JCZz9sdgzij20cN7m/openapi.json
