# LinkedIn Posts Scraper: Profiles, Companies & Links (`luzivanlt/linkedin-posts-scraper`) Actor

LinkedIn posts from post links, company pages and profiles, with the comments each post shows. $0.80 per 1,000 posts. Text, author, headline, followers, date, reactions, reaction types, images, video transcript and comments; each row also says which page it came from. No login needed.

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

## Pricing

from $0.56 / 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.
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 Posts Scraper: Profiles, Companies & Links

Give it LinkedIn post links, company pages or profiles and it saves each post with its full text, its author, its date, its reactions and the comments the post page shows. One row per post, and every row found on a page says which page it came from. No LinkedIn account or cookies needed.

Each row also carries the author's headline and follower count, the kinds of reaction the post got, every image link, the video file with its length and captions, and whether the page is a repost and who shared it.

Tested end to end on 2026-11-15. Latest check: 1,000 of 1,000 post links in 18 minutes on a slow window; 15 of 16 company pages read in a 2-minute run that saved 143 posts; 2 of 20 profiles read, the other 18 refused by the site and not charged.

### What does this Actor do?

You give it three kinds of link. A post link is read directly and becomes one row. A company page or a profile is read as a signed-out visitor sees it, and each post the page shows becomes a row: about ten on a company page and about ten on a profile, plus any of the page owner's own posts the page lists beside them. Newsletters written on LinkedIn are not posts and are left out.

It stops when every link has been read, when ten posts in a row produce nothing (which means the links are wrong rather than the site), or shortly before the run's timeout. The final message says how many pages were read, how many posts each page showed, how many posts were saved, and why the run stopped if it stopped early.

The site shows a page's latest posts and no way to page further back, so a company page gives about ten of its newest posts and a profile about ten. A post's page shows its newest comments and no paging either, so each row carries the comments the page shows and the post's own comment total tells you how many there are.

Each post comes with:

- the post type (text, image, video or repost), its first line and its full text, links kept
- the author's name, profile or company link, headline, follower count and picture
- when it was published, the age the page shows, and whether it was edited
- the total reactions, the kinds of reaction, and the total comments
- the comments the page shows, each with its author, link, text, date, age and likes
- every image link the post carries
- for a video: the file link, the still frame, the length in seconds and the spoken words when the video has captions
- for a repost: the flag, who shared it, and the original author's details
- when the row came from a page: the company or profile it was found on and whether that page is a company page or a profile

### Why use it?

- **A company's or a person's posts without collecting their links.** Paste the page itself. Each post the page shows is saved, with the page's name on every row.
- **The comments come with the post.** Every row carries the comments the post page shows, with their authors and likes, at no extra charge.
- **Video posts keep their words.** A video post returns its length, its file link, its still frame and the transcript LinkedIn's own captions carry, so a video is searchable text.
- **Reposts are labelled, not lost.** A repost page has no structured data at all; this Actor reads the card, so the original author and the person who shared it both come back, and `is_repost` says which is which.
- **The post's own id on every row.** It stays the same across runs, so two runs can be matched and new posts found, even when one run read the post and the next read the page.
- **Export as JSON, CSV or Excel**, or pull the same rows through Apify's API for a dashboard or a model.

### How to use it

1. Paste links into **Posts**, **Companies** or **Profiles**. One kind alone is enough.
2. Press Start. There is nothing else to set.
3. Read the run's final message: it says how many pages were read and what each one showed, how many posts were saved, and how many links were not posts.

A run with no changes reads one post by Bill Gates, so it returns a row on any day.

#### Links that work

- a post: `https://www.linkedin.com/posts/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92` or `https://www.linkedin.com/feed/update/urn:li:activity:7527047777168736256/`
- a company page: `https://www.linkedin.com/company/microsoft/`
- a profile: `https://www.linkedin.com/in/satyanadella/`

Both post shapes point at the same post, and the same post given twice in a run is saved once. A tracking query on the end of a link is ignored, and a country subdomain such as `uk.linkedin.com` is read as `www.linkedin.com`. A company page's other tabs (`/about/`, `/posts/`, `/jobs/`, `/people/`) are read as the page itself, and so is a profile's activity tab.

A line that is not one of these stops the run before anything is read, naming the line. That includes a newsletter article and a search page.

### Input

| **Title** (`key`) | What it does | Default |
| --- | --- | --- |
| **Posts** (`postUrls`) | LinkedIn post links, one per line, up to 1,000. Either post shape works. A line that is not a post link stops the run before anything is read, naming the line. | one post by Bill Gates |
| **Companies** (`companyUrls`) | LinkedIn company links, one per line. Each page is read as a signed-out visitor sees it: about ten newest posts. A line that is not a company page stops the run before anything is read, naming the line. | empty |
| **Profiles** (`profileUrls`) | LinkedIn profile links, one per line. Each profile gives about ten newest posts when the site answers; in the latest check 2 of 20 profiles answered and the rest were reported as refused, at no charge. LinkedIn newsletters on a profile are left out. | empty |

Give at least one link. Up to 1,000 post links and 200 pages in a run; the posts a page lists are saved and charged like any other post. A page the site refuses is named in the final message and costs nothing.

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92"
  ],
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/"
  ],
  "profileUrls": [
    "https://www.linkedin.com/in/satyanadella/"
  ]
}
```

### Output

One row per post.

```json
{
  "post_id": "7527433167067193345",
  "post_url": "https://www.linkedin.com/posts/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92",
  "page_url": "https://www.linkedin.com/company/microsoft/",
  "page_name": "Microsoft",
  "page_type": "company",
  "post_type": "video",
  "author_name": "Bill Gates",
  "author_url": "https://www.linkedin.com/in/williamhgates",
  "author_headline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
  "author_image_url": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_200_200/B56ZRi8g.aGsAY-/0/1736826818802",
  "published_at": "2026-11-14T18:11:59.973Z",
  "posted_ago": "9h",
  "is_edited": false,
  "is_repost": false,
  "text": "After 20 years of working abroad, Dr. Segenet Kelemu returned to her home country of Ethiopia to help strengthen agriculture research across the continent. Today, she and her team are turning…",
  "reactions_count": 832,
  "reaction_types": "LIKE, EMPATHY, PRAISE",
  "comments_count": 139,
  "comments_returned": 8,
  "comments": [
    {
      "author_name": "Vikas Chaudhary",
      "author_url": "https://www.linkedin.com/in/vikas-chaudhary",
      "text": "As a pharmacist, I see how closely food security and public health are connected.",
      "published_at": "2026-11-14T18:17:51.630Z",
      "likes": 3
    }
  ],
  "video_url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQHES3EcnsyZDg/video-auto-caption-srt-acs-singleton/B4EaHbQeBxHMD8-/0/1794679944335",
  "video_thumbnail_url": "https://media.licdn.com/dms/image/v2/D4E10AQHES3EcnsyZDg/videocover-high/B4EaHbQeBxHMD8-/0/1794679944335",
  "video_duration_seconds": 99,
  "video_transcript": "Africa has enormous agricultural potential, but realizing that potential will require new ways to help farmers protect their crops and produce more food."
}
```

| Field | What it holds |
| --- | --- |
| `post_id` | LinkedIn's own id for the post. It stays the same across runs, so it is the key for matching runs and dropping repeats. |
| `post_url` | The post's public page on LinkedIn, with tracking removed. |
| `page_url` | The company page or profile this post was found on, empty when the post was given as a post link. |
| `page_name` | The company or person whose page listed the post, empty for a post link. |
| `page_type` | `company` or `profile`, empty for a post link. |
| `post_type` | What the post is: `post` for text, `image` for pictures, `video` for a video, `repost` when the page shares someone else's post. |
| `author_name` | The person or company who wrote the post. |
| `author_url` | The author's LinkedIn profile or company page. |
| `author_headline` | The line under the author's name, such as their job title or company, when they show one. |
| `author_followers` | How many followers the author has, when the page states it; person posts usually do not. |
| `author_image_url` | Link to the author's profile picture, when they have one. |
| `published_at` | When the post went live, in ISO 8601. A repost page states only an age, so it is empty there. |
| `posted_ago` | The age the page shows, such as `2h`, `4d` or `1w`. It is the only date a repost page gives. |
| `is_edited` | True when the page marks the post as edited after publishing. |
| `is_repost` | True when the page shows a post the page's own owner shared from someone else. |
| `reposted_by` | The person or company whose page carries the repost, when the post is a repost. |
| `headline` | The first line of the post as LinkedIn states it, which is often the whole point of a short post. |
| `text` | The post's full text as written, with links kept. For a video post this is the description under the video. |
| `reactions_count` | How many reactions the post has, of every kind. |
| `reaction_types` | The kinds of reaction the post received, comma separated, such as `LIKE, PRAISE, EMPATHY`. |
| `comments_count` | How many comments the post has in total, which is usually more than the row carries. |
| `comments_returned` | How many comments are attached to this row; the post page shows up to ten. |
| `comments` | The comments the post page shows: author name and link, text, published date, age and likes. |
| `image_count` | How many images the post carries, when it has any. |
| `images` | Links to the post's images, in the order the post shows them. |
| `video_url` | Link to the post's video file, when the post is a video. |
| `video_thumbnail_url` | Link to the still frame LinkedIn shows for the video. |
| `video_duration_seconds` | The video's length in seconds, when the post is a video. |
| `video_transcript` | The spoken words of the video as LinkedIn's own captions carry them, when it has captions. |

A field is left out of a row when the post does not have it: a text post has no images and no video fields, a person's post usually has no follower count, a repost has no absolute date, and a post given as a link has no page fields. Every row has the post id, the link, the type, the author and the text.

### How much does it cost?

You pay for what you get:

- **$0.80 per 1,000 posts** ($0.0008 each) on the Free plan. Bronze $0.72, Silver $0.64, Gold $0.56 per 1,000.
- **$0.012 per run** that saves at least one post on the Free plan: Bronze $0.0108, Silver $0.0096, Gold $0.0084. One charge per run, because the site asks every run to pass a check before it will answer any post, and that check is the whole cost of a short run: a fast check takes a few seconds, a slow window can take a minute and a half, and the run fee covers either.
- Charged once per post saved to your results. A post given twice in a run, or found on two pages in the same run, is charged once.
- Reading a company page or a profile is not charged on its own. You pay for the posts it lists, and a page that shows no posts costs nothing.
- A link that is not a post, a post that has been deleted, a page the site would not answer, and a post left unread when the run stops are never charged.
- A run that saves nothing is not charged at all.

A run that saves one post costs $0.0128 on the Free plan: $0.0008 for the post and $0.012 for the run. A run of 20 posts costs $0.028. A run of 1,000 posts costs $0.812, or $0.5684 on Gold. Twenty company pages and twenty profiles that together save 143 posts cost $0.1264: 143 posts at $0.0008 plus the $0.012 run.

### How long does a run take?

About 8 seconds for one post, 45 seconds for 100 posts, and 9 to 18 minutes for 1,000 post links: the site's own speed varies by window, and the run reads two posts at a time.

A page is read before its posts are, and a company page answers on the first ask 15 times in 16. A page the site refuses is asked again on another of LinkedIn's country sites before the run gives up on it. Twenty company pages and twenty profiles took 2 minutes in the latest check, which read 17 of the 40 pages and saved 143 posts. A refused page costs about a second and is reported as refused; the rest of the run continues.

### Good to know

- **A page gives its latest posts, not its whole archive.** The site shows about ten posts on a company page and about ten on a profile and offers no way to page further back, so a page is one row per post it shows today. Run it again tomorrow for the new ones: `post_id` stays the same, so the new rows are the difference.
- **LinkedIn newsletters are not posts.** A profile lists its `/pulse/` newsletter articles beside its posts; those are articles with their own page shape, and this Actor leaves them out.
- **A page that shows no posts says so.** Some company pages have nothing to show a signed-out visitor; the run names that page as showing no posts and charges nothing for it.
- **Profiles are the one link the site often refuses.** In the latest check 15 of 16 company pages were read and 2 of 20 profiles were; a refused page is named in the final message, is not charged, and does not stop the run. Post links are read on their own and are not affected.
- **Ten comments per post, not the whole thread.** That is what the post page shows to a reader who is not logged in, and the site offers no way to page through older comments. `comments_count` tells you the real total.
- **A repost page carries only an age.** LinkedIn gives a repost an age such as `4d` and no absolute date, so `published_at` is empty and `posted_ago` is the date you have.
- **A post's own id is stable**, so two runs can be matched and new posts found.
- **A post that has been deleted** is reported as not found in the final message and is not charged.
- **Ten posts in a row that produce nothing** stop the run and the message says so, which is what a list of wrong links looks like.
- **The final message** says how many pages were read, how many posts were saved, how many links were not posts, and why the run stopped.

### FAQ

**Can it read every comment on a post?**
No. The post page shows a post's newest comments and no paging, so a row carries up to ten and `comments_count` gives the total.

**Why were some of my profiles refused?**
LinkedIn answers a profile page only some of the time to a reader who is not logged in: in the latest check 2 of 20 profiles answered and the other 18 did not. Each refused profile is named in the final message and costs nothing. Company pages answer far more often: 15 of 16 in the same check.

**Can it read a company's or a profile's older posts?**
No. A signed-out visitor is shown the latest posts and no archive, so one run gives the newest ten on a company page and the newest ten on a profile. Run the same page weekly and match on `post_id` to build the archive yourself.

**Who is the author when a row comes from a page?**
The post's own author. On a company page that is usually the company; on a profile page it is the person, and the occasional post they reshared keeps its original author and its `is_repost` flag.

**Does it need a LinkedIn account?**
No. No login, no cookies, no browser extension.

**Why is the published date empty on some rows?**
Those rows are reposts. LinkedIn shows a repost an age and nothing more, so `posted_ago` is the only date on the page.

**Can I run 1,000 posts at once?**
Yes. A run of 1,000 post links takes 9 to 18 minutes and costs $0.812 on the Free plan.

**What happens if one link in my list is wrong?**
The run stops before reading anything and names the line. A link that is a post link but points at a deleted post does not stop the run: that post is reported as not found and the rest are read.

# Actor input Schema

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

LinkedIn post links, one per line, up to 1,000. Either shape the site uses works: /posts/…-activity-1234567890-abcd and /feed/update/urn:li:activity:1234567890/. A line that is not a post link stops the run before anything is read, naming the line.

## `companyUrls` (type: `array`):

LinkedIn company links, such as https://www.linkedin.com/company/microsoft/, one per line, up to 200 pages in a run. Each page is read as a signed-out visitor sees it: the latest posts the page shows, about ten. A link that is not a company page stops the run before anything is read, naming the line.

## `profileUrls` (type: `array`):

LinkedIn profile links, such as https://www.linkedin.com/in/satyanadella/, one per line. Each profile is read as a signed-out visitor sees it: about ten of the person's latest posts, plus any of their posts the page lists beside them. LinkedIn answers a profile page less often than a company page: in the latest check 2 of 20 profiles answered. A refused profile is named in the final message and costs nothing. Pulse articles are not posts and are left out.

## Actor input object example

```json
{
  "postUrls": [
    "https://www.linkedin.com/posts/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92"
  ]
}
```

# Actor output Schema

## `posts` (type: `string`):

One row per post in the default dataset; open the link for the overview view.

# 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/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/linkedin-posts-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/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92"] }

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/linkedin-posts-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/williamhgates_after-20-years-of-working-abroad-dr-segenet-activity-7527433167067193345-3q92"
  ]
}' |
apify call luzivanlt/linkedin-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luzivanlt/linkedin-posts-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/WNa3acVvTle5XF400/builds/5zAhEMuRIiJCe34x2/openapi.json
