# LinkedIn Profile Posts & Comments Scraper (No Cookies) (`capable_cauldron/linkedin-profile-posts-comments-scraper`) Actor

Scrape a LinkedIn profile's public posts and up to 50 comments per post by default, with nested replies included free. No cookies or login. Posts and comments come back in one dataset, ready to export as JSON, CSV or Excel.

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

## Pricing

from $1.00 / 1,000 post scrapeds

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

This **LinkedIn profile posts and comments scraper** collects a profile's posts and the comment threads under them in one run, with **no cookies or login**. Collect up to **50 comments per post by default**, with replies included free inside each comment. Post and comment rows cost $2 per 1,000 each on the free tier; Apify's free plan includes $5 of monthly platform credit, enough for up to 2,500 combined rows before start and platform charges.

Click **Try for free**, paste a profile, and start. Apify handles scheduling, API access, webhooks and integrations so you can repeat the same export without building your own scraper.

See a real run in 47 seconds:

[![LinkedIn Profile Posts & Comments Scraper demo video, 47 seconds](https://api.apify.com/v2/key-value-stores/9FGooi7IrKs0P8DcV/records/linkedin-profile-posts-comments-scraper-demo-poster.jpg)](https://api.apify.com/v2/key-value-stores/9FGooi7IrKs0P8DcV/records/linkedin-profile-posts-comments-scraper-demo.mp4)

▶️ [Watch the 47-second demo](https://api.apify.com/v2/key-value-stores/9FGooi7IrKs0P8DcV/records/linkedin-profile-posts-comments-scraper-demo.mp4) (MP4, 22 MB, opens in your browser) · [Transcript](https://api.apify.com/v2/key-value-stores/9FGooi7IrKs0P8DcV/records/linkedin-profile-posts-comments-scraper-demo-transcript.srt)

### What can this LinkedIn profile posts and comments scraper do?

- 💬 Collect recent profile posts and their comment threads together.
- 🧵 Keep replies nested under the right top-level comment, free of extra event charges.
- 📊 Export author details, post text, reaction totals and reaction counts by type.
- 📷 Preserve available image variants, video, documents, articles, polls and company mentions.
- 🗓️ Filter posts and comments independently by age, and choose recent or relevant comments.

Each post keeps its source profile and original-post details when it is a repost. The run removes duplicate profiles and duplicate post IDs across profiles. It does not collect lists of people who reacted or reposted. Availability depends on what is publicly accessible; counts and media links can change after collection.

### How to use this LinkedIn profile posts and comments scraper

1. Click **Try for free** and sign in to Apify.
2. Paste person profile URLs or usernames into LinkedIn profiles.
3. Keep the default 10 posts and 50 comments per post for a first export, or reduce those limits to try a small sample.
4. Choose a date window if you only need recent activity. Most recent comment order works well for monitoring.
5. Click **Start**, wait for the run to finish, and open the dataset.
6. Choose Posts or Comments, then export JSON, CSV, Excel or another available format.

Company pages, school pages and post links are not accepted as input. Private or unavailable profiles may produce no rows. A clear run summary explains which inputs could not be used.

### How much does it cost to use the LinkedIn profile posts and comments scraper?

| Event | Price per 1,000 delivered rows (FREE/BRONZE) |
|---|---:|
| Post scraped | $2.00 |
| Top-level comment scraped | $2.00 |
| Nested reply | Free |

Volume discounts on paid Apify plans apply to both paid events: SILVER is $1.50 per 1,000; GOLD, PLATINUM and DIAMOND are $1.00 per 1,000. Only rows delivered are charged. There is no per-profile event fee.

For example, 10 posts with 50 comments each produce 510 billed rows and cost $1.02 in event fees at the free-tier rate. Three posts with 20 comments each cost $0.126. Ten posts with comments turned off cost $0.02. These examples exclude the automatic Apify Actor-start fee and any platform charges shown for your run. Apify's $5 monthly free plan credit covers up to 2,500 combined rows before those charges. Use the run's maximum total charge setting to cap spending.

### Input

| Field | Default | Description |
|---|---|---|
| `profileUrls` | required | Profile URLs or bare usernames. Company, school and post URLs are not supported. Duplicate profiles are removed. |
| `maxPostsPerProfile` | 10 | Maximum number of recent posts returned for each profile. |
| `postedLimit` | any | Keep posts published within this time window. |
| `includeReposts` | true | Include shared posts. Reposts use the original post comment thread. |
| `scrapeComments` | true | Return top-level comments with replies nested inside each comment. Replies are free. |
| `maxCommentsPerPost` | 50 | Maximum top-level comments returned per post. Replies stay nested and do not count toward this limit. Only delivered top-level comments are billed; a post may have fewer available comments. |
| `commentsSort` | mostrecent | Choose most recent or most relevant comments. |
| `commentsPostedLimit` | any | Keep comments published within the selected time window. |

The post limit applies per profile. The comment limit applies per post and counts only top-level comments. Replies returned with those comments stay nested even when the top-level comment limit is small. Date windows are rolling durations: month is 30 days, three months 90 days, six months 180 days and year 365 days. A date filter may return fewer rows than the limits.

```json
{"profileUrls":["https://www.linkedin.com/in/williamhgates/"],"maxPostsPerProfile":3,"maxCommentsPerPost":50,"commentsSort":"mostRecent"}
```

### Output

The dataset contains `type: "post"` and `type: "comment"` rows. The `overview` view shows posts; the `comments` view shows top-level comments. Nested replies are available in JSON. CSV exports can flatten the author object; JSON is best when you want complete reply threads and media variants.

This abbreviated, illustrative example shows the shape produced by the Bill Gates input above. Actual text, counts and dates depend on when you run it.

```json
[
  {"type":"post","id":"7526456102226403328","postUrl":"https://www.linkedin.com/feed/update/urn:li:activity:7526456102226403328/","text":"When your family’s food and livelihood depend on the right timing, a reliable weather forecast is invaluable.","author":{"name":"Bill Gates","username":"williamhgates"},"commentsScraped":46,"sourceProfile":"https://www.linkedin.com/in/williamhgates/"},
  {"type":"comment","id":"7526799623076753408","postId":"7526456102226403328","text":"good!","author":{"name":"榎原雅良"},"replies":[],"isPinned":false,"isEdited":false}
]
```

Post rows include ISO publication dates and millisecond timestamps, share URLs, media, company mentions, original-author details, total reactions and each reaction type, comment and repost counts. Comment rows include permalinks, creation dates, commenter headline and profile picture, edited and pinned flags, reply counts and nested replies. `commentsScraped` is the number of top-level comments fetched and selected for that post. The post row is saved first. If a charge limit stops comment delivery, this count can exceed the number of saved comments; count comment rows with the matching `postId` for the delivered total. The OUTPUT record contains status, counts, messages and request accounting. Every delivered comment has its post row saved before it.

### Use cases

Start with one of these six prefilled examples:

- [Profile posts and 50 comments with free replies](https://apify.com/capable_cauldron/linkedin-profile-posts-comments-scraper/examples/lppc-posts-comments-free-replies)
- [Compare executive post discussions](https://apify.com/capable_cauldron/linkedin-profile-posts-comments-scraper/examples/lppc-executive-discussion)
- [Recent executive posts without comments](https://apify.com/capable_cauldron/linkedin-profile-posts-comments-scraper/examples/lppc-recent-posts-only)
- [Weekly profile conversations](https://apify.com/capable_cauldron/linkedin-profile-posts-comments-scraper/examples/lppc-weekly-conversations)
- [Original profile posts and comments](https://apify.com/capable_cauldron/linkedin-profile-posts-comments-scraper/examples/lppc-original-posts)
- [Relevant comments on recent posts](https://apify.com/capable_cauldron/linkedin-profile-posts-comments-scraper/examples/lppc-relevant-comments)

### API and integrations

Use `capable_cauldron/linkedin-profile-posts-comments-scraper` with the Apify API. Keep your API token in an environment variable.

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('capable_cauldron/linkedin-profile-posts-comments-scraper').call({ profileUrls: ['williamhgates'], maxPostsPerProfile: 3 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

```python
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('capable_cauldron/linkedin-profile-posts-comments-scraper').call(run_input={'profileUrls':['williamhgates'],'maxPostsPerProfile':3})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

```bash
apify call capable_cauldron/linkedin-profile-posts-comments-scraper --input '{"profileUrls":["williamhgates"],"maxPostsPerProfile":3}'
```

Connect results to Make, Zapier, n8n or your own webhook consumer. Apify schedules can run the same input regularly, and the dataset API supports retrieving results after completion.

### FAQ

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

No. This Actor reads public data without LinkedIn cookies or login. You do need an Apify account to run it.

#### Why did I receive fewer than 50 comments?

The post may have fewer available comments, the date filter may exclude older ones, or the public source may return a shorter page. Fifty is the default maximum, not a guarantee. Reply objects do not count against that top-level limit. Public counts can include replies and inaccessible comments, so they may exceed the rows available.

#### Can I scrape company pages or individual post links?

This Actor accepts person profiles only. Use a dedicated post-comments Actor for a post URL. Reposts use the original comment thread when the original post ID is available.

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

You are responsible for evaluating applicable laws, LinkedIn's terms, privacy obligations and your intended use. Public visibility does not remove those obligations. Collect only what you need and handle personal data responsibly.

#### Can I scrape LinkedIn profile posts and comments with Python?

Yes. The Python API example above starts a run and downloads its dataset. Poll or wait for completion before exporting all rows. A profile that cannot be found ends successfully with a plain reason and no data event charges.

### Other Actors by capable_cauldron

| Actor | What it does |
|---|---|
| [App Store Reviews Scraper](https://apify.com/capable_cauldron/app-store-reviews-scraper) | Reviews and ratings for iPhone and iPad apps, grouped by app and country |
| [Bulk Email Validator](https://apify.com/capable_cauldron/email-validator) | Syntax, mail-routing, disposable-domain and role-inbox checks |
| [Company Job Postings Scraper](https://apify.com/capable_cauldron/ats-jobs-scraper) | Open roles and hiring summaries from supported company job boards |
| [GTM Account Enrichment](https://apify.com/capable_cauldron/gtm-account-enrichment) | Public company contacts, technologies and hiring signals with an account fit score |
| [Investor Database Search](https://apify.com/capable_cauldron/investor-database-search) | Filter investors by stage, industry and geography and export available partner contacts |
| [LinkedIn Comment Scraper](https://apify.com/capable_cauldron/linkedin-comment-scraper) | LinkedIn comments and replies using your own session cookies |
| [LinkedIn Post Comments Scraper](https://apify.com/capable_cauldron/linkedin-post-comments-scraper) | Comments, replies and reactions on public LinkedIn posts without cookies |
| [LinkedIn Profile Posts Scraper](https://apify.com/capable_cauldron/linkedin-profile-posts-scraper) | Public profile posts with 56 enriched fields, including engagement and content metadata |
| [Ad Scraper: Meta, Google, LinkedIn & TikTok](https://apify.com/capable_cauldron/multi-channel-ad-intelligence) | Competitor ads from Meta, Google, LinkedIn and TikTok in one dataset |
| [TikTok Shop USA Scraper](https://apify.com/capable_cauldron/tiktok-shop-usa-scraper) | US product, shop, creator and shoppable-video data from TikTok Shop |
| [Website Contact Scraper](https://apify.com/capable_cauldron/website-contact-scraper) | Public emails, phone numbers and social profile links from company websites |
| [Website Tech Stack Detector](https://apify.com/capable_cauldron/website-tech-stack-detector) | Visible website technologies and the evidence supporting each detection |
| [Verified Work Email Finder](https://apify.com/capable_cauldron/verified-work-email-finder) | Verified professional emails from LinkedIn URLs or a name and company domain |
| [LinkedIn Post Search Scraper](https://apify.com/capable_cauldron/linkedin-post-search-scraper) | Keyword searches for public LinkedIn posts with text, authors and engagement |

### Support

Open an issue on the Actor's Issues tab with the run ID and a short description. Please keep credentials out of issue reports. We aim to respond within two business days and also take custom scraping and integration work.

# Actor input Schema

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

Profile URLs or bare usernames. Company, school and post URLs are not supported. Duplicate profiles are removed.

## `maxPostsPerProfile` (type: `integer`):

Maximum number of recent posts returned for each profile.

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

Keep posts published within this time window.

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

Include shared posts. Reposts use the original post comment thread.

## `scrapeComments` (type: `boolean`):

Return top-level comments with replies nested inside each comment. Replies are free.

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

Maximum top-level comments returned per post. Replies stay nested and do not count toward this limit. Only delivered top-level comments are billed; a post may have fewer available comments.

## `commentsSort` (type: `string`):

Choose most recent or most relevant comments.

## `commentsPostedLimit` (type: `string`):

Keep comments published within the selected time window.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/williamhgates/"
  ],
  "maxPostsPerProfile": 10,
  "postedLimit": "any",
  "includeReposts": true,
  "scrapeComments": true,
  "maxCommentsPerPost": 50,
  "commentsSort": "mostRecent",
  "commentsPostedLimit": "any"
}
```

# Actor output Schema

## `rows` (type: `string`):

Rows with type post or comment.

## `runSummary` (type: `string`):

Status, per-post counts (commentsTotal vs collected), and categorised error counters.

# 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/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("capable_cauldron/linkedin-profile-posts-comments-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/"] }

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

```

## MCP server setup

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