# LinkedIn Posts Scraper: Profile & Company Posts, No Login (`s_actors/linkedin-posts-scraper`) Actor

Scrape posts from a LinkedIn profile or company page without login or cookies: post text, reaction count, comment count, repost note, direct link. By profile URL or company URL, any mix in one run.

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

## Pricing

from $1.23 / 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: Profile & Company Posts, No Login

**Scrape posts from any public LinkedIn profile or company page, without login or cookies**: post text, reaction count, comment count, a repost note and a direct link to the post. Give it a mix of **profile links** (`linkedin.com/in/<name>`) and **company page links** (`linkedin.com/company/<name>`) in one run.

Use cases: track what an executive, competitor or influencer posts, pull a company's announcement feed into a CRM or Slack digest, build a content/engagement feed for sales and recruiting outreach, feed posts to an AI agent for personalized outreach. A **LinkedIn posts API** with clean JSON, CSV or Excel.

#### What makes it different

| | |
| --- | --- |
| 👤🏢 **One Actor, two kinds of page** | Mix profile and company links in the same run; most scrapers in this niche do only one |
| 🔁 **Original post or repost, on every row** | `activityType` is `post` or `repost`, `authorHandle` names who wrote it and `repostedBy` who reposted it. Likes and comments on other people's posts are never returned |
| 💬 **Reaction and comment counts on every row** | No separate paid step for engagement numbers |
| 🔒 **No account, no cookies** | Only public LinkedIn pages are read; your LinkedIn account is never used or at risk |
| 🆓 **Honest empty result** | A private account, or a profile that hides its activity from visitors who are not logged in, returns a clear note and is never charged |

#### Example

Input: `https://www.linkedin.com/in/satyanadella/`, `https://www.linkedin.com/company/microsoft/`. Real run, 22 Nov 2026:

| From | Text | Reactions | Comments | Reposted by |
| --- | --- | --- | --- | --- |
| satyanadella | Bringing Salesforce to Copilot as we build Copilot as the OS for work! | 4 333 | 262 | — |
| satyanadella | Just wrapped our earnings call. It was a fast start to our fiscal year... | 14 963 | 981 | — |
| satyanadella | Microsoft's goal is to build a frontier ecosystem that enables every organization... (written by `microsoft`) | 355 | 24 | Satya Nadella |
| microsoft | The countdown to #MSIgnite 2027 starts now! We are returning to San Francisco... | 50 | 9 | Microsoft |
| microsoft | Thousands of people, countless ideas, and a shared excitement for what's possible... | 230 | 23 | — |

#### Input

| Field | What it does |
| --- | --- |
| **Profiles or companies** | One per line, any mix: a profile link (`linkedin.com/in/<name>`) or a company page link (`linkedin.com/company/<name>`, also showcase pages) |
| **Max posts per profile/company** | LinkedIn's own guest page shows only the most recent posts without login (about 8-17); this caps how many are returned per target (1-20) |
| **Include reposts** | On by default: also return posts the profile or page reposted from others (`activityType = repost`). Off = original posts only |
| **Max concurrency** | How many profiles/companies to fetch at the same time |

#### Output

| Field | Example |
| --- | --- |
| `input`, `source` | `https://www.linkedin.com/in/satyanadella/`, `profile` (or `company`) |
| `postUrn`, `postUrl` | `urn:li:activity:7528885100705402880`, a direct link to the post |
| `text` | The post's own text |
| `reactions`, `comments` | 4333, 262 |
| `activityType`, `authorHandle` | `post` (their own) or `repost`; who wrote the post, e.g. `satyanadella`, `microsoft` |
| `repostedBy` | Who reposted it (the profile or page), empty for an original post |
| `checkedAt` | 2026-11-22T20:06:11+00:00 |

A profile or company with no public posts returns no rows and is not charged (see FAQ). An input LinkedIn does not recognize returns a free row with `input` and `error`.

#### Pricing

Pay per event: **$0.001** per run and **$0.00154** per post (**$1.54 per 1 000 posts**). Apify Scale plan: $1.386 per 1 000, Business plan and above: $1.232 per 1 000. A target with no public posts is free.

| Example | Cost |
| --- | --- |
| 10 profiles, ~10 posts each | ~$0.17 |
| 100 profiles/companies, ~10 posts each | ~$1.54 |
| 1 000 posts | ~$1.54 |

#### FAQ

**Why did a profile or company return no posts?** Three honest reasons, none of them an error: the account has no public posts, it is private, or its owner turned off "show my activity to people who aren't logged in" (a LinkedIn privacy setting some public figures use). None of these are charged.

**Can it go further back than the newest 8-17 posts?** No. LinkedIn's guest (not-logged-in) page only ever shows the most recent posts and does not page further without a login.

**Why are likes not included?** A profile's activity page mixes the person's posts with posts they only liked or commented on. Those belong to other authors, so they are left out (and never charged); only the person's own posts and reposts are returned.

**Can I search posts by keyword, or get a stranger's post reactions/comments as a list of profiles?** No, not in this Actor: LinkedIn's own search needs a login. For a company's basic data (employee count, headcount growth) see [LinkedIn Company Scraper](https://apify.com/s_actors/linkedin-company-scraper).

**Do I need a LinkedIn account or cookies?** No. Only public profile and company pages are read, without login.

#### Tips

- Schedule it daily or weekly on a short list of competitors or executives to build a content digest.
- Feed `text` and `postUrl` straight into an LLM prompt for a personalized outreach line referencing someone's latest post.

# Actor input Schema

## `targets` (type: `array`):

One per line, any mix: a LinkedIn profile link (linkedin.com/in/<name>) or a company page link (linkedin.com/company/<name>, also showcase pages). Private accounts, and profiles that hide recent activity from visitors who are not logged in, return no posts (this is a LinkedIn setting, not an error).

## `maxPostsPerTarget` (type: `integer`):

LinkedIn's own guest page shows only the most recent posts (about 8-17, it does not page further without login); this caps how many of them are returned per target.

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

Also return posts the profile or page reposted from others (row field activityType = repost, repostedBy = who reposted). Turn off for original posts only. Likes and comments on other people's posts are never returned.

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

How many profiles/companies to fetch at the same time. Lower it if you see more failed targets.

## Actor input object example

```json
{
  "targets": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "maxPostsPerTarget": 10,
  "includeReposts": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One row per post: text, reactions, comments, link.

## `all` (type: `string`):

Every field of every row.

# 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 = {
    "targets": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/company/microsoft/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s_actors/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 = { "targets": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/company/microsoft/",
    ] }

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

```

## MCP server setup

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