# 🚀 LinkedIn Posts Scraper ⚡ No Login Required (`vulnv/linkedin-posts-scraper`) Actor

Extract comprehensive data from public LinkedIn posts including content, author information, engagement metrics, and more. Bulk processing supported. No LinkedIn authentication needed - just provide post URLs and get structured JSON data.

- **URL**: https://apify.com/vulnv/linkedin-posts-scraper.md
- **Developed by:** [VulnV](https://apify.com/vulnv) (community)
- **Categories:** Lead generation, Social media, Jobs
- **Stats:** 185 total users, 27 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🚀 LinkedIn Posts Scraper ⚡ No Login Required

### Overview

The **LinkedIn Posts Scraper** is an Apify Actor that extracts comprehensive data from **public LinkedIn posts** at scale. Perfect for social media analysis, content research, engagement tracking, and competitive intelligence — with **no LinkedIn login, cookies, or browser automation required**.

✅ No LinkedIn login required | ✅ Bulk post processing | ✅ Structured JSON output | ✅ High success rate

***

#### **Complete Post Data**

- **Post Content** — Full text content, hashtags, and embedded links
- **Author Information** — User ID, name, headline, profile URL, follower count
- **Engagement Metrics** — Likes, comments, shares, and reaction counts
- **Media Content** — Images, videos, and document attachments
- **Comment Data** — Top visible comments with user details and reactions
- **Timestamps** — Post date and extraction timestamp
- **Post Metadata** — Post ID, type, account type, and repost information
- **Tagged Users/Companies** — Mentions and tagged entities

#### **Key Features**

- **No Authentication Required** — Works without LinkedIn cookies or login
- **Bulk Processing** — Handle multiple post URLs in one run
- **Clean JSON Output** — Structured, ready-to-use data format
- **Real-time Processing** — Monitor extraction progress
- **High Reliability** — Built-in retry mechanisms and error handling

***

### 🧾 Input Configuration

Submit an array of LinkedIn post URLs via Apify's input:

```json
{
  "urls": [
    "https://www.linkedin.com/posts/williamhgates_my-memoir-source-code-comes-out-next-year-activity-7203756961220165633-nSM2",
    "https://www.linkedin.com/posts/elonmusk_spacex-starship-mars-activity-7189234567890123456-AbC1"
  ]
}
```

***

### 📤 Output Format

Each post will return comprehensive structured data such as:

```json
{
  "url": "https://www.linkedin.com/posts/williamhgates_my-memoir-source-code-comes-out-next-year-activity-7203756961220165633-nSM2",
  "id": "7203756961220165633",
  "user_id": "williamhgates",
  "use_url": "https://www.linkedin.com/in/williamhgates?trk=public_post_feed-actor-image",
  "title": "My memoir Source Code comes out next year | Bill Gates | 1,941 comments",
  "headline": "I'm excited to announce my new book, Source Code.",
  "post_text": "I'm excited to announce my new book, Source Code. It's a memoir of my early years, from childhood through my decision to leave college and start Microsoft with Paul Allen—and I can't wait to share it with you.",
  "date_posted": "2024-06-04T13:58:18.870Z",
  "hashtags": null,
  "embedded_links": null,
  "images": [
    "https://media.licdn.com/dms/image/sync/v2/D5627AQHipqtAeMwfYA/articleshare-shrink_800/articleshare-shrink_800/0/1717509426427?e=2147483647&v=beta&t=fMg753-uNjmBs9GAPRwiNCkUzlY7LTHXDQXtIw4Ccfo"
  ],
  "videos": null,
  "num_likes": 10597,
  "num_comments": 1941,
  "top_visible_comments": [
    {
      "use_url": "https://pk.linkedin.com/in/john-smith-6ab879384?trk=public_post_comment_actor-name",
      "user_id": "john-smith-6ab879384",
      "user_name": "John Smith",
      "comment_date": "2025-09-17T18:25:50.565Z",
      "comment": "Great 👍",
      "tagged_users": null,
      "num_reactions": 2,
      "user_title": "MERN Stack Developer | TypeScript & Next.js Enthusiast | Building Future-Ready Web Apps",
      "comment_images": null
    }
  ],
  "user_followers": 38885991,
  "user_posts": 1568,
  "user_articles": 275,
  "post_type": "post",
  "account_type": "Person",
  "user_title": "Chair, Gates Foundation and Founder, Breakthrough Energy",
  "author_profile_pic": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_400_400/B56ZRi8g.aGsAg-/0/1736826818802?e=2147483647&v=beta&t=r6LJYwKPrJzfFDXVG8qAOoklQnqvEN855sHJ1NxhEAo",
  "external_link_data": [
    {
      "post_external_image": "https://media.licdn.com/dms/image/sync/v2/D5627AQHipqtAeMwfYA/articleshare-shrink_800/articleshare-shrink_800/0/1717509426427?e=2147483647&v=beta&t=fMg753-uNjmBs9GAPRwiNCkUzlY7LTHXDQXtIw4Ccfo",
      "post_external_url": "https://www.gatesnotes.com/Source-Code",
      "post_external_title": "My memoir Source Code comes out next year gatesnotes.com",
      "post_external_description": null
    }
  ],
  "timestamp": "2025-10-01T18:25:50.965Z",
  "input": {
    "url": "https://www.linkedin.com/feed/update/urn:li:activity:7203756961220165633"
  }
}
```

***

### 📊 Output & Export

#### **Dataset Storage**

- All extracted data is stored in your Apify dataset
- Each post becomes one dataset item
- Failed extractions are logged with error details

#### **Export Formats**

- **JSON** — Raw structured data for API integration
- **CSV** — Spreadsheet-compatible format
- **Excel** — Formatted spreadsheet with multiple sheets

***

### 💼 Common Use Cases

#### **Social Media Analysis & Research**

- Track content performance and engagement trends
- Analyze industry thought leaders and their content strategies
- Monitor competitor social media activities and audience engagement

#### **Content Strategy & Marketing**

- Research successful post formats and topics in your industry
- Identify viral content patterns and engagement drivers
- Build content calendars based on successful industry posts

#### **Brand Monitoring & Reputation Management**

- Track mentions of your brand across LinkedIn posts
- Monitor industry discussions and sentiment analysis
- Identify potential influencers and brand advocates

#### **Lead Generation & Sales Intelligence**

- Find prospects who engage with specific types of content
- Identify decision-makers active in relevant industry discussions
- Track company announcements and business developments

***

### ✅ Example Use

```json
{
  "urls": [
    "https://www.linkedin.com/posts/williamhgates_my-memoir-source-code-comes-out-next-year-activity-7203756961220165633-nSM2"
  ]
}
```

After execution, the dataset will contain comprehensive post data including content, engagement metrics, comments, and author information.

***

📬 **Custom fields, higher volume, or a managed data pipeline?** Email us at <apify@vulnv.com> — we build bespoke scrapers and managed feeds for teams. Questions and feature requests welcome too, or visit our [Apify profile](https://apify.com/vulnv).

# Actor input Schema

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

Enter the Linkedin URLs of the posts you want to scrape.

## Actor input object example

```json
{
  "urls": [
    "https://www.linkedin.com/feed/update/urn:li:activity:7203756961220165633/",
    "https://www.linkedin.com/posts/williamhgates_theres-no-rhyme-or-reason-to-why-i-choose-activity-7199438283930542080-lasQ",
    "https://www.linkedin.com/posts/williamhgates_geothermal-energy-might-soon-become-an-option-activity-7378130899391008770-DPvx"
  ]
}
```

# 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/feed/update/urn:li:activity:7203756961220165633/",
        "https://www.linkedin.com/posts/williamhgates_theres-no-rhyme-or-reason-to-why-i-choose-activity-7199438283930542080-lasQ",
        "https://www.linkedin.com/posts/williamhgates_geothermal-energy-might-soon-become-an-option-activity-7378130899391008770-DPvx"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vulnv/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/feed/update/urn:li:activity:7203756961220165633/",
        "https://www.linkedin.com/posts/williamhgates_theres-no-rhyme-or-reason-to-why-i-choose-activity-7199438283930542080-lasQ",
        "https://www.linkedin.com/posts/williamhgates_geothermal-energy-might-soon-become-an-option-activity-7378130899391008770-DPvx",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("vulnv/linkedin-posts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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/feed/update/urn:li:activity:7203756961220165633/",
    "https://www.linkedin.com/posts/williamhgates_theres-no-rhyme-or-reason-to-why-i-choose-activity-7199438283930542080-lasQ",
    "https://www.linkedin.com/posts/williamhgates_geothermal-energy-might-soon-become-an-option-activity-7378130899391008770-DPvx"
  ]
}' |
apify call vulnv/linkedin-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=vulnv/linkedin-posts-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/mZHqDN0DI6fIh6g6x/builds/zM2eYqQ9JmoyOC9NK/openapi.json
