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

19

Total users

5

Monthly active users

4 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.

BYOK (Bring Your Own Key) -- you provide your own API credentials.


Before You Start

This actor requires your own API credentials to fetch real data.

Where to get your key: JSON array of cookies exported from your browser. Use Cookie-Editor or EditThisCookie extension. Required if MFA/2FA is enabled on your LinkedIn account.

You can test with Demo Mode first (free, no key needed) to see the output format before committing.


Quick Start

Test with Demo Mode (free, no API key needed)

{
"demoMode": true,
"profileUrls": [
"https://linkedin.com/in/johndoe"
],
"companyUrls": [
"https://linkedin.com/company/microsoft"
],
"webhookHeaders": {}
}

Run with real data

{
"demoMode": false,
"scrapeType": "profile",
"profileUrls": [
"https://linkedin.com/in/johndoe"
],
"companyUrls": [
"https://linkedin.com/company/microsoft"
],
"cookies": "YOUR_API_KEY_HERE",
"cookieKvStoreName": "cookie-sessions",
"linkedinEmail": "YOUR_API_KEY_HERE",
"linkedinPassword": "YOUR_API_KEY_HERE",
"linkedinAccessToken": "YOUR_API_KEY_HERE",
"maxPosts": 20,
"includeComments": false,
"maxCommentsPerPost": 10,
"includeReactionsBreakdown": false,
"enableSentimentAnalysis": false,
"aiProvider": "none",
"aiApiKey": "YOUR_API_KEY_HERE",
"webhookPlatform": "custom",
"webhookHeaders": {}
}

Input Parameters

ParameterTypeDefaultRequiredDescription
scrapeTypestring"profile"NoType of LinkedIn page to scrape
profileUrlsarray-NoLinkedIn profile URLs to scrape (e.g., https://linkedin.com/in/username)
companyUrlsarray-NoLinkedIn company page URLs to scrape (e.g., https://linkedin.com/company/companyname)
cookiesstring-Yes*JSON array of cookies exported from your browser. Use Cookie-Editor or EditThisCookie extension. Required if MFA/2FA is enabled on your LinkedIn account.
cookieStorageKeystring-NoStorage key from Cookie Manager actor (e.g., 'linkedin-john'). Loads cookies automatically — no manual paste needed. Run the Cookie Manager actor first to capture cookies.
cookieKvStoreNamestring"cookie-sessions"NoName of the Key-Value Store where Cookie Manager saved cookies. Default: 'cookie-sessions'
linkedinEmailstring-Yes*Your LinkedIn email for automatic login. Only works if MFA/2FA is disabled.
linkedinPasswordstring-Yes*Your LinkedIn password for automatic login
linkedinAccessTokenstring-Yes*OAuth 2.0 access token from your LinkedIn Developer App. Create one at https://developer.linkedin.com - requires 'r_liteprofile' and 'r_basicprofile' scopes. Best for scraping your own profile.
maxPostsinteger20NoMaximum number of recent posts to scrape per profile
includeCommentsbooleanfalseNoAlso scrape top comments on each post (slower)
maxCommentsPerPostinteger10NoMaximum number of comments to scrape per post
includeReactionsBreakdownbooleanfalseNoGet breakdown by reaction type (like, celebrate, support, love, insightful, funny)
enableSentimentAnalysisbooleanfalseNoUse AI to analyze sentiment and tone of posts and comments
aiProviderstring"none"NoWhich AI provider to use for sentiment analysis
aiApiKeystring-Yes*API key for your chosen AI provider
aiModelstring-NoCustom model name (leave empty for default). Examples: gpt-4o, claude-3-5-sonnet-20241022, gemini-1.5-pro
proxyobject-NoProxy settings
demoModebooleantrueNoReturn mock data for testing without real scraping
webhookUrlstring-NoURL to POST results when scraping completes (Zapier, Make, n8n, custom endpoint)
webhookPlatformstring"custom"NoPlatform type for proper payload formatting
webhookHeadersobject-NoAdditional HTTP headers to send with webhook (e.g., {"Authorization": "Bearer token", "X-API-Key": "key"})

*Required when Demo Mode is off.


Pricing

This actor uses pay-per-event billing:

EventDescriptionPrice
Profile ScrapedEach LinkedIn profile scraped$0.08

Demo mode is free -- no charges for sample data.


Troubleshooting

"API key is required"

You have Demo Mode turned off but didn't provide an API key. Either:

  • Turn Demo Mode on to test with sample data
  • Add your API key in the input

"API error 403" or "Unauthorized"

Your API key is invalid, expired, or doesn't have access to this specific API endpoint. Double-check your key and account permissions.

"API error 429" or "Rate limit"

Too many requests. Wait a minute and try again, or reduce the number of items per run.

No results or empty dataset

Check the run log for error messages. Common causes:

  • Invalid input format (check the examples above)
  • API key without proper permissions
  • The target data doesn't exist or is too small to track

How do I test without an API key?

Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.


Built by John Rippy | Actor Arsenal