Linkedin Comment Scraper avatar

Linkedin Comment Scraper

Pricing

Pay per event

Go to Apify Store
Linkedin Comment Scraper

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

Capable Cauldron

Maintained by Community

Actor stats

3

Bookmarked

143

Total users

9

Monthly active users

19 days ago

Last modified

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

  1. Install Cookie Editor: Get it from Chrome Web Store
  2. Log in to LinkedIn in your browser
  3. Open Cookie Editor (click the extension icon)
  4. Click the "Export" button and choose JSON
  5. Copy the JSON data and paste it into the "LinkedIn Cookies" field

Step 2: Configure and Run

  1. Go to Apify Console and find the LinkedIn Comment Scraper Actor
  2. Add your LinkedIn post URLs to the input
  3. Paste your cookies into the LinkedIn Cookies field
  4. Click "Start" and wait for the scraper to finish
  5. 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

ParameterTypeRequiredDefaultDescription
postUrlsArrayโœ… Yes-LinkedIn post URLs to scrape (max 100)
cookiesStringโœ… Yes-LinkedIn session cookies in JSON format
maxCommentsPerPostIntegerNo10Max comments per post, 1โ€“1000
commentsPerRequestIntegerNo10Comments fetched per API call, 1โ€“10
sortOrderStringNo"Most Relevant""Most Relevant" or "Most Recent"
excludeAuthorCommentsBooleanNofalseSkip comments from the post author
maxRetriesIntegerNo3Max retries for failed requests, 0โ€“10
requestDelayMinIntegerNo2Min delay between requests in seconds
requestDelayMaxIntegerNo5Max delay between requests in seconds
maxDatasetItemsIntegerNo10000Max items saved to dataset (cost control)
proxyConfigurationObjectNo-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:

ScenarioCost
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 commentsPerRequest to 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

ProblemSolution
"No comments found"Check that the post has public comments and your cookies are valid
"Cookie not valid" / auth errorsLinkedIn cookies have expired โ€” export fresh ones
Fewer comments than expectedSome comments may be filtered (author comments, replies) or the post may have fewer than requested
Run stops earlyCheck if maxDatasetItems limit was reached

๐Ÿ“ž Need Help?

  1. Make sure your LinkedIn cookies are fresh (less than a week old)
  2. Verify post URLs are correct LinkedIn post links
  3. Try with a small maxCommentsPerPost first to test your setup

Happy scraping! ๐ŸŽ‰