Linkedin Profile Scraper avatar
Linkedin Profile Scraper

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Linkedin Profile Scraper

Linkedin Profile Scraper

Scrape LinkedIn profiles and their recent posts for personal branding analysis. Perfect for building a voice profile of your LinkedIn presence or analyzing top performers in your niche.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

John Rippy

John Rippy

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

10 hours ago

Last modified

Share

LinkedIn Profile Scraper - Personal Branding & Voice Analysis

Scrape LinkedIn profiles and their recent posts for personal branding analysis. Get follower counts, engagement metrics, and post performance data. Perfect for voice training and content analysis. Features: - Profile data extraction (name, headline, about, experience) - Follower and connection counts - Recent posts with engagement metrics - Content performance analysis - Voice pattern detection - Industry and expertise identification Ideal for: - Personal branding analysis - Voice training data collection - Competitor research - Content strategy planning - Influencer identification. Built by John Rippy (https://www.linkedin.com/in/johnrippy/ | https://johnrippy.link/).

Features

  • Profile Data: Followers, connections, headline, about section, experience
  • Post Scraping: Recent posts with full text, engagement metrics
  • Engagement Metrics: Likes, comments, reposts per post
  • Comments Scraping: Get actual comment text, authors, and engagement on posts
  • 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
  • Content Analysis Ready: Output formatted for AI voice analysis

AI Sentiment Analysis

Enable AI-powered sentiment analysis to understand the tone and emotional appeal of a profile's content. Supports multiple 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": "anthropic",
"aiApiKey": "sk-ant-..."
}

Quick Start

Try it first (Free - Demo Mode)

{
"demoMode": true
}

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

Real scraping (Requires LinkedIn cookies)

{
"profileUrls": ["https://www.linkedin.com/in/johnrippy/"],
"cookies": "[paste your exported cookies here]",
"maxPosts": 10,
"demoMode": false
}

Note: LinkedIn requires authentication. See "Getting LinkedIn Cookies" below for setup 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

{
"profileUrls": ["https://linkedin.com/in/username"],
"cookies": "[{\"name\":\"li_at\", ...}]",
"maxPosts": 20,
"includeComments": true,
"maxCommentsPerPost": 10,
"includeReactionsBreakdown": true,
"enableSentimentAnalysis": true,
"aiProvider": "openai",
"aiApiKey": "sk-your-api-key"
}

Comments & Reactions Options

ParameterTypeDefaultDescription
includeCommentsbooleanfalseScrape top comments on each post
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)

Getting LinkedIn Cookies (Required)

If you have Multi-Factor Authentication (MFA/2FA) enabled on your LinkedIn account, you must use cookies - there's no alternative 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.

Output Format

{
"profile": {
"name": "John Doe",
"headline": "CEO at Company",
"followers": 15000,
"connections": 500,
"about": "...",
"overallSentiment": {
"score": 0.75,
"label": "positive",
"confidence": 0.88,
"summary": "Optimistic, motivational tone focused on leadership and growth"
}
},
"posts": [
{
"id": "123",
"text": "Post content...",
"likes": 150,
"comments": 23,
"reposts": 5,
"postedAt": "2025-12-15T10:00:00Z",
"reactionsBreakdown": {
"total": 150,
"like": 120,
"celebrate": 15,
"support": 8,
"love": 5,
"insightful": 2
},
"commentsList": [
{
"author": "Jane Smith",
"authorHeadline": "VP Marketing",
"text": "Great insights!",
"likes": 12,
"sentiment": {
"score": 0.85,
"label": "positive",
"tone": "appreciative"
}
}
],
"sentiment": {
"score": 0.72,
"label": "positive",
"confidence": 0.90,
"tone": "inspirational"
}
}
],
"stats": {
"avgLikes": 145,
"avgComments": 18,
"postingFrequency": "3x per week"
}
}

Common Problems & Solutions

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

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

"Invalid cookies" or "Session expired" error

Cause: Your LinkedIn session has expired or cookies were copied incorrectly. Fix:

  1. Log into LinkedIn again in your browser
  2. Re-export cookies using Cookie-Editor
  3. Make sure you copy the ENTIRE JSON array (starts with [ and ends with ])

"Profile not found" or empty results

Cause: The profile URL is incorrect, the profile is private, or the account is restricted. Fix:

  • Check the URL format: https://www.linkedin.com/in/username/
  • Make sure the profile is publicly visible
  • Some profiles restrict data visibility - try a different profile

"Rate limited" or scraping stops

Cause: LinkedIn has anti-scraping measures that detect unusual activity. Fix:

  • Reduce maxPosts to 10-20
  • Scrape fewer profiles per run (1-3)
  • Wait 30-60 minutes between runs
  • Use residential proxies if available

Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
apify-actor-startBase cost per run$0.10
profile_scrapedPer profile scraped$0.10
post_scrapedPer post scraped$0.01

Example costs:

  • 1 profile with 10 posts: $0.10 + $0.10 + (10 × $0.01) = $0.30
  • 5 profiles with 20 posts each: $0.10 + (5 × $0.10) + (100 × $0.01) = $1.60

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. Personal Branding: Analyze your own LinkedIn content performance
  2. Competitor Research: Study how top performers in your niche write
  3. Voice Training: Collect posts to train AI on your writing style
  4. Content Strategy: Identify what posts perform best

Built by John Rippy | Actor Arsenal