Linkedin Comment Scraper

by capable_cauldron

Scrape comments and replies from LinkedIn posts. Supports pagination, filtering, and comprehensive data extraction.

671 runs
84 users
Try This Actor

Opens on Apify.com

About Linkedin Comment Scraper

Scrape comments and replies from LinkedIn posts. Supports pagination, filtering, and comprehensive data extraction.

What does this actor do?

Linkedin Comment Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

🚀 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 all comments from LinkedIn posts (including replies) - Extracts user details like names, headlines, and profile links - Handles large posts with hundreds of comments automatically - Works in two modes: Traditional batch processing or real-time API - Built-in rate limiting to avoid LinkedIn blocks ## 🎯 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 1. Install Cookie Editor: Get it from Chrome Web Store 2. Login to LinkedIn in your browser 3. Open Cookie Editor (click the extension icon) 4. Click "JSON" button in the Export As section 5. Copy the JSON data and paste it into the "LinkedIn Cookies" field ### Step 2: Choose Your Method #### Option A: Standard Method (Recommended) 1. Go to Apify Console and find your LinkedIn Comment Scraper Actor 2. Configure the input with your settings: json { "postUrls": ["https://www.linkedin.com/posts/example-post"], "maxCommentsPerPost": 50, "cookies": "[{\"name\":\"li_at\",\"value\":\"YOUR_COOKIE_VALUE\"}]" } 3. Click "Start" and wait for the scraper to finish 4. Download results as Excel, CSV, or JSON from the dataset #### Option B: Use the API (in-progress) Send a POST request to the /scrape endpoint: bash curl -X POST "https://your-actor.apify.actor/scrape" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -d '{ "postUrls": ["https://www.linkedin.com/posts/example-post"], "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 | | maxCommentsPerPost | Number | No | 10 | Max comments per post (1-1000) | | commentsPerRequest | Number | No | 10 | Comments per API request (1-10) | | sortOrder | String | No | "Most Relevant" | "Most Relevant" or "Most Recent" | | excludeAuthorComments | Boolean | No | false | Skip comments from post author | | cookies | String | ✅ Yes | - | LinkedIn session cookies (JSON format) | ## 📤 Response Format json { "status": "success", "timestamp": "2025-01-15T10:30:00Z", "results": { "posts_processed": 1, "total_comments": 25, "comments": [ { "comment_id": "urn:li:comment:123", "comment_text": "Great insights!", "commenter_name": "John Doe", "commenter_headline": "Software Engineer", "commenter_url": "https://linkedin.com/in/johndoe", "created_at": "2025-01-15T09:15:00Z", "is_reply": false, "post_url": "https://linkedin.com/posts/...", "scraped_at": "2025-01-15T10:30:00Z" } ] }, "pricing": { "comments_charged": 25, "posts_charged": 1, "total_cost_usd": 0.035 } } ## 💰 Pricing Pay-Per-Event pricing: - $0.001 per comment scraped (including replies) - $0.01 per post processed Example costs: - 50 comments from 2 posts = $0.07 - 100 comments from 5 posts = $0.15 ## ⚡ Performance Tips - Use 1-3 posts per request for optimal speed - Request 10-50 comments per post for best balance - Fresh cookies (update weekly) for best performance - Use "Most Relevant" sort for full pagination support ## 🛡️ Built-in Protection - Smart rate limiting prevents LinkedIn blocks - Automatic retries handle temporary failures - 4-minute timeout prevents hanging requests - Error handling with helpful suggestions ## 🔧 Troubleshooting "No comments found": Check if post has public comments and cookies are valid "Authentication failed": LinkedIn cookies may have expired - get fresh ones "Request timed out": Try reducing maxCommentsPerPost or number of posts ## 📞 Need Help? 1. Check that LinkedIn cookies are fresh (less than a week old) 2. Verify post URLs are correct and publicly accessible 3. Try with fewer comments first to test Happy scraping! 🎉

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Linkedin Comment Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
capable_cauldron
Pricing
Paid
Total Runs
671
Active Users
84
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support