LinkedIn Comments Scraper | Extract Post Engagement Data avatar

LinkedIn Comments Scraper | Extract Post Engagement Data

Pricing

$3.00 / 1,000 comments

Go to Apify Store
LinkedIn Comments Scraper | Extract Post Engagement Data

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

Benjar Scraping API

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

4 days ago

Last modified

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

FieldTypeRequiredDefaultDescription
postUrlstringYesURL or ID of the LinkedIn post to scrape comments for (e.g. https://www.linkedin.com/posts/activity-123456789)
maxCommentsintegerNo100Maximum number of top-level comments to collect. Set higher to get all comments on viral posts.
sortOrderstringNoRELEVANCESort 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:

FieldTypeDescription
comment_idstringThe ID of the comment
textstringThe text content of the comment
posted_atobjectTimestamps and relative time the comment was posted
author.namestringFull name of the commenter
author.profile_urlstringDirect link to the commenter's LinkedIn profile
statsobjectLikes, replies, and other interaction counts on the comment
mentionsarrayMentions of profiles or companies within the comment
mediaobjectAttached images or articles in the comment
repliesarrayNested reply comment objects
totalCommentsintegerThe 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
}
]