AI Linkedin Post Scraper avatar

AI Linkedin Post Scraper

Pricing

from $0.01 / 1,000 results

Go to Apify Store
AI Linkedin Post Scraper

AI Linkedin Post Scraper

Scrape viral/trending LinkedIn posts by hashtag or keyword search. Perfect for finding content inspiration and building a library of top-performing posts in your niche. Get top posts from any LinkedIn hashtag. Find posts matching specific keywords. Output formatted for AI voice analysis

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

John Rippy

John Rippy

Maintained by Community

Actor stats

0

Bookmarked

34

Total users

22

Monthly active users

2 days ago

Last modified

Share

LinkedIn Post Scraper - Viral Content & Trending Topics

Scrape viral and trending LinkedIn posts by hashtag or keyword. Find top-performing content for inspiration and voice training. Features: - Search posts by hashtag or keyword - Filter by engagement metrics - Get full post content and reactions - Analyze content patterns - Identify viral hooks and formats - Track trending topics Data Collected: - Post text and media - Reaction counts (likes, comments, shares) - Author profile info - Post date and time - Hashtags used - Content format (text, image, video, carousel) Ideal for: - Content inspiration - Voice training data - Trend analysis - Competitive research - Content strategy. Built by John Rippy (https://www.linkedin.com/in/johnrippy/ | https://johnrippy.link/).

Features

  • Hashtag Scraping: Get top posts from any LinkedIn hashtag
  • Keyword Search: Find posts matching specific keywords
  • Engagement Filtering: Only get posts above your engagement thresholds
  • Author Info: Optionally includes author's followers and headline
  • Comments Scraping: Get actual comment text, authors, and engagement
  • Reactions Breakdown: Detailed breakdown by reaction type (like, celebrate, support, love, insightful, funny)
  • AI Sentiment Analysis: Analyze post and comment sentiment with your choice of AI provider
  • Voice Training Ready: Output formatted for AI voice analysis

AI Sentiment Analysis + Emotional Intelligence (Foreplay-Inspired)

Enable AI-powered sentiment analysis to understand the tone, emotional appeal, and persuasion techniques of posts and comments. Now includes Foreplay-inspired emotional intelligence for deeper creative analysis:

What's Analyzed

FieldDescriptionExample Values
scoreSentiment score (-1 to 1)0.72
labelClassificationpositive, neutral, negative
tonePrimary toneprofessional, inspirational, humorous
emotionalTriggersEmotional hooks usedfear, urgency, curiosity, fomo, aspiration
persuasionTechniquesPersuasion methodsscarcity, authority, storytelling, social_proof
targetEmotionsEmotions content aims to evokeexcited, inspired, motivated, empowered

Supported Providers

ProviderModelBest For
OpenAIGPT-4o-miniFast, affordable analysis
AnthropicClaude HaikuNuanced understanding
GoogleGemini FlashCost-effective at scale
MistralMistral SmallEuropean data residency
CohereCommand-REnterprise deployments
{
"enableSentimentAnalysis": true,
"aiProvider": "openai",
"aiApiKey": "sk-..."
}

Quick Start

Try it first (Free - Demo Mode)

{
"demoMode": true
}

This returns sample viral posts so you can see the output format without any charges.

Scrape by Hashtag (Requires LinkedIn cookies)

{
"searchType": "hashtag",
"hashtags": ["marketing", "leadership"],
"cookies": "[paste your exported cookies here]",
"maxPostsPerSource": 20,
"minLikes": 50,
"demoMode": false
}
{
"searchType": "keyword",
"keywords": ["AI marketing trends"],
"cookies": "[paste your exported cookies here]",
"maxPostsPerSource": 20,
"demoMode": false
}

Note: LinkedIn requires authentication. You'll need to export cookies from your browser - see the LinkedIn Profile Scraper documentation for cookie export instructions.

Demo Mode

Set demoMode: true to test with sample data (no charges). When you're ready for real results, set demoMode: false or omit it.

{
"demoMode": true,
...
}

Input Parameters

{
"searchType": "hashtag",
"hashtags": ["leadership", "marketing", "AI"],
"cookies": "[{\"name\":\"li_at\", ...}]",
"maxPostsPerSource": 50,
"minLikes": 100,
"minComments": 10,
"sortBy": "top",
"timeFilter": "past_week",
"includeAuthorInfo": true,
"includeCommentText": true,
"maxCommentsPerPost": 10,
"includeReactionsBreakdown": true,
"enableSentimentAnalysis": true,
"aiProvider": "openai",
"aiApiKey": "sk-your-api-key"
}

Comments & Reactions Options

ParameterTypeDefaultDescription
includeCommentTextbooleanfalseScrape actual comment text and authors
maxCommentsPerPostinteger10Max comments to scrape per post (1-50)
includeReactionsBreakdownbooleanfalseGet breakdown by reaction type

AI Sentiment Options

ParameterTypeDefaultDescription
enableSentimentAnalysisbooleanfalseEnable AI sentiment analysis
aiProviderstring"none"AI provider: openai, anthropic, google, mistral, cohere
aiApiKeystring-Your AI provider API key
aiModelstring-Custom model override (optional)

Output Format

{
"posts": [
{
"id": "123",
"url": "https://linkedin.com/feed/update/...",
"text": "Post content...",
"likes": 1523,
"comments": 234,
"reposts": 89,
"postedAt": "2025-12-15T10:00:00Z",
"hashtags": ["leadership", "growth"],
"author": {
"name": "John Doe",
"headline": "CEO at Company",
"profileUrl": "https://linkedin.com/in/johndoe",
"followers": 50000
},
"hasImage": true,
"hasVideo": false,
"hasCarousel": false,
"hasDocument": true,
"reactionsBreakdown": {
"total": 1523,
"like": 1200,
"celebrate": 150,
"support": 80,
"love": 50,
"insightful": 35,
"funny": 8
},
"commentsList": [
{
"author": "Jane Smith",
"authorHeadline": "VP Marketing",
"text": "Great insights!",
"likes": 45,
"sentiment": {
"score": 0.85,
"label": "positive",
"confidence": 0.92,
"tone": "appreciative"
}
}
],
"sentiment": {
"score": 0.72,
"label": "positive",
"confidence": 0.88,
"summary": "Inspirational leadership advice with urgency to take action",
"tone": "motivational",
"emotionalTriggers": ["aspiration", "urgency", "social_proof"],
"persuasionTechniques": ["storytelling", "authority", "future_pacing"],
"targetEmotions": ["inspired", "motivated", "empowered"]
},
"overallCommentSentiment": {
"score": 0.78,
"label": "positive",
"confidence": 0.85
}
}
],
"stats": {
"totalPosts": 150,
"avgLikes": 523,
"avgComments": 45,
"topAuthors": ["John Doe", "Jane Smith"],
"topHashtags": ["leadership", "growth", "mindset"]
}
}

Common Problems & Solutions

"I'm getting demo data instead of real posts"

Cause: demoMode is set to true or cookies are missing/expired. Fix: Set demoMode: false AND paste valid LinkedIn cookies.

"No posts found" for my hashtag

Cause: The hashtag might be spelled wrong, have low volume, or cookies are invalid. Fix:

  • Check hashtag spelling (without the #)
  • Try a more popular hashtag like "marketing" or "leadership"
  • Re-export your LinkedIn cookies

Cause: LinkedIn sessions expire periodically. Fix: Log into LinkedIn again and re-export your cookies.

Posts seem outdated or limited

Cause: LinkedIn limits how far back you can search. Fix:

  • Use timeFilter: "past_week" for recent posts
  • Lower maxPostsPerSource (LinkedIn may limit older results)
  • Some hashtags have less content than others

Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
apify-actor-startBase cost per run$0.10
post_scrapedPer post scraped$0.02
author_scrapedPer author profile (if includeAuthorInfo)$0.01

Example costs:

  • 50 posts basic: $0.10 + (50 × $0.02) = $1.10
  • 50 posts with author info: $0.10 + (50 × $0.02) + (50 × $0.01) = $1.60
  • 100 posts with author info: $0.10 + (100 × $0.02) + (100 × $0.01) = $3.10

Built by John Rippy | johnrippy.link

🏆 2025 Zapier Automation Hero of the YearProject Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more →


Use Cases

  1. Content Inspiration: Find what's working in your niche
  2. Trend Research: Track trending topics and formats
  3. Voice Training: Collect diverse writing styles for AI training
  4. Competitor Analysis: See what content performs best

Built by John Rippy | Actor Arsenal