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

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

15

Total users

4

Monthly active users

5 days 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.

Instead of manually exporting cookies, use the Cookie Manager actor to capture and store cookies automatically.

Run the Cookie Manager actor with:

  • Mode: capture
  • Platform: linkedin
  • Storage Key: linkedin-yourname

Step 2: Use the stored cookies

In this actor, just set cookieStorageKey to the same key:

{
"profileUrls": ["https://www.linkedin.com/in/someone/"],
"cookieStorageKey": "linkedin-yourname",
"demoMode": false
}

No manual cookie paste needed. Schedule Cookie Manager to run every 3 days to keep cookies fresh.

How it works

  1. Cookie Manager logs into LinkedIn and saves session cookies to a named Key-Value Store (cookie-sessions by default)
  2. This actor reads cookies from that store using your cookieStorageKey
  3. If the Cookie Manager key has no cookies or the store doesn't exist, the actor falls back to any manually provided cookies or cookie-free modes

Custom store name

If you changed the Key-Value Store name in Cookie Manager, pass it here too:

{
"profileUrls": ["https://www.linkedin.com/in/someone/"],
"cookieStorageKey": "linkedin-yourname",
"cookieKvStoreName": "my-custom-store",
"demoMode": false
}

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 pricing:

EventDescriptionPrice
profile_scrapedPer profile scraped$0.08

Example costs:

  • 1 profile: 1 x $0.08 = $0.08
  • 5 profiles: 5 x $0.08 = $0.40
  • 20 profiles: 20 x $0.08 = $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