# LinkedIn Post Scraper — Post Content & Engagement (`hipersoft/linkedin-post-scraper`) Actor

Scrape public LinkedIn posts by URL: author, post text, date, likes, comment count, top comments and image. Just pass post URLs. Great for social listening, engagement tracking and content research. One row per post as JSON, CSV or Excel.

- **URL**: https://apify.com/hipersoft/linkedin-post-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0015 / post scraped

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 Post Scraper — Post Content & Engagement

Extract **public LinkedIn post data** with the **LinkedIn Post Scraper**. Pass a list of post URLs and export each one's **author, full text, publish date, likes, comment count, top comments and image** — one clean row per post as **JSON, CSV or Excel**.

Built for **social listening, engagement tracking, content research, competitor monitoring and marketing analytics**, it turns LinkedIn post links into structured data.

### What it does

- 📝 **Full post content** — the complete post text and any headline.
- 👤 **Author** — who posted it, with their LinkedIn URL.
- ❤️ **Engagement** — like count, comment count and shares where available.
- 💬 **Top comments** — the leading comments with their authors.
- 🖼️ **Media** — the post's image where present.
- 📅 **Date** — when the post was published.
- 📤 **Export anywhere** — JSON, CSV or Excel, or straight into a sheet or dashboard.

### Example output

```json
{
  "author": "Stripe",
  "publishedAt": "2026-09-15T17:14:19.208Z",
  "text": "New Stripe data shows fraudulent actors disproportionately targeting AI companies...",
  "likes": 121,
  "comments": 21,
  "topComments": [
    { "author": "LespriCore", "text": "This is such a good example of fraud just moving somewhere else..." }
  ],
  "url": "https://www.linkedin.com/posts/stripe_...-activity-..."
}
```

### How to use it

1. Add a list of **post URLs**.
2. Set **Max posts** if you want a cap.
3. Run, and download the results as **JSON, CSV or Excel**.

### Input fields

| Field | Description |
|-------|-------------|
| **Post URLs** | LinkedIn post URLs to scrape. |
| **Max posts** | Maximum posts to process (0 = no limit). |

### Output fields

`url`, `found`, `author`, `authorUrl`, `publishedAt`, `text`, `headline`, `likes`, `comments`, `shares`, `imageUrl`, `topComments`.

### Popular use cases

- **Social listening** — track how posts on a topic or brand perform.
- **Engagement tracking** — monitor likes and comments over a set of posts.
- **Content research** — study high-performing posts and their comments.
- **Competitor monitoring** — watch what competitors post and how it lands.
- **Marketing analytics** — build a dataset of posts and engagement.

### FAQ

**Do I need an account or key?**
No. Add post URLs and run — only public post data is collected.

**What data is returned?**
Public post fields: author, full text, date, likes, comment count, top comments and image.

**Where do I get post URLs?**
Copy the post's share link from LinkedIn — it looks like `https://www.linkedin.com/posts/...-activity-...`.

**Can I export to Excel or Google Sheets?**
Yes — results download as JSON, CSV or Excel and integrate with Sheets and dashboards.

***

Structured **public LinkedIn post data** — author, text, likes, comments and top replies — clean and export-ready for social listening and analytics.

# Actor input Schema

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

LinkedIn post URLs to scrape — e.g. 'https://www.linkedin.com/posts/...-activity-...'. Each is looked up individually.

## `maxItems` (type: `integer`):

Maximum number of posts to process (0 = no limit).

## Actor input object example

```json
{
  "postUrls": [],
  "maxItems": 0
}
```

# Actor output Schema

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

The results as dataset items.

# 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": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/linkedin-post-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": [] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/linkedin-post-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": []
}' |
apify call hipersoft/linkedin-post-scraper --silent --output-dataset

```

## MCP server setup

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