Linkedin Comment Scraper
Pricing
Pay per event
Go to Apify Store

Linkedin Comment Scraper
Scrape comments and replies from LinkedIn posts. Supports pagination, filtering, and comprehensive data extraction.
Pricing
Pay per event
Rating
4.1
(3)
Developer
Capable Cauldron
Maintained by CommunityActor stats
3
Bookmarked
143
Total users
9
Monthly active users
19 days ago
Last modified
Categories
Share
๐ LinkedIn Comment Scraper
Extract comments and replies from LinkedIn posts quickly and easily. Perfect for market research, lead generation, and social media analysis.
โจ What This Tool Does
- Scrapes comments and replies from LinkedIn posts
- Extracts user details like names, headlines, and profile links
- Handles large posts with hundreds of comments via automatic pagination
- Built-in rate limiting to avoid LinkedIn blocks
- Pay-per-event pricing so you only pay for what you scrape
๐ฏ Perfect For
- Lead Generation: Find potential customers commenting on competitor posts
- Market Research: Analyze audience reactions and feedback
- Content Strategy: See what resonates with your target audience
- Competitor Analysis: Monitor engagement on industry posts
- Social Listening: Track conversations around your brand or topics
๐ How to Use
Step 1: Get Your LinkedIn Cookies
- Install Cookie Editor: Get it from Chrome Web Store
- Log in to LinkedIn in your browser
- Open Cookie Editor (click the extension icon)
- Click the "Export" button and choose JSON
- Copy the JSON data and paste it into the "LinkedIn Cookies" field
Step 2: Configure and Run
- Go to Apify Console and find the LinkedIn Comment Scraper Actor
- Add your LinkedIn post URLs to the input
- Paste your cookies into the LinkedIn Cookies field
- Click "Start" and wait for the scraper to finish
- Download results as Excel, CSV, or JSON from the dataset
Example input:
{"postUrls": ["https://www.linkedin.com/posts/example-user_some-post-activity-1234567890-AbCd"],"maxCommentsPerPost": 50,"cookies": "[{\"name\":\"li_at\",\"value\":\"YOUR_COOKIE_VALUE\"}, ...]"}
๐ Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
postUrls | Array | โ Yes | - | LinkedIn post URLs to scrape (max 100) |
cookies | String | โ Yes | - | LinkedIn session cookies in JSON format |
maxCommentsPerPost | Integer | No | 10 | Max comments per post, 1โ1000 |
commentsPerRequest | Integer | No | 10 | Comments fetched per API call, 1โ10 |
sortOrder | String | No | "Most Relevant" | "Most Relevant" or "Most Recent" |
excludeAuthorComments | Boolean | No | false | Skip comments from the post author |
maxRetries | Integer | No | 3 | Max retries for failed requests, 0โ10 |
requestDelayMin | Integer | No | 2 | Min delay between requests in seconds |
requestDelayMax | Integer | No | 5 | Max delay between requests in seconds |
maxDatasetItems | Integer | No | 10000 | Max items saved to dataset (cost control) |
proxyConfiguration | Object | No | - | Proxy settings to avoid IP blocking |
๐ค Output Format
Each comment is saved as a separate item in the dataset:
{"comment_id": "7393592608029110272","comment_text": "Great insights!","comment_url": "https://www.linkedin.com/feed/update/urn:li:activity:...","created_at": "2025-11-10T04:17:24.063000","commenter_name": "Jane Smith","commenter_headline": "Software Engineer at Acme Corp","commenter_url": "https://www.linkedin.com/in/janesmith","commenter_profile_id": "ACoAABLOV80BplFy...","is_author": false,"is_reply": false,"parent_comment_id": null,"post_url": "https://www.linkedin.com/posts/example-post...","post_id": "7388555823808946176","scraped_at": "2025-11-10T10:30:00.123456"}
A run summary is also saved to the key-value store as OUTPUT:
{"status": "SUCCESS","posts_processed": 2,"total_posts": 2,"total_comments_scraped": 12,"pricing_model": "pay-per-event"}
๐ฐ Pricing
Pay-per-event pricing:
- $0.001 per comment scraped (including replies)
- $0.01 per post processed
Example costs:
| Scenario | Cost |
|---|---|
| 50 comments from 2 posts | $0.07 |
| 100 comments from 5 posts | $0.15 |
| 500 comments from 10 posts | $0.60 |
Use the maxDatasetItems parameter to set a hard cap on items saved and control costs.
โก Performance Tips
- Use 1โ3 posts per run for optimal speed
- Set
commentsPerRequestto 5โ10 for a good balance between speed and rate limiting - Keep cookies fresh โ update them weekly for reliable scraping
- "Most Relevant" sort supports full pagination; "Most Recent" uses offset-based pagination
๐ก๏ธ Built-in Protection
- Smart rate limiting with configurable delays between requests
- Automatic retries for transient failures (configurable via
maxRetries) - Dataset item cap prevents runaway costs (
maxDatasetItems) - Graceful error handling โ one failed post won't stop the entire run
๐ง Troubleshooting
| Problem | Solution |
|---|---|
| "No comments found" | Check that the post has public comments and your cookies are valid |
| "Cookie not valid" / auth errors | LinkedIn cookies have expired โ export fresh ones |
| Fewer comments than expected | Some comments may be filtered (author comments, replies) or the post may have fewer than requested |
| Run stops early | Check if maxDatasetItems limit was reached |
๐ Need Help?
- Make sure your LinkedIn cookies are fresh (less than a week old)
- Verify post URLs are correct LinkedIn post links
- Try with a small
maxCommentsPerPostfirst to test your setup
Happy scraping! ๐