LinkedIn Post Comments Scraper
Pricing
from $4.99 / 1,000 results
LinkedIn Post Comments Scraper
Extract comments from any LinkedIn post quickly and reliably. This Apify actor captures comment text, usernames, timestamps, and engagement data. Perfect for sentiment analysis, audience insights, and tracking discussions with clean, structured output ready for use.
Pricing
from $4.99 / 1,000 results
Rating
0.0
(0)
Developer
Scraper Engine
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
LinkedIn Post Comments Scraper
The LinkedIn Post Comments Scraper is a purpose-built tool that helps you scrape LinkedIn post comments at scale — including replies, authors, timestamps, and reactions — in clean, structured JSON. It solves the manual effort of collecting comment threads and engagement data, giving marketers, developers, data analysts, and researchers a fast LinkedIn comments scraper for insights, sentiment, and lead enrichment. With this LinkedIn post comment extractor, you can automate LinkedIn comments scraping across multiple posts and export results for analysis.
What data / output can you get?
Below are the exact fields this LinkedIn post comments scraping tool pushes to the dataset for each comment. This makes it a reliable LinkedIn comments export to CSV/JSON/Excel for downstream analytics and CRM workflows.
| Data type | Description | Example value |
|---|---|---|
| postUrl | Source LinkedIn post URL you provided | https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/ |
| comment_id | Parsed LinkedIn comment ID | 1234567890123 |
| text | Comment text (sanitized of extra whitespace) | Great announcement — congrats to the team! |
| posted_at.timestamp | Unix timestamp (ms) when the comment was created | 1713648000000 |
| posted_at.date | Local datetime string derived from timestamp | 2024-04-20 14:22:13 |
| posted_at.relative | Relative age string (e.g., s/m/h/d/w/y) | 3h |
| is_edited | Whether the comment was edited | false |
| is_pinned | Whether the comment is pinned | false |
| comment_url | Comment permalink (built if missing) | https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/?commentUrn=urn%3Ali%3Acomment%3A%281234567890123%29 |
| author.name | Comment author name | Jane Doe |
| author.headline | Author headline (only when profileScraperMode=full) | Product Marketing @ Acme |
| author.profile_url | Link to the author’s profile | https://www.linkedin.com/in/janedoe |
| author.profile_picture | Best-effort profile picture URL (only when profileScraperMode=full) | https://media.licdn.com/dms/image/... |
| stats.total_reactions | Total reactions count on the comment | 12 |
| stats.reactions | Reaction-type breakdown (keys include like, appreciation, empathy, interest, praise) | {"like": 9, "appreciation": 2, "empathy": 0, "interest": 1, "praise": 0} |
| stats.comments | Number of replies under this comment | 3 |
| replies | Nested replies array (structure identical to parent comments); included when scrapeReplies=true and pass filters | [ { ...reply object... } ] |
| post_input | Post ID parsed from URNs (string) | 7289521182721093633 |
| totalComments | Total top-level comments reported for the post (when available) | 150 |
Notes:
- Comments are fetched in reverse chronological order.
- Replies are included only when scrapeReplies is enabled; they inherit the same structure as top-level comments.
- You can download Apify datasets in CSV, JSON, or Excel to power analytics, enrichment, and reporting.
Key features
-
🚀 Fast LinkedIn post comments scraping
- Collect clean, structured comments and replies with author details, timestamps, and engagement data in a single run.
-
🧠 Accurate reactions and engagement stats
- Extract total reactions plus a reaction-type map with keys like like, appreciation, empathy, interest, and praise for each comment.
-
🧵 Optional replies capture
- Toggle scrapeReplies to collect nested comment threads, making this a complete LinkedIn reactions and comments scraper.
-
👤 Flexible author details
- Use profileScraperMode to choose short (no profile details) or full (headline and profile picture) author metadata.
-
📅 Powerful time filtering
- Filter results by postedLimit: any, 24h, week, month, 3months, 6months, year to keep only recent comments.
-
📈 Scale control per post
- Set resultLimitPerPost (1–500) to cap how many comments you collect per post, ideal for batch runs across many posts.
-
🔒 Smart connection handling
- Optional liAt cookie support for authenticated access. The actor builds a session with CSRF and handles rate limits with delays and exponential backoff; it can also escalate from no proxy to datacenter to residential when blocked.
-
🔌 Developer-friendly on Apify
- Run via Apify UI or API, integrate with workflows, and automate LinkedIn comments lead extraction or sentiment analysis pipelines.
-
💾 Export-ready
- Results land in a dataset so you can export LinkedIn comments to CSV, JSON, or Excel for BI tools and CRM ingestion.
How to use LinkedIn Post Comments Scraper - step by step
- Sign in to Apify.
- Open the LinkedIn Post Comments Scraper actor.
- Add your input under Posts:
- In startUrls, paste one or more LinkedIn post URLs or activity/UGC IDs (e.g., https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/ or 7289521182721093633).
- Configure limits and filters:
- resultLimitPerPost: Set how many comments per post to collect (1–500; default 10).
- postedLimit: Keep only comments from the last 24h, week, month, 3months, 6months, or year (default any).
- scrapeReplies: Enable to include nested replies.
- profileScraperMode: Choose short (no profile details) or full (adds headline and profile picture).
- Provide authentication:
- liAt: Paste your LinkedIn li_at cookie for logged-in access. Without a valid li_at, LinkedIn requires authentication to fetch comments and the actor will likely fail.
- (Optional) Set Proxy Configuration:
- Leave default for direct connection, or enable Apify Proxy. The actor can automatically escalate to datacenter or residential proxies if blocked.
- Click Start:
- The run discovers the required query, builds a session, and fetches comments in reverse chronological order with built-in delays and backoff.
- Download your results:
- Go to the run’s Dataset and export as CSV, JSON, or Excel for downstream analysis.
Pro tip: Use this LinkedIn comments API alternative in your data pipelines via the Apify API to automate LinkedIn comments scraping at scale and feed analytics, enrichment, or alerting workflows.
Use cases
| Use case name | Description |
|---|---|
| Market research – comment sentiment tracking | Analyze how audiences react to campaigns by collecting comment text, timestamps, and reaction counts across posts. |
| Social listening – product feedback | Automate LinkedIn post comments scraping to monitor feedback on product announcements, pricing changes, or launches. |
| Lead enrichment – commenters to prospects | Export commenters and their profile links for follow-up in B2B outreach workflows, powering LinkedIn comments lead extraction. |
| Content performance – reactions vs. comments | Use the LinkedIn reactions and comments scraper outputs to correlate engagement types with content formats and topics. |
| Competitive analysis – track rivals’ posts | Scrape LinkedIn post comments for competitors’ posts to benchmark engagement patterns over time. |
| Academic research – public discourse studies | Collect structured comment threads to study discussions, diffusion, and influence on professional networks. |
| Developer pipeline – API automation | Run via Apify API and use the structured fields in Python workflows as a LinkedIn comments scraping Python alternative to brittle browser scripts. |
Why choose LinkedIn Post Comments Scraper?
This scraper is built for precision, automation, and reliability on Apify — a production-grade alternative to browser extensions and one-off scripts.
- 🎯 Accurate, structured output: Clean fields for text, author, timestamps, reactions, and replies.
- 🧱 Reverse-chronological fetching: Consistent ordering for analytics and dashboards.
- 🧵 Replies on demand: Toggle nested threads with scrapeReplies for deeper context.
- 👤 Configurable author detail depth: Control cost and detail with profileScraperMode (short vs full).
- 📅 Robust filtering: Use postedLimit to focus on the most recent discussions.
- 🧪 Developer access: Run via UI or API and slot into existing pipelines with minimal effort.
- 🛡️ Resilient by design: Handles session setup, CSRF, delays, 429 backoff, and proxy escalation when blocked.
- 💰 Cost control: Cap collection per post with resultLimitPerPost and choose data depth to match your budget.
In short, it’s a production-ready LinkedIn post comments scraping tool that outperforms unstable alternatives while keeping your data clean and analysis-ready.
Is it legal / ethical to use LinkedIn Post Comments Scraper?
Yes — when used responsibly. This actor is designed to collect publicly available comment data. Users are responsible for complying with LinkedIn’s terms and applicable regulations (e.g., GDPR, CCPA) in their jurisdiction.
Guidelines:
- Only collect data you are authorized to access and use.
- Provide valid authentication (li_at) and avoid abusive request patterns.
- Do not use the data for spam or misuse; respect user privacy and platform policies.
- Consult your legal team for edge cases or jurisdiction-specific requirements.
Input parameters & output format
Example JSON input
{"startUrls": ["https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/","7289521182721093633"],"resultLimitPerPost": 50,"postedLimit": "month","scrapeReplies": true,"profileScraperMode": "full","liAt": "YOUR_LI_AT_COOKIE_HERE","proxyConfiguration": {"useApifyProxy": false}}
Parameters
- startUrls (array, required) — Paste one or more LinkedIn post URLs or activity IDs. Each post is scraped separately. Default: [].
- resultLimitPerPost (integer) — How many comments to collect per post (min 1, max 500). Default: 10.
- postedLimit (string) — Only keep comments from the last 24h, week, month, 3months, 6months, year; or any for all. Default: any.
- scrapeReplies (boolean) — When on, nested replies under each comment are included. Default: false.
- profileScraperMode (string) — short (no profile details) or full (profile picture & headline). Default: short.
- liAt (string) — Optional. Paste your li_at cookie for logged-in access. Without it, LinkedIn requires authentication and the run will likely fail. Default: "".
- proxyConfiguration (object) — Optional. Use a proxy if needed. Leave default for direct connection. Default: {"useApifyProxy": false}.
Example JSON output
[{"comment_id": "1234567890123","text": "Great announcement — congrats to the team!","posted_at": {"timestamp": 1713648000000,"date": "2024-04-20 14:22:13","relative": "3h"},"is_edited": false,"is_pinned": false,"comment_url": "https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/?commentUrn=urn%3Ali%3Acomment%3A%281234567890123%29","author": {"name": "Jane Doe","headline": "Product Marketing @ Acme","profile_url": "https://www.linkedin.com/in/janedoe","profile_picture": "https://media.licdn.com/dms/image/..."},"stats": {"total_reactions": 12,"reactions": {"like": 9,"appreciation": 2,"empathy": 0,"interest": 1,"praise": 0},"comments": 3},"replies": [{"comment_id": "1234567890999","text": "Totally agree!","posted_at": {"timestamp": 1713649200000,"date": "2024-04-20 14:40:00","relative": "2h"},"is_edited": false,"is_pinned": false,"comment_url": "https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/?commentUrn=urn%3Ali%3Acomment%3A%281234567890999%29","author": {"name": "John Smith","headline": "Sales @ Beta","profile_url": "https://www.linkedin.com/in/johnsmith","profile_picture": "https://media.licdn.com/dms/image/..."},"stats": {"total_reactions": 2,"reactions": {"like": 2,"appreciation": 0,"empathy": 0,"interest": 0,"praise": 0},"comments": 0},"replies": [],"post_input": "7289521182721093633","totalComments": 150}],"post_input": "7289521182721093633","totalComments": 150,"postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7289521182721093633/"}]
Notes:
- author.headline and author.profile_picture are included only when profileScraperMode=full.
- replies will be an empty array when scrapeReplies=false or when replies don’t meet the postedLimit filter.
- stats.reactions may include the listed reaction keys; unknown keys are normalized to lowercase when present.
FAQ
Do I need to log in or provide cookies to scrape LinkedIn comments?
Yes. LinkedIn requires authentication to fetch comments. This actor accepts your liAt cookie for logged-in access. If you don’t provide a valid li_at, the run will likely fail.
How many comments can I scrape per post?
You can collect between 1 and 500 comments per post using resultLimitPerPost. The scraper fetches comments in reverse chronological order.
Can it include replies to comments?
Yes. Enable scrapeReplies to include nested replies. Replies use the same structure as top-level comments and honor the postedLimit filter.
What data fields are included in the output?
Each row includes postUrl, comment_id, text, posted_at (timestamp, date, relative), is_edited, is_pinned, comment_url, author (name, headline, profile_url, profile_picture), stats (total_reactions, reactions map, comments), replies, post_input, and totalComments.
Can I filter by recency (e.g., last week or month)?
Yes. Use postedLimit and choose any, 24h, week, month, 3months, 6months, or year to keep only recent comments.
Does it support proxies or anti-blocking measures?
Yes. You can supply Proxy Configuration. The actor also handles session setup, random delays, exponential backoff on 429s, and can escalate from no proxy to datacenter to residential when blocked.
Can I export the comments to CSV or JSON?
Yes. Results are stored in an Apify dataset, which you can download as CSV, JSON, or Excel. This makes it a practical LinkedIn comment data scraper and LinkedIn comments export to CSV solution.
Is this a LinkedIn comments API alternative I can automate?
Yes. You can run the actor programmatically via the Apify API to automate LinkedIn post comments scraping and integrate with your pipelines, including Python-based workflows.
Closing thoughts
The LinkedIn Post Comments Scraper is built to collect structured, analysis-ready comment threads and engagement data from LinkedIn posts. With flexible limits, time-based filtering, replies capture, and resilient session handling, it helps marketers, developers, analysts, and researchers automate LinkedIn comment downloader workflows at scale. Integrate via the Apify API for end-to-end automation, export to CSV/JSON/Excel, and start extracting smarter insights from the conversations that matter.