# LinkedIn Profile Posts Scraper - Latest Posts, No Login (`socialscrapers/linkedin-profile-posts-scraper`) Actor

LinkedIn profile posts scraper: paste profile links or public IDs and get each person's latest public posts with text, date, reactions and comment counts, images, videos, documents, reposts and optional top comments. No login or cookies. Ideal for monitoring. JSON, CSV, Excel. $1.00 per 1,000 posts.

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

## Pricing

from $0.80 / 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/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

**LinkedIn Profile Posts Scraper** collects the latest public posts of LinkedIn profiles, exactly as LinkedIn shows them to a visitor who is not logged in. Give it profile links (`linkedin.com/in/…`) or public IDs such as `williamhgates`, and get each person's recent posts with the full text, publication date, reactions and comment counts, images, video, documents, shared links, reposts and, if you want them, the top comments. No LinkedIn account, cookies or login. It costs **$1.00 per 1,000 posts**.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does LinkedIn Profile Posts Scraper do?

- **Recent posts of any public profile.** A profile shows logged-out visitors its latest activity. The Actor reads it and saves each post on it, newest first: in our test of 40 well-known profiles, most showed **9 posts**, some 6 to 8. That is the person's newest posts, which makes the Actor a good fit for **monitoring**: run it on a schedule and every new post is caught soon after it appears.
- **Many profiles in one run.** Paste a list of profile links or public IDs. Links copied from a browser or the LinkedIn app, with tracking parameters or a country domain (`uk.linkedin.com`), all work.
- **Every detail of the post.** Full text with its line breaks, the author's name, headline and photo, the exact date and time, reactions and comment counts, images, video (MP4 link, cover, length), documents and carousels, shared articles, the post it reshares, hashtags, tagged people and companies, and outside links.
- **Own posts or reposts too.** Reposts are marked with `isRepost` and the profile that reposted them; turn **Include reposts** off to keep a person's own posts only.
- **Only what is new.** **Only posts newer than** takes a date or an age (`1 day`, `2 weeks`), so a daily run saves and charges only the posts of the last day.
- **Top comments, if you want them.** Turn on **Include top comments** for the comments LinkedIn shows under each post, saved as items of their own.

### What data can you extract?

One item per post (`type: "post"`), plus one per comment (`type: "comment"`) when comments are on. Every field is always there; `null` or `[]` means LinkedIn does not show it.

| Field | What it holds |
|---|---|
| `url`, `postId`, `urn`, `shareUrn` | The post's link and its IDs |
| `text`, `hashtags`, `mentions`, `links` | The post's text with line breaks, its hashtags, the people and companies tagged in it, its outside links |
| `authorName`, `authorHeadline`, `authorProfileUrl`, `authorPublicId`, `authorImageUrl`, `authorType` | Who wrote the post (for a repost: the original author) |
| `postedAt`, `postedAtTimestamp`, `postedAgo`, `isEdited` | When it was published (ISO 8601 and milliseconds), the age LinkedIn shows, edited or not |
| `reactionsCount`, `commentsCount` | Engagement |
| `images`, `video`, `document`, `article`, `resharedPost` | Media and shared content |
| `isRepost`, `repostedBy` | A post the profile reposted, and which profile |
| `source`, `inputUrl`, `scrapedAt` | Where it was found, your input, when it was collected |

Comment items carry the comment's text, author, profile link, date and reactions, and the link of their post.

### How to scrape the posts of a LinkedIn profile

1. Paste profile links or public IDs into **Profiles**.
2. Choose **Max posts per profile** (0 for every post shown), and an **Only posts newer than** date or age if you only want recent ones.
3. Turn on **Include top comments** if you need them.
4. Click **Start**. Download the results as JSON, CSV, Excel, XML or HTML, or read them through the API.

### How much does it cost?

**$1.00 per 1,000 posts** saved, and **$1.00 per 1,000 comments** when you turn comments on. Apify subscribers pay less: **Silver −10%** ($0.90 per 1,000) and **Gold, Platinum and Diamond −20%** ($0.80 per 1,000). Each run also has a small start charge of $0.0008 (one per GB of memory, at least one).

| Job | Results | Price (no discount) |
|---|---|---|
| The latest posts of 100 profiles | about 900 posts | about $0.90 |
| A daily check of 50 profiles, posts of the last day only | usually 10 to 40 posts a day | about $0.01 to $0.04 a day |
| 20 profiles with up to 10 top comments per post | about 180 posts + up to 1,800 comments | up to $1.98 |

Profiles that show no posts, posts older than your date, reposts you leave out and posts that are not public cost nothing. To cap a run's spending, set its **maximum total charge** in the run options: the Actor stops cleanly at that amount and keeps everything it saved.

### Input example

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/williamhgates",
    "satyanadella"
  ],
  "maxPostsPerSource": 10,
  "postedAfter": "7 days",
  "includeReposts": false,
  "includeComments": false
}
```

### Output example

```json
{
  "type": "post",
  "postId": "7533659436398063619",
  "url": "https://www.linkedin.com/posts/williamhgates_how-courage-innovation-and-generosity-spur-activity-7533659436398063619-DggV",
  "urn": "urn:li:activity:7533659436398063619",
  "shareUrn": "urn:li:share:7533659434993033216",
  "text": "Giving Tuesday always reminds me how much people can accomplish by giving what they can—whether that’s time, money, or expertise. …",
  "authorName": "Bill Gates",
  "authorHeadline": "Chair, Gates Foundation and Founder, Breakthrough Energy",
  "authorType": "person",
  "authorProfileUrl": "https://www.linkedin.com/in/williamhgates",
  "authorPublicId": "williamhgates",
  "authorImageUrl": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_400_400/…",
  "authorFollowers": null,
  "companyName": null,
  "companyUrl": null,
  "postedAt": "2026-12-01T22:32:58.259Z",
  "postedAtTimestamp": 1796164378259,
  "postedAgo": "4h",
  "isEdited": true,
  "reactionsCount": 140,
  "commentsCount": 25,
  "repostsCount": null,
  "images": [],
  "video": null,
  "document": null,
  "article": {
    "title": "How courage, innovation, and generosity spur progress in the global fight against HIV",
    "url": "https://www.gatesfoundation.org/stories/hiv-prevention-progress-giving-tuesday",
    "source": "https://www.gatesfoundation.org",
    "imageUrl": "https://media.licdn.com/dms/image/sync/v2/D5627AQHm8gTamMLNtA/articleshare-shrink_1280_800/…"
  },
  "resharedPost": null,
  "hashtags": [],
  "mentions": [],
  "links": [],
  "isRepost": false,
  "repostedBy": null,
  "source": "profile",
  "inputUrl": "https://www.linkedin.com/in/williamhgates",
  "scrapedAt": "2026-12-02T03:29:35.912Z"
}
```

### Use cases

- **Track executives and founders.** See what the leaders of your customers, competitors or portfolio companies post, the day they post it.
- **Creator and influencer research.** Compare posting rhythm, formats and engagement across the voices in your niche.
- **Sales signals.** Spot announcements, hiring news and launches in the posts of the people you sell to.
- **Content inspiration.** Collect the latest posts of the writers you admire, with their reactions and comment counts.
- **Datasets.** Build collections of public posts for research and analysis.

### API, Python, JavaScript & integrations

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/linkedin-profile-posts-scraper").call(run_input={
    "profileUrls": ["https://www.linkedin.com/in/williamhgates"],
    "postedAfter": "1 day",
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["postedAt"], post["reactionsCount"], post["url"])
```

**JavaScript**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/linkedin-profile-posts-scraper').call({
    profileUrls: ['satyanadella', 'reidhoffman'],
    maxPostsPerSource: 5,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'posts');
```

Run it on a [schedule](https://docs.apify.com/platform/schedules) for daily monitoring, get the results by [webhook](https://docs.apify.com/platform/integrations/webhooks), send them to **Google Sheets, Slack, Make, Zapier or n8n** with [Apify integrations](https://docs.apify.com/platform/integrations), or call it from AI agents through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Limits

- **About 9 posts per profile.** LinkedIn shows logged-out visitors only a profile's latest activity, and the Actor never logs in. In our test of 40 well-known profiles, 26 showed 9 posts, 8 showed 7 or 8, one showed 6, and 2 showed none at all. A profile's older posts cannot be reached this way; paste their post links into our LinkedIn Posts Scraper instead, or schedule this Actor so every new post is collected as it appears.
- **Public posts only.** Posts shared with connections only are not shown to logged-out visitors and are never collected. A profile that does not exist or is not public ends with a clear status and costs nothing.
- **Reactions and comments a person made on other people's posts** are part of their activity but are not their posts, so they are left out.
- **No search.** LinkedIn shows post search only to signed-in members, so the Actor works from profile links.
- **Repost counts** are not shown logged out: `repostsCount` is always `null`.
- **Media links expire** after a while; download images and videos soon if you need them.

### FAQ

**Do I need a LinkedIn account?**
No. The Actor reads public pages as a logged-out visitor and never asks for an account, cookies or a login.

**How many posts do I get per profile?**
The posts LinkedIn shows logged out, usually 9, newest first. Set **Max posts per profile** to `0` to save every one of them.

**Can it monitor profiles for new posts?**
Yes, this is what it does best. Schedule it daily (or more often) with **Only posts newer than** set to `1 day`: each run saves only the new posts, and you pay only for those.

**Can I use company pages?**
Yes, company page links (`linkedin.com/company/…`) work in the same list. For companies only, our LinkedIn Company Posts Scraper is made for them.

**Why did a profile give no posts?**
Some profiles show no activity to logged-out visitors, or only reactions and comments. The status message names each profile and why, and nothing is charged for it.

**Is it legal to scrape LinkedIn profile posts?**
The Actor collects only what LinkedIn shows publicly to anyone who is not logged in. It is not affiliated with, endorsed by or licensed by LinkedIn. Posts contain personal data such as names, photos and profile links, so data-protection laws like the GDPR in Europe and the CCPA in California apply to how you keep and use them. You are responsible for using the data lawfully, including LinkedIn's terms; if in doubt, get legal advice.

**How fast is it?**
In our test, 300 posts from 40 profiles in about 2 minutes with the default settings.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Transcript Scraper](https://apify.com/socialscrapers/tiktok-transcript-scraper) | Video Captions and Subtitles to Text |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Email Scraper](https://apify.com/socialscrapers/instagram-email-scraper) | Emails and Phones from Public Profiles |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Events Scraper](https://apify.com/socialscrapers/facebook-events-scraper) | Public Events, Dates and Hosts |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Company Posts Scraper](https://apify.com/socialscrapers/linkedin-company-posts-scraper) | Latest Posts, No Login |
| [LinkedIn Company Scraper](https://apify.com/socialscrapers/linkedin-company-scraper) | Company Details, Size and Website |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [LinkedIn Post Comments Scraper](https://apify.com/socialscrapers/linkedin-post-comments-scraper) | Top Comments, No Login |
| [LinkedIn Posts Scraper](https://apify.com/socialscrapers/linkedin-posts-scraper) | Public Posts, Reactions and Comments |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Best Sellers Scraper](https://apify.com/socialscrapers/amazon-bestsellers-scraper) | Top 100 Rankings and Prices |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Amazon Search Scraper](https://apify.com/socialscrapers/amazon-search-scraper) | Products, Prices and Ratings by Keyword |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Airbnb Reviews Scraper](https://apify.com/socialscrapers/airbnb-reviews-scraper) | Guest Reviews, Ratings and Hosts |
| [Airbnb Scraper](https://apify.com/socialscrapers/airbnb-scraper) | Listings, Prices, Reviews and Hosts |
| [Booking.com Scraper](https://apify.com/socialscrapers/booking-scraper) | Hotels, Prices and Reviews |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [eBay Scraper](https://apify.com/socialscrapers/ebay-scraper) | Listings, Prices, Item Details and Sellers |
| [Etsy Scraper](https://apify.com/socialscrapers/etsy-scraper) | Products, Prices, Shops and Reviews |
| [Google Shopping Scraper](https://apify.com/socialscrapers/google-shopping-scraper) | Products, Prices and Sellers |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |
| [MercadoLibre Scraper](https://apify.com/socialscrapers/mercadolibre-scraper) | Products, Prices and Sellers |
| [Similarweb Scraper](https://apify.com/socialscrapers/similarweb-scraper) | Website Traffic, Rank and Visits |
| [Tripadvisor Reviews Scraper](https://apify.com/socialscrapers/tripadvisor-reviews-scraper) | Hotels, Restaurants and Attractions |
| [Tripadvisor Scraper](https://apify.com/socialscrapers/tripadvisor-scraper) | Hotels, Restaurants and Reviews |
| [Yelp Scraper](https://apify.com/socialscrapers/yelp-scraper) | Businesses, Reviews, Ratings and Contacts |
| [Zillow Property Scraper](https://apify.com/socialscrapers/zillow-property-scraper) | Home Details, Zestimate and History |
| [Zillow Scraper](https://apify.com/socialscrapers/zillow-scraper) | Listings, Prices, Zestimates and Agents |

# Actor input Schema

## `profileUrls` (type: `array`):

Public profile links (linkedin.com/in/…) or public IDs such as williamhgates. Each gives the latest posts LinkedIn shows logged-out visitors on that profile: about 8 or 9, newest first.

## `maxPostsPerSource` (type: `integer`):

How many of each profile's latest posts to save, newest first. 0 saves every post LinkedIn shows (usually 8 or 9). You pay per post saved.

## `postedAfter` (type: `string`):

Only posts published on or after this day. Pick a date or an age, or type one: a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>) or an age such as <code>7 days</code>, <code>2w</code> or <code>3 months</code>. Older posts are not read and not charged.

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

Also save the posts each profile reposted from others (marked with isRepost and repostedBy). Turn off for their own posts only.

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

Also save the top comments LinkedIn shows logged-out visitors on each post (usually up to 10), each as its own item with its text, author, date and reactions. Charged per comment saved.

## `maxCommentsPerPost` (type: `integer`):

Comments to save from each post. 0 saves every comment the post page shows.

## `maxConcurrency` (type: `integer`):

How many LinkedIn pages are loaded at the same time. Lower it if you see many refused requests in the log; runs with less than 512 MB of memory load fewer.

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

Apify Proxy (the default) is recommended. The scraper picks Apify Proxy's tier itself: datacenter first, residential only for pages that are refused. Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/williamhgates",
    "https://www.linkedin.com/in/satyanadella"
  ],
  "maxPostsPerSource": 5,
  "includeReposts": true,
  "includeComments": false,
  "maxCommentsPerPost": 10,
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialscrapers/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/11eFcIe8TF7viT1RT/builds/KGR0nDduN055lJ4Nw/openapi.json
