# PRO Posts LinkedIn Scraper (`atomus/linkedin-posts-scraper-pro`) Actor

Scrape all posts from LinkedIn profiles and company pages with engagement stats. Auto-pagination, no cookies needed.

- **URL**: https://apify.com/atomus/linkedin-posts-scraper-pro.md
- **Developed by:** [Atomus APIs](https://apify.com/atomus) (community)
- **Categories:** Lead generation, Social media, Automation
- **Stats:** 18 total users, 12 monthly users, 97.8% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## PRO Posts LinkedIn Scraper

Scrape all posts from LinkedIn profiles and company pages with engagement stats. Auto-pagination, no cookies needed.

> For other LinkedIn tools by Dende Labs: https://apify.com/dendelabs

---

### What You Get

- Full post content, images, videos, articles, and carousel/document slides
- Engagement breakdown: likes, comments, shares, reactions by type
- Author details: name, headline, avatar, website, LinkedIn ID
- Mentions and links within post content
- Repost detection with original author info
- Time and content type filters
- Batch processing: multiple profiles and companies in one run

No LinkedIn account or cookies required.

---

### Input

#### Quick Start

```json
{
  "profiles": ["https://www.linkedin.com/in/satyanadella/"]
}
````

#### All Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `profiles` | string\[] | `[]` | LinkedIn profile URLs or usernames |
| `companies` | string\[] | `[]` | LinkedIn company page URLs or usernames |
| `maxPosts` | integer | `0` | Max posts per source (`0` = unlimited) |
| `postedLimit` | string | `none` | Time filter: `24h`, `week`, `month` |
| `postedAfterDate` | string | - | Only posts after this date (ISO format, e.g. `2025-01-01`) |
| `contentType` | string | `all` | Filter: `videos`, `images`, `documents`, `jobs` |
| `sortBy` | string | `date` | Sort by `date` or `relevance` |
| `latestPostOnly` | boolean | `false` | Only fetch the most recent post per source |
| `includeSharedPosts` | boolean | `true` | Include quote posts (someone reposted and added their own text) |
| `includeReposts` | boolean | `true` | Include simple reposts (shared as-is, no added text) |

At least one profile or company URL is required.

***

### Output

Every dataset item has a `type` field: `post`.

#### Post

```json
{
  "type": "post",
  "author_name": "Satya Nadella",
  "content": "Today at Microsoft Build...",
  "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:123/",
  "posted_at": "2026-03-15T14:30:00.000Z",
  "posted_ago": "2 weeks ago",
  "is_repost": false,
  "images": ["https://media.licdn.com/..."],
  "video_url": null,
  "article": null,
  "doc": null,
  "mentions": [
    {
      "start": 0,
      "length": 9,
      "type": "COMPANY_NAME",
      "url": "https://www.linkedin.com/company/microsoft/",
      "name": "Microsoft"
    }
  ],
  "share_url": "https://www.linkedin.com/posts/...",
  "engagement": {
    "total_reactions": 15234,
    "comments": 892,
    "shares": 1205,
    "reactions": [
      { "type": "LIKE", "count": 10000 },
      { "type": "PRAISE", "count": 3000 }
    ]
  },
  "author": {
    "name": "Satya Nadella",
    "username": "satyanadella",
    "headline": "Chairman and CEO at Microsoft",
    "linkedinUrl": "https://www.linkedin.com/in/satyanadella/",
    "avatar": "https://media.licdn.com/...",
    "linkedin_id": "ACoAAA8BYqEBCGLg...",
    "website_url": "https://example.com",
    "website_label": "My website"
  },
  "reposted_by": null,
  "_metadata": {
    "post_id": "7302346926123798528",
    "extracted_at": "2026-03-30T12:00:00.000Z",
    "source_url": "https://www.linkedin.com/in/satyanadella/"
  }
}
```

#### Carousel / Document Post

When a post contains a document or carousel slides, the `doc` field is populated:

```json
{
  "doc": {
    "title": "How we grew 10x in 6 months",
    "pdf_url": "https://media.licdn.com/dms/document/...",
    "slide_images": [
      "https://media.licdn.com/.../0/...",
      "https://media.licdn.com/.../1/...",
      "https://media.licdn.com/.../2/..."
    ],
    "total_slides": 7
  }
}
```

Note: `slide_images` contains cover previews (up to 3). Use `pdf_url` to access the full document.

***

### Billing

Posts are billed as dataset items via Apify's pay-per-event model.

***

### Examples

#### Multiple profiles and companies

```json
{
  "profiles": ["satyanadella", "jeffweiner08"],
  "companies": ["microsoft", "google"],
  "maxPosts": 50
}
```

#### Only original posts (no reposts)

```json
{
  "profiles": ["satyanadella"],
  "includeReposts": false
}
```

#### Posts after a specific date

```json
{
  "profiles": ["satyanadella"],
  "postedAfterDate": "2026-01-01"
}
```

#### Quick activity check

Use `latestPostOnly` to check if a profile posted recently without scraping everything:

```json
{
  "profiles": ["satyanadella"],
  "latestPostOnly": true
}
```

***

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by LinkedIn Corporation. LinkedIn is a registered trademark of LinkedIn Corporation.

# Actor input Schema

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

LinkedIn profile URLs or usernames. Examples: https://www.linkedin.com/in/satyanadella/ or just satyanadella

## `companies` (type: `array`):

LinkedIn company URLs or usernames. Examples: https://www.linkedin.com/company/microsoft/ or just microsoft

## `maxPosts` (type: `integer`):

Maximum number of posts to extract per profile or company. 0 = unlimited.

## `postedLimit` (type: `string`):

Only scrape posts published within this time period.

## `postedAfterDate` (type: `string`):

Only scrape posts published after this date. Supports ISO format (e.g. 2025-01-01) or timestamps.

## `contentType` (type: `string`):

Only scrape posts with specific content types.

## `sortBy` (type: `string`):

How to sort results.

## `latestPostOnly` (type: `boolean`):

If enabled, only fetches the most recent post for each profile/company. Useful for checking if there are new posts before running a full scrape.

## `includeSharedPosts` (type: `boolean`):

Include posts that someone shared and added their own text on top. For example, when a user reposts an article and writes their opinion about it. Disable this to only get original posts.

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

Include posts that someone simply reposted as-is, without adding any text of their own. These are the 'repost' button shares with no original commentary. Disable this to only get original posts and quote posts.

## Actor input object example

```json
{
  "profiles": [],
  "companies": [],
  "maxPosts": 0,
  "postedLimit": "none",
  "contentType": "all",
  "sortBy": "date",
  "latestPostOnly": false,
  "includeSharedPosts": true,
  "includeReposts": true
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("atomus/linkedin-posts-scraper-pro").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("atomus/linkedin-posts-scraper-pro").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 '{}' |
apify call atomus/linkedin-posts-scraper-pro --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "PRO Posts LinkedIn Scraper",
        "description": "Scrape all posts from LinkedIn profiles and company pages with engagement stats. Auto-pagination, no cookies needed.",
        "version": "1.0",
        "x-build-id": "g863yGFw4uOai1KEv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/atomus~linkedin-posts-scraper-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-atomus-linkedin-posts-scraper-pro",
                "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/atomus~linkedin-posts-scraper-pro/runs": {
            "post": {
                "operationId": "runs-sync-atomus-linkedin-posts-scraper-pro",
                "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/atomus~linkedin-posts-scraper-pro/run-sync": {
            "post": {
                "operationId": "run-sync-atomus-linkedin-posts-scraper-pro",
                "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",
                "properties": {
                    "profiles": {
                        "title": "LinkedIn Usernames or Profile URLs",
                        "type": "array",
                        "description": "LinkedIn profile URLs or usernames. Examples: https://www.linkedin.com/in/satyanadella/ or just satyanadella",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "companies": {
                        "title": "LinkedIn Company Usernames or Company URLs",
                        "type": "array",
                        "description": "LinkedIn company URLs or usernames. Examples: https://www.linkedin.com/company/microsoft/ or just microsoft",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "maxPosts": {
                        "title": "Max Posts per Profile/Company",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of posts to extract per profile or company. 0 = unlimited.",
                        "default": 0
                    },
                    "postedLimit": {
                        "title": "Posted Within",
                        "enum": [
                            "none",
                            "24h",
                            "week",
                            "month"
                        ],
                        "type": "string",
                        "description": "Only scrape posts published within this time period.",
                        "default": "none"
                    },
                    "postedAfterDate": {
                        "title": "Posted After Date",
                        "type": "string",
                        "description": "Only scrape posts published after this date. Supports ISO format (e.g. 2025-01-01) or timestamps."
                    },
                    "contentType": {
                        "title": "Content Type Filter",
                        "enum": [
                            "all",
                            "videos",
                            "images",
                            "documents",
                            "jobs"
                        ],
                        "type": "string",
                        "description": "Only scrape posts with specific content types.",
                        "default": "all"
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "date",
                            "relevance"
                        ],
                        "type": "string",
                        "description": "How to sort results.",
                        "default": "date"
                    },
                    "latestPostOnly": {
                        "title": "Latest Post Only",
                        "type": "boolean",
                        "description": "If enabled, only fetches the most recent post for each profile/company. Useful for checking if there are new posts before running a full scrape.",
                        "default": false
                    },
                    "includeSharedPosts": {
                        "title": "Include Quote Posts",
                        "type": "boolean",
                        "description": "Include posts that someone shared and added their own text on top. For example, when a user reposts an article and writes their opinion about it. Disable this to only get original posts.",
                        "default": true
                    },
                    "includeReposts": {
                        "title": "Include Simple Reposts",
                        "type": "boolean",
                        "description": "Include posts that someone simply reposted as-is, without adding any text of their own. These are the 'repost' button shares with no original commentary. Disable this to only get original posts and quote posts.",
                        "default": true
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
