# LinkedIn Posts Scraper 💰$1/1K: Profile Posts, No Login (`spellzcode/linkedin-posts-scraper`) Actor

Get public LinkedIn posts from post links or the recent posts of any public profile: full text, date, reactions, comments count, author, images, video, links, hashtags and top comments. No login or cookies. $1 per 1,000 posts.

- **URL**: https://apify.com/spellzcode/linkedin-posts-scraper.md
- **Developed by:** [SpellzCode](https://apify.com/spellzcode) (community)
- **Categories:** Social media, 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.70 / 1,000 post returneds

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 Posts and Post Links, No Login

Get public LinkedIn posts as clean rows: **full text, date, reactions, comment count, author, images, video, links, hashtags, mentions and top comments**. Start from post links, or from profile links to get each person's recent posts.

**Try it now:** press **Start**. The example input is already filled in. **$1 per 1,000 posts** ($0.001 each), and Apify's free $5 monthly credit covers about 5,000.

- **No login, no cookies, no browser extension.** Your LinkedIn account is never involved, so it can never be restricted.
- **$1 per 1,000 posts**: half the price of the most used LinkedIn post scrapers on Apify. Top comments are included at no extra cost.
- **You pay only for posts returned.** Refused, deleted and private posts come back with a reason and cost nothing. Reading profile pages to find posts is free.

### Use it for

- **Social selling and account research:** what your prospects and their bosses posted this month, before you write to them.
- **Creator and thought-leader monitoring:** track what executives, competitors' founders or influencers publish, with engagement numbers.
- **Content research:** which formats (video, image, text) and topics get reactions in your niche.
- **AI pipelines:** post text and top comments as input for summaries, classification or RAG.

### What you get

| Field | What it is |
|---|---|
| `text` | Full post text, with line breaks |
| `datePublished` | Exact publish time (ISO 8601) |
| `reactions`, `likes`, `comments` | Engagement counts as shown on the post |
| `type` | `text`, `image`, `video` or `link` |
| `authorName`, `authorUrl`, `authorType`, `authorHeadline`, `authorFollowers` | Who posted it (`person` or `company`) |
| `isReshare` | For profile runs: `true` when the post on the profile's Activity tab was written by someone else |
| `images`, `video` | Image links; video file, thumbnail and duration |
| `links`, `hashtags`, `mentions` | Outside links (unwrapped from LinkedIn's redirect), hashtags, and tagged people and companies |
| `topComments` | With **Include top comments** on: up to about 10 comments with text, commenter name, date and likes |
| `postUrl`, `activityId` | Clean link and LinkedIn's activity id |
| `query`, `fromProfile`, `status`, `error` | What you asked for; `ok`, `invalid`, `no_posts`, `not_found`, `no_data` or `refused`, and why |

### Input

```json
{
  "profiles": ["https://www.linkedin.com/in/williamhgates", "satyanadella"],
  "posts": ["https://www.linkedin.com/posts/williamhgates_when-your-familys-food-and-livelihood-depend-activity-7526456102226403328-ORoD"],
  "maxPostsPerProfile": 10,
  "includeComments": true
}
```

You can use `profiles`, `posts` or both. A post found twice is read and charged once.

### Pricing

| Event | Price |
|---|---|
| Post returned | $0.001 ($1 per 1,000), cheaper on higher Apify plans |

Profile pages, refused pages and missing posts are not charged.

### Good to know

- **Public pages only.** It reads what LinkedIn shows to visitors who are not signed in. It returns no emails or phone numbers, and it does not search LinkedIn.
- **Recent posts only for profiles.** Visitors see a profile's most recent posts, usually 8 to 10. For a person's full post history over years, you need a logged-in tool. For monitoring, schedule this Actor weekly and keep every run's results.
- Pages are read one at a time, a few seconds apart: about 1,000 posts an hour.
- LinkedIn sometimes refuses a page. The Actor tries each refused page once more after a pause, and stops early if LinkedIn keeps refusing. Refused posts are not charged.

### Related tools

- [LinkedIn Profile Scraper](https://apify.com/spellzcode/linkedin-profile-data): full public profiles (every job, education, skills) at $2 per 1,000.
- [LinkedIn Job Change Tracker](https://apify.com/spellzcode/linkedin-job-change-tracker): alerts when your contacts change company or title.

# Actor input Schema

## `profiles` (type: `array`):

LinkedIn profile links or the name part of the link. Returns the recent posts the profile shows publicly (usually up to 8 to 10).

## `posts` (type: `array`):

Links to single posts: linkedin.com/posts/... or linkedin.com/feed/update/urn:li:activity:...

## `maxPostsPerProfile` (type: `integer`):

Upper limit per profile. LinkedIn shows visitors only the most recent posts, usually up to 8 to 10.

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

Add the comments LinkedIn shows on the public post page (usually up to 10): text, commenter name, date and likes. No extra charge.

## Actor input object example

```json
{
  "profiles": [
    "https://www.linkedin.com/in/williamhgates"
  ],
  "maxPostsPerProfile": 10,
  "includeComments": false
}
```

# Actor output Schema

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

One item per post.

# 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 = {
    "profiles": [
        "https://www.linkedin.com/in/williamhgates"
    ]
};

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

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

```

## MCP server setup

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