Linkedin Comment Scraper avatar
Linkedin Comment Scraper

Pricing

Pay per event

Go to Apify Store
Linkedin Comment Scraper

Linkedin Comment Scraper

Developed by

Capable Cauldron

Capable Cauldron

Maintained by Community

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

0.0 (0)

Pricing

Pay per event

0

22

22

Last modified

20 days ago

πŸš€ 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

  1. Go to Apify Console and find your LinkedIn Comment Scraper Actor
  2. Configure the input with your settings:
    {
    "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:

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

ParameterTypeRequiredDefaultDescription
postUrlsArrayβœ… Yes-LinkedIn post URLs to scrape
maxCommentsPerPostNumberNo10Max comments per post (1-1000)
commentsPerRequestNumberNo10Comments per API request (1-10)
sortOrderStringNo"Most Relevant""Most Relevant" or "Most Recent"
excludeAuthorCommentsBooleanNofalseSkip comments from post author
cookiesStringβœ… Yes-LinkedIn session cookies (JSON format)

πŸ“€ Response Format

{
"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! πŸŽ‰