# LinkedIn Posts Scraper (`goat255/linkedin-posts-scraper`) Actor

Scrape recent public LinkedIn posts with no login or cookies: from any person's profile, any company page or single post URLs. Get text, exact date, author, reactions, comment count, images, video links and the top comments.

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

## Pricing

from $1.20 / 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

### What it does

Reads recent public LinkedIn posts with no login and no cookies. Give it any mix of company pages, people's profiles and single post URLs, and get one row per post: text, exact publish date, author, reactions, comment count, images and video links. Turn on `includeComments` to add the top comments.

**Company pages and single post URLs** return posts every time the page is public. **People's profiles** return posts only when LinkedIn shows that person's recent activity to logged-out readers. In our tests, 13 of 15 personal profiles returned posts, and the result held on every run: the same two profiles never showed posts and came back as a `no_results` row, which is free.

Use it to follow competitors and prospects, spot buying signals, research content and watch what a company is saying.

### Input

| Field | Type | Description |
|---|---|---|
| `urls` | list | Person profile, company and single post URLs, in any mix. |
| `maxPostsPerSource` | integer | Most recent posts to keep per profile or company, 10 by default. |
| `includeComments` | boolean | Open each post for top comments and the full comment count. Slower, no extra charge. |
| `includeArticles` | boolean | Keep long-form articles a person has published. On by default. |
| `includeReposts` | boolean | Keep posts a company reposted from other authors. On by default. |
| `maxConcurrency` | integer | Pages read at once, 5 by default. |
| `proxyConfiguration` | object | Leave the default unless you have a reason to change it. |

### Example input

```json
{
  "urls": [
    "https://www.linkedin.com/in/example-user",
    "https://www.linkedin.com/company/example-company"
  ],
  "maxPostsPerSource": 10,
  "includeComments": true
}
```

### Output sample

```json
{
  "input": "https://www.linkedin.com/company/example-company",
  "postId": "7500000000000000000",
  "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000",
  "postType": "image",
  "authorName": "Acme Co",
  "authorUrl": "https://www.linkedin.com/company/example-company",
  "authorType": "company",
  "headline": null,
  "text": "We just opened our new workshop.",
  "publishedAt": "2026-10-30T14:00:01.000Z",
  "reactions": 363,
  "comments": 33,
  "isRepost": false,
  "repostedBy": null,
  "repostedAt": null,
  "imageUrls": ["https://example.com/post.jpg"],
  "videoUrl": null,
  "linkUrl": null,
  "topComments": [
    {"authorName": "Example User", "authorUrl": null, "text": "Congratulations!", "publishedAt": "2026-10-30T15:00:00.000Z", "likes": 4}
  ],
  "scrapedAt": "2026-11-05T00:00:00.000Z"
}
```

### Notes

- **How far back it goes:** this actor returns what LinkedIn shows a logged-out reader, usually the latest 8 to 20 items per person or company. For full history, run it on a schedule and keep the rows.
- Posts from people carry `reactions` directly. Their comment count appears when `includeComments` is on.
- Shares and articles often have no `text` of their own. Their title is in `headline` instead.
- Each top comment carries the commenter's name, text, date and likes. The commenter's profile link is not included.
- `linkUrl` is reserved for posts that link out, and is usually `null`.
- Keyword search across all of LinkedIn is not offered, because it needs a login.
- You pay per post delivered. A page that could not be read comes back as a row with a `status` and a `message`, and it is not charged.
- This actor is independent and is not affiliated with or endorsed by LinkedIn.
- To improve our actors we collect anonymized usage telemetry (run stats and input patterns). No personal account data is collected.

**Found this useful?** [Leave a quick review](https://apify.com/goat255/linkedin-posts-scraper/reviews). It takes a few seconds and it genuinely helps other people find the actor.

# Actor input Schema

## `urls` (type: `array`):

Any mix of person profile URLs (linkedin.com/in/example-user), company URLs (linkedin.com/company/example-company) and single post URLs (linkedin.com/posts/...).

## `maxPostsPerSource` (type: `integer`):

Most recent posts to keep from each profile or company. LinkedIn shows a logged-out reader about 8 to 20 recent items per source.

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

Also open each post to add its top comments and full comment count. Slower, no extra charge.

## `includeArticles` (type: `boolean`):

Keep articles a person has published alongside their posts.

## `includeReposts` (type: `boolean`):

Keep posts a company has reposted from other authors.

## `maxConcurrency` (type: `integer`):

How many pages to read at the same time.

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

Which addresses to read from. The default suits nearly every run, so leave it unless you have a reason to change it.

## Actor input object example

```json
{
  "urls": [
    "https://www.linkedin.com/company/microsoft"
  ],
  "maxPostsPerSource": 5,
  "includeComments": false,
  "includeArticles": true,
  "includeReposts": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "https://www.linkedin.com/company/microsoft"
    ],
    "maxPostsPerSource": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("goat255/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 = {
    "urls": ["https://www.linkedin.com/company/microsoft"],
    "maxPostsPerSource": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("goat255/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 '{
  "urls": [
    "https://www.linkedin.com/company/microsoft"
  ],
  "maxPostsPerSource": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call goat255/linkedin-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goat255/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/Ow1AhxToAtkNrrgnB/builds/9hLIMwYZg40ZfdccB/openapi.json
