# LinkedIn Profile Posts Scraper (`automly/linkedin-profile-posts-scraper`) Actor

Scrape the posts of any LinkedIn profile from its link or username: text, date, likes, comment count, first comments, images, videos and documents. Date filters. No login or cookies.

- **URL**: https://apify.com/automly/linkedin-profile-posts-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.15 / 1,000 posts

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 Profile Posts Scraper

### What is LinkedIn Profile Posts Scraper?

**LinkedIn Profile Posts Scraper** lets you **scrape the posts of any LinkedIn profile**: the post text, date, likes, number of comments, the first comments, images, videos and documents. Paste profile links or just usernames, click **Start**, and download the posts as Excel, CSV or JSON.

- ⚡ **Fast:** 20 posts from 2 profiles in about 40 seconds, 111 posts from 30 profiles in under 2 minutes (our tests)
- 👤 **Links or usernames:** paste `linkedin.com/in/satyanadella` or just `satyanadella`
- 🗓️ **Newest first, with a date range:** past 24 hours, week, month, year, or any range of dates you pick
- 💬 **Comments included:** the first comments of every post at no extra charge
- 🔓 **No login:** no LinkedIn account or cookies needed, so no account can get restricted

### What can LinkedIn Profile Posts Scraper do?

- **Scrape a person's LinkedIn posts**, newest first, from their profile link or username
- **Get posts from a date range**: the past week, the past month, everything since a date, or between two dates
- **Include reposts** to see what a person shares from others, flagged as reposts
- **Track many profiles in one run**, each with its own limit
- **Get document posts too**: the title, number of pages, page previews and a link to the PDF
- Export to Excel, CSV, JSON, HTML or XML, or send the posts to Google Sheets, Make, Zapier and more

### What data can you extract from LinkedIn profile posts?

| | | |
|---|---|---|
| 📝 Post text | 📅 Date posted | 🔗 Post link |
| 👍 Likes (reactions) | 💬 Number of comments | 🗨️ First comments (text, date, author, likes) |
| 🖼️ Images | 🎬 Video link, thumbnail and length | 📄 Document title, pages, PDF link |
| 👤 Author name and link | 👥 Author's followers | 🔁 Shared post (for quote posts) |
| 🆔 Post ID | 🏷️ Post, video or article | ♻️ Repost flag |

### How to scrape LinkedIn profile posts

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open **LinkedIn Profile Posts Scraper**.
3. Paste LinkedIn profile links or usernames, one per line.
4. Set how many posts you want per profile, and a date range if you need one.
5. Click **Start**, then download the posts as Excel, CSV, JSON or HTML.

### How much does it cost to scrape LinkedIn profile posts?

You pay only for the posts you get; comments come with each post at no extra charge. See the **Pricing** tab for the current price. Every Apify account gets **$5 of free usage each month**, so you can try it at no cost.

### ⬇️ Input

| Setting | What it does |
|---|---|
| **Profiles** | LinkedIn profile links or usernames, one per line: `https://www.linkedin.com/in/satyanadella/` or `satyanadella` |
| **Maximum posts per profile** | How many posts to save for each profile, newest first (default 10). Set 0 for every post that can be found |
| **Posted within** | Only posts from the past hour, 24 hours, week, month, 3 months, 6 months or year |
| **Posted on or after** | Only posts published on or after a date, e.g. `2026-09-01` |
| **Posted on or before** | Only posts published on or before a date, e.g. `2026-09-30` (the whole day counts) |
| **Include reposts** | Also save what a person reposted from others (off by default) |
| **Include comments** | Add the first comments shown on each post (on by default, no extra charge) |

The latest 10 posts of two people:

```json
{
  "targetUrls": [
    "https://www.linkedin.com/in/satyanadella/",
    "williamhgates"
  ],
  "maxPosts": 10
}
```

Every post from September 2026, without comments:

```json
{
  "targetUrls": ["https://www.linkedin.com/in/satyanadella/"],
  "maxPosts": 0,
  "postedLimitDate": "2026-09-01",
  "postedBeforeDate": "2026-09-30",
  "includeComments": false
}
```

### ⬆️ Output

Every post is one row (text, comments and image links shortened):

```json
{
  "url": "https://www.linkedin.com/posts/satyanadella_just-wrapped-our-earnings-call-it-was-a-activity-7521344259774660609-7i67",
  "id": "7521344259774660609",
  "type": "post",
  "text": "Just wrapped our earnings call. It was a fast start to our fiscal year. Microsoft Cloud revenue surpassed $63B, with growth accelerating to 30% YoY. ...",
  "postedAt": "2026-10-28T22:56:51.348Z",
  "author": {
    "name": "Satya Nadella",
    "url": "https://www.linkedin.com/in/satyanadella",
    "type": "person",
    "followers": 12311162,
    "image": "https://media.licdn.com/dms/image/v2/C5603AQHHUuOSlRVA1w/profile-displayphoto-shrink_200_200/..."
  },
  "likes": 14872,
  "commentsCount": 964,
  "comments": [
    {
      "text": "The word that stands out for me is governance. ...",
      "postedAt": "2026-11-02T15:32:51.248Z",
      "authorName": "(the commenter's name)",
      "likes": 13
    }
  ],
  "video": null,
  "images": [
    "https://media.licdn.com/dms/image/v2/D5622AQG_rOvBCcD-2g/feedshare-image-high-res/..."
  ],
  "sharedPost": null,
  "document": null,
  "isRepost": false,
  "sourceUrl": "https://www.linkedin.com/in/satyanadella/"
}
```

Video posts have `"video": {"url": "...", "thumbnail": "...", "duration": "PT3M21S"}`. A document post (slides or a PDF) has `"document": {"title": "...", "pageCount": 12, "pdfUrl": "https://media.licdn.com/dms/document/...", "coverImages": ["...", "...", "..."]}`. A post that shares another post with a comment has `"sharedPost": {"text": "...", "url": "...", "authorName": "...", "authorUrl": "..."}`. Image, video and document links expire after a few days, so download the files you want to keep.

The **Posts** tab shows the posts as a table, the **Authors** tab who wrote them and their followers. The run report lists any profile or post that could not be read, and why.

### How can I use LinkedIn profile posts data?

- **Social listening:** follow what industry leaders, founders and creators post and how their audience reacts
- **Content research:** find the best-performing posts of top creators in your niche to learn what resonates
- **Lead generation and sales signals:** see what prospects talk about before you reach out
- **Influencer vetting:** check how often a creator posts and how much engagement they get
- **Personal brand tracking:** keep an archive of your own or your team's posts with likes and comments
- **AI and research datasets:** collect post texts and comments for sentiment analysis and trend studies

### How many posts can I get?

For every profile you get its **latest posts** (the newest 10 or so) plus **older posts found on the public web**. For active creators that is often dozens to a few hundred posts going back years; for people who rarely post, it may be only a few. The newest posts found are picked first (sort by the `postedAt` column for a strict date order), but some older posts can be missing, so this scraper is best for "recent posts" and "a sample of the archive" rather than a complete history. Long-form LinkedIn articles (linkedin.com/pulse/) are not included.

Set **Maximum posts** to 0 to get every post that can be found. Posts that were deleted or are shown only to logged-in members are skipped and listed in the run report.

### Use it from your own code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automly/linkedin-profile-posts-scraper").call(run_input={
    "targetUrls": ["https://www.linkedin.com/in/satyanadella/"],
    "maxPosts": 20,
    "postedLimit": "month",
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["postedAt"], post["likes"], post["commentsCount"], post["url"])
```

You can also run it on a schedule, for example every morning with **Posted within** set to the past 24 hours, and send new posts to Google Sheets, Slack or your CRM.

### ❓FAQ

#### Do I need a LinkedIn account or cookies?

No. The scraper uses only what LinkedIn shows to visitors who are not logged in, so it never touches your LinkedIn account and nothing can get restricted.

#### Why did I get fewer posts than I asked for?

The person may have posted fewer public posts than that, some older posts may not be found on the web, or some posts were deleted or shown to logged-in members only. With a date range, only posts from that period count. Profiles that LinkedIn shows only to logged-in members get the posts that can be found on the web, or are listed as not found. The run report lists the profiles and posts that could not be read.

#### Can I get all the comments or the list of people who reacted?

You get the number of comments and reactions for every post, plus the first comments LinkedIn shows (up to 10) with their text, date, author and likes. LinkedIn shows the full comment list and the people who reacted only to logged-in members.

#### Can I scrape a company's posts or a single post?

This scraper reads profiles. For a company's posts, use [LinkedIn Company Posts Scraper](https://apify.com/automly/linkedin-company-posts-scraper); for single posts by link, use [LinkedIn Posts Scraper](https://apify.com/automly/linkedin-posts-scraper). Company and post links given here are listed in the run report and cost nothing.

#### Can I connect LinkedIn Profile Posts Scraper to other tools or AI agents?

Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let AI assistants and agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

#### Is it legal to scrape LinkedIn posts?

This scraper collects only public data that LinkedIn shows to anyone without logging in. Posts and comments can still contain personal data, which is protected by laws such as the GDPR in Europe and the CCPA in California. You are responsible for having a legitimate reason to collect and use the data and for using it lawfully. If you are unsure, check with a lawyer. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

This scraper is not affiliated with, endorsed by or connected to LinkedIn or Microsoft.

#### What happens if a profile fails?

The other profiles carry on and their posts are saved as they come. The run report lists every profile and post that could not be read and why: not a profile link, not public, deleted, or not reachable.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the input you used.

### Scrape more LinkedIn data

| Scraper | What it gets |
|---|---|
| [LinkedIn Posts Scraper](https://apify.com/automly/linkedin-posts-scraper) | Posts of people and companies, or single posts |
| [LinkedIn Company Posts Scraper](https://apify.com/automly/linkedin-company-posts-scraper) | A company's posts, newest first |
| [LinkedIn Post Search Scraper](https://apify.com/automly/linkedin-post-search-scraper) | Posts about any topic |
| [LinkedIn Profile Scraper + Email Finder](https://apify.com/automly/linkedin-profile-scraper) | Profiles from links or names, with work emails |

### ⭐ Your feedback

Ideas, missing fields or problems: open the **Issues** tab and we'll take a look. If LinkedIn Profile Posts Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `targetUrls` (type: `array`):

LinkedIn profile links or usernames, one per line, e.g. https://www.linkedin.com/in/satyanadella/ or satyanadella (the part after /in/). Links from country sites (uk.linkedin.com) and the mobile app work too.

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

How many posts to save for each profile, newest first, e.g. 50. Set 0 for every post that can be found.

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

Only posts published in this period.

## `postedLimitDate` (type: `string`):

Only posts published on or after this date, e.g. 2026-09-01 (UTC if no time zone), or a timestamp in milliseconds. With 'Posted within' too, the later of the two applies.

## `postedBeforeDate` (type: `string`):

Only posts published on or before this date, e.g. 2026-09-30 (the whole day counts; UTC if no time zone), or a timestamp in milliseconds. Together with 'Posted on or after' it gives a date range.

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

Also save the posts a person reposted from others among their recent activity. These rows have isRepost: true and count toward the maximum.

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

Add the first comments shown on each post (up to 10) with their text, date, author name and likes. No extra charge.

## `proxyConfiguration` (type: `object`):

Proxy settings. The default works for most runs, and other Apify Proxy choices run the same way. Your own proxy links are used as given.

## Actor input object example

```json
{
  "targetUrls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/in/williamhgates/"
  ],
  "maxPosts": 10,
  "postedLimit": "any",
  "includeReposts": false,
  "includeComments": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `authors` (type: `string`):

No description

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

No description

## `report` (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 = {
    "targetUrls": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/in/williamhgates/"
    ],
    "maxPosts": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/linkedin-profile-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 = {
    "targetUrls": [
        "https://www.linkedin.com/in/satyanadella/",
        "https://www.linkedin.com/in/williamhgates/",
    ],
    "maxPosts": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("automly/linkedin-profile-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 '{
  "targetUrls": [
    "https://www.linkedin.com/in/satyanadella/",
    "https://www.linkedin.com/in/williamhgates/"
  ],
  "maxPosts": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call automly/linkedin-profile-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automly/linkedin-profile-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/ygybqotePuPVx0dYW/builds/fTFYEp3VwzIwFqXVY/openapi.json
