# 🚀 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:** 141 total users, 26 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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.

# 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

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🚀 LinkedIn Posts Scraper ⚡ No Login Required",
        "description": "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.",
        "version": "1.0",
        "x-build-id": "QQ64ZQjjNdM4cp0TA"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vulnv~linkedin-posts-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vulnv-linkedin-posts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/vulnv~linkedin-posts-scraper/runs": {
            "post": {
                "operationId": "runs-sync-vulnv-linkedin-posts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/vulnv~linkedin-posts-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-vulnv-linkedin-posts-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "🔗 LinkedIn Post URLs",
                        "type": "array",
                        "description": "Enter the Linkedin URLs of the posts you want to scrape.",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
