LinkedIn Comments Scraper | Extract Post Engagement Data
Pricing
$3.00 / 1,000 comments
LinkedIn Comments Scraper | Extract Post Engagement Data
Scrape LinkedIn post comments quickly. Extract text, mentions, nested replies, and reactor profile data. Export to JSON, CSV, or Excel. No accounts/cookies required
Pricing
$3.00 / 1,000 comments
Rating
0.0
(0)
Developer

Benjar Scraping API
Actor stats
0
Bookmarked
3
Total users
2
Monthly active users
4 days ago
Last modified
Categories
Share
LinkedIn Post Comments Scraper
Effortlessly extract all comments and replies from any LinkedIn post, article, or video. Get detailed engagement data including the commenter's name, headline, profile URL, comment text, media, and nested replies — all structured and ready for analysis.
Why Use This LinkedIn Comments Scraper?
- Comprehensive Extraction — Collect thousands of comments from any LinkedIn post, regardless of whether it's an activity, share, or ugcPost.
- Smart URL Resolution — Simply paste the post URL. The scraper automatically resolves complex LinkedIn links and finds the underlying content URN to ensure no comments are missed.
- Rich Structured Data — Get the exact comment text, timestamps, mentions, attached media, and commenter's profile data.
- Nested Replies — Configurable option to extract nested replies to comments.
- Export-Ready — Download results as JSON, CSV, Excel, or any format supported by Apify.
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
postUrl | string | Yes | — | URL or ID of the LinkedIn post to scrape comments for (e.g. https://www.linkedin.com/posts/activity-123456789) |
maxComments | integer | No | 100 | Maximum number of top-level comments to collect. Set higher to get all comments on viral posts. |
sortOrder | string | No | RELEVANCE | Sort order for comments (RELEVANCE or RECENT). |
Usage Examples
Scrape up to 1000 comments by relevance
{"postUrl": "https://www.linkedin.com/posts/activity-7397121047453523969","maxComments": 1000,"sortOrder": "RELEVANCE"}
Output — LinkedIn Comment Data Structure
Each run produces a dataset where every item represents a single top-level comment (which may include a replies array) with the following fields:
| Field | Type | Description |
|---|---|---|
comment_id | string | The ID of the comment |
text | string | The text content of the comment |
posted_at | object | Timestamps and relative time the comment was posted |
author.name | string | Full name of the commenter |
author.profile_url | string | Direct link to the commenter's LinkedIn profile |
stats | object | Likes, replies, and other interaction counts on the comment |
mentions | array | Mentions of profiles or companies within the comment |
media | object | Attached images or articles in the comment |
replies | array | Nested reply comment objects |
totalComments | integer | The total number of comments on the post |
Sample Output
[{"comment_id": "7123456789","text": "This is a great insight! Thanks for sharing.","posted_at": {"timestamp": 1700654321000,"date": "2023-11-22T12:00:00.000Z","relative": "1d"},"is_edited": false,"is_pinned": false,"comment_url": "https://www.linkedin.com/feed/update/...","author": {"name": "Jane Doe","headline": "Software Engineer at TechCorp","profileUrn": "ACoAAA...","profile_url": "https://www.linkedin.com/in/janedoe","profile_picture": "https://media.licdn.com/dms/image/...","is_post_author": false},"stats": {"total_reactions": 5,"reactions": {"like": 5,"appreciation": 0,"empathy": 0,"interest": 0,"praise": 0},"comments": 1},"mentions": [],"media": null,"replies": [{"comment_id": "7123456790","text": "I completely agree!","author": { "name": "John Smith" }}],"totalComments": 150}]