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

16

Total users

12

Monthly active users

4 days ago

Last modified

Share

LinkedIn Post Scraper

"Find Viral LinkedIn Content in Any Niche" by John Rippy | johnrippy.link

๐Ÿ† 2025 Zapier Automation Hero of the Year โ€” Project Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more โ†’


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.

โš ๏ธ Important: Demo Mode Behavior

Demo mode is OFF by default - the actor will attempt real scraping when you provide search parameters.

The actor auto-activates demo mode (returns sample data) when:

  • No search parameters are provided (empty hashtags, keywords, profile URL)
  • Only default/prefill hashtags are used AND no authentication is configured

To ensure real scraping:

  1. Provide at least one of: profileUrl, hashtags, or keywords
  2. Configure authentication (see Authentication Methods below)
  3. If using auto search type, residential proxies will be used automatically

Authentication Methods

LinkedIn requires authentication to access posts. Choose ONE of these methods:

If you have a LinkedIn Developer App with API access, this is the most reliable method - works from any IP without browser automation.

{
"linkedinAccessToken": "your-oauth2-access-token"
}

To get an access token:

  1. Create a LinkedIn App at LinkedIn Developer Portal
  2. Request the r_liteprofile and w_member_social scopes
  3. Complete OAuth 2.0 flow to get your access token
  4. Paste the token in the linkedinAccessToken field

Option 2: Session Cookies (Works with MFA)

If you have Multi-Factor Authentication (MFA/2FA) enabled, you must use cookies - there's no alternative browser login method.

Step 1: Install a cookie export extension:

Step 2: Log into LinkedIn in your browser

Step 3: Click the cookie extension icon, then:

  • Cookie-Editor: Click "Export" โ†’ "Export as JSON"
  • EditThisCookie: Click the export button (looks like โ†“)

Step 4: Paste the JSON array into the cookies field

The most important cookie is li_at - this is your LinkedIn session token.

Option 3: Email/Password (No MFA Only)

If your LinkedIn account does NOT have MFA enabled, you can use email/password:

{
"linkedinEmail": "your@email.com",
"linkedinPassword": "your-password"
}

Note: This will NOT work if you have 2FA/MFA enabled. Use cookies instead.

Why Authentication is Required

LinkedIn actively blocks unauthenticated scraping and uses rate limiting. Authentication is required because:

  • LinkedIn serves different content to logged-in vs logged-out users
  • Profile posts are often only visible when authenticated
  • LinkedIn blocks/throttles requests without valid session cookies
  • Anti-bot systems require authentic browser sessions

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
  • Voice Training Ready: Output formatted for AI voice analysis

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

Input

{
"searchType": "hashtag",
"hashtags": ["leadership", "marketing", "AI"],
"cookies": "[{\"name\":\"li_at\", ...}]",
"maxPostsPerSource": 50,
"minLikes": 100,
"minComments": 10,
"sortBy": "top",
"timeFilter": "past_week",
"includeAuthorInfo": true
}

Output

{
"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
}
],
"stats": {
"totalPosts": 150,
"avgLikes": 523,
"avgComments": 45,
"topAuthors": ["John Doe", "Jane Smith"],
"topHashtags": ["leadership", "growth", "mindset"]
}
}

Pricing

This actor uses pay-per-event pricing:

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 Year โ€” Project Phoenix: A 95-step AI sales pipeline cutting development time by 50%. Read more โ†’


Keywords

linkedin post scraper, linkedin content scraper, linkedin data extraction, linkedin api, social media scraper, linkedin posts