# LinkedIn Post Details Scraper (`automly/linkedin-post-details-scraper`) Actor

Scrape LinkedIn posts by link, URN or ID: full text, date, author, likes, comment count, first comments, images, video and documents. No login or cookies.

- **URL**: https://apify.com/automly/linkedin-post-details-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 posts

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/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 Details Scraper

### What is LinkedIn Post Details Scraper?

**LinkedIn Post Details Scraper** lets you **get the full details of any public LinkedIn post** from its link, URN or ID: the post text, date, author, likes, number of comments, the first comments, images, video and documents. Paste post links, click **Start**, and download the posts as Excel, CSV or JSON.

- ⚡ **Fast:** 2 posts in about 5 seconds, 99 posts in about a minute (our tests)
- 🔗 **Links, URNs or IDs:** `/posts/...` links, `/feed/update/urn:li:activity:...` links (or `urn:li:share:...` and `urn:li:ugcPost:...`), the URN on its own or just the 19-digit post ID
- 💬 **Comments included:** the first comments of every post at no extra charge
- 🔓 **No login:** no LinkedIn account or cookies needed, so no account can get restricted

### What can LinkedIn Post Details Scraper do?

- **Scrape a single LinkedIn post** or a list of thousands, one row per post
- **Read posts in any form**: share links, feed links, URNs and IDs, mixed in one list; a post given twice is saved once
- **Get engagement numbers** for reporting: likes (reactions) and comment counts at the time of the run
- **Get the media**: image links, the video with its thumbnail and length, and document posts' PDF link
- Export to Excel, CSV, JSON, HTML or XML, or send the posts to Google Sheets, Make, Zapier and more

### What data can you extract from a LinkedIn post?

| | | |
|---|---|---|
| 📝 Post text | 📅 Date posted | 🔗 Post link |
| 👍 Likes (reactions) | 💬 Number of comments | 🗨️ First comments (text, date, author, likes) |
| 🖼️ Images | 🎬 Video link, thumbnail and length | 📄 Document title, pages, PDF link |
| 👤 Author name and link | 🏢 Person or company | 👥 Author's followers |
| 🆔 Post ID | 🏷️ Post, video or article | 🔁 Shared post (for quote posts) |

### How to scrape LinkedIn post details

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open **LinkedIn Post Details Scraper**.
3. Paste LinkedIn post links, URNs or IDs, one per line.
4. Click **Start**, then download the posts as Excel, CSV, JSON or HTML.

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

You pay only for the posts you get, plus a tiny fee when a run starts; comments come with each post at no extra charge.

| Apify plan | Price per 1,000 posts | Run start |
|---|---|---|
| Free | $1.50 | $0.00005 |
| Starter (Bronze) | $1.50 | $0.00005 |
| Scale (Silver) | $1.50 | $0.00005 |
| Business (Gold) and up | $1.50 | $0.00005 |

For example, 1,000 posts cost $1.50. Every Apify account gets **$5 of free usage each month**, so you can try it at no cost. The **Pricing** tab always shows the current prices.

### ⬇️ Input

| Setting | What it does |
|---|---|
| **Post links** | LinkedIn post links, one per line: `https://www.linkedin.com/posts/...`, `https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/`, `urn:li:activity:7508551662240886784` (or a `urn:li:share:` or `urn:li:ugcPost:` URN) or `7508551662240886784` |
| **Post URN or ID** | One more post by its ID or URN, handy when you call the scraper for one post at a time |
| **Include comments** | Add the first comments shown on each post (on by default, no extra charge) |

Two posts by link:

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU",
    "https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/"
  ]
}
```

One post by its ID, without comments:

```json
{
  "urn": "7508551662240886784",
  "includeComments": false
}
```

### ⬆️ Output

Every post is one row (text, comments and media links shortened):

```json
{
  "url": "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU",
  "id": "7504213608235438080",
  "type": "video",
  "text": "Since the year 2000, the UN's drug policy body has passed nearly 300 resolutions. Nineteen focused specifically on children. ...",
  "postedAt": "2026-09-11T16:25:45.749Z",
  "author": {
    "name": "Richard Branson",
    "url": "https://www.linkedin.com/in/rbranson",
    "type": "person",
    "followers": 18649143,
    "image": "https://media.licdn.com/dms/image/v2/C4D03AQHh6_Wth5f3rQ/profile-displayphoto-shrink_200_200/..."
  },
  "likes": 450,
  "commentsCount": 92,
  "comments": [
    {
      "text": "Giving young people a voice could also reveal gaps that adults working on policy may miss.",
      "postedAt": "2026-09-12T16:44:56.309Z",
      "authorName": "(the commenter's name)",
      "likes": 5
    }
  ],
  "video": {
    "url": "https://dms.licdn.com/playlist/vid/v2/D4D10AQHg4bM_mz1FeQ/mp4-360p-30fp-crf28/...",
    "thumbnail": "https://media.licdn.com/dms/image/v2/D4D10AQHg4bM_mz1FeQ/videocover-high/...",
    "duration": "PT3M21S"
  },
  "images": [],
  "sharedPost": null,
  "document": null,
  "isRepost": false,
  "sourceUrl": "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU"
}
```

Image posts list their image links in `images`. A document post (slides or a PDF) has `"document": {"title": "...", "pageCount": 12, "pdfUrl": "https://media.licdn.com/dms/document/...", "coverImages": ["...", "...", "..."]}`. A post that shares another post with a comment has `"sharedPost": {"text": "...", "url": "...", "authorName": "...", "authorUrl": "..."}`. `sourceUrl` is the link, URN or ID you gave for the post. Image, video and document links expire after a few days, so download the files you want to keep.

The **Posts** tab shows the posts as a table, the **Authors** tab who wrote them and their followers. The run report lists any post that could not be read, and why.

### How can I use LinkedIn post data?

- **Campaign reporting:** collect likes and comment counts of your own or your clients' posts for a report or dashboard
- **Influencer and creator vetting:** check the engagement of the posts a creator links you to
- **Content research:** save the text and media of posts you want to study or quote
- **Monitoring:** run the same list on a schedule to see how a post's numbers grow
- **AI and research datasets:** turn a list of post links into clean text with dates, authors and comments

### Use it from your own code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automly/linkedin-post-details-scraper").call(run_input={
    "postUrls": ["https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/"],
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["postedAt"], post["author"]["name"], post["likes"], post["commentsCount"])
```

### ❓FAQ

#### Do I need a LinkedIn account or cookies?

No. The scraper uses only what LinkedIn shows to visitors who are not logged in, so it never touches your LinkedIn account and nothing can get restricted.

#### Which links work?

Post links from the share menu (`linkedin.com/posts/...`), feed links (`linkedin.com/feed/update/urn:li:activity:...`, `.../urn:li:share:...` or `.../urn:li:ugcPost:...`), the URN on its own (`urn:li:activity:...`, `urn:li:share:...`, `urn:li:ugcPost:...`) and the 19-digit post ID. Links from any country site (`uk.linkedin.com`, `de.linkedin.com`) and links with tracking parameters work too. Profile and company links are listed in the run report as not post links; for a person's or a company's posts, use [LinkedIn Posts Scraper](https://apify.com/automly/linkedin-posts-scraper).

#### Can I get all the comments or the list of people who reacted?

You get the number of reactions and comments for every post, plus the first comments LinkedIn shows (up to 10) with their text, date, author and likes. LinkedIn shows the full comment list and the people who reacted only to logged-in members, so they are not included.

#### Why is a post missing from my results?

The post was deleted, is shown to logged-in members only, or the link is not a post link. The run report lists every such post and why, and the run still finishes with the other posts.

#### Can I connect LinkedIn Post Details Scraper to other tools or AI agents?

Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let AI assistants and agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

#### Is it legal to scrape LinkedIn posts?

This scraper collects only public data that LinkedIn shows to anyone without logging in. Posts and comments can still contain personal data, which is protected by laws such as the GDPR in Europe and the CCPA in California. You are responsible for having a legitimate reason to collect and use the data and for using it lawfully. If you are unsure, check with a lawyer. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

This scraper is not affiliated with, endorsed by or connected to LinkedIn or Microsoft.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the input you used.

### Scrape more LinkedIn data

| Scraper | What it gets |
|---|---|
| [LinkedIn Posts Scraper](https://apify.com/automly/linkedin-posts-scraper) | Posts of people and companies, or single posts |
| [LinkedIn Post Search Scraper](https://apify.com/automly/linkedin-post-search-scraper) | Posts about any topic |
| [LinkedIn Company Posts Scraper](https://apify.com/automly/linkedin-company-posts-scraper) | A company's posts, newest first |
| [LinkedIn Company Details Scraper](https://apify.com/automly/linkedin-company-scraper) | Company pages: about, size, offices, followers |

### ⭐ Your feedback

Ideas, missing fields or problems: open the **Issues** tab and we'll take a look. If LinkedIn Post Details Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `postUrls` (type: `array`):

LinkedIn post links, one per line, e.g. https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/ or a https://www.linkedin.com/posts/... link. A post's URN (urn:li:activity:..., urn:li:share:... or urn:li:ugcPost:...) or its 19-digit ID works too. Each post is saved once, however many forms of it you add.

## `urn` (type: `string`):

One more post by its ID or URN, e.g. 7508551662240886784 or urn:li:activity:7508551662240886784. Handy when you call the scraper for one post at a time; it is read together with the links above.

## `includeComments` (type: `boolean`):

Add the first comments shown on each post (up to 10) with their text, date, author name and likes. No extra charge.

## `proxyConfiguration` (type: `object`):

Proxy settings. The default works for most runs, and other Apify Proxy choices run the same way. Your own proxy links are used as given.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU",
    "https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/"
  ],
  "includeComments": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `authors` (type: `string`):

No description

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

No description

## `report` (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 = {
    "postUrls": [
        "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU",
        "https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/linkedin-post-details-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 = {
    "postUrls": [
        "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU",
        "https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/linkedin-post-details-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 '{
  "postUrls": [
    "https://www.linkedin.com/posts/rbranson_since-the-year-2000-the-uns-drug-policy-activity-7504213608235438080-PvRU",
    "https://www.linkedin.com/feed/update/urn:li:activity:7508551662240886784/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/linkedin-post-details-scraper --silent --output-dataset

```

## MCP server setup

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