How to Scrape LinkedIn Post Activity of Leads — Step by Step
📌 Goal:
You have a lead’s LinkedIn URL and want to automatically retrieve:
Their most recent posts
What they’ve liked or commented on
Topics and hashtags they interact with
…and use that data to enrich your CRM or personalize outreach.
⚙️ What You Need:
✅ A LinkedIn profile URL
✅ An Apify account
✅ An actor that scrapes activity (not just profile)
✅ A Make.com or Zapier account (optional, for automation)
⚠️ Your own LinkedIn session cookie to use with Apify
🧪 Step 1: Get the LinkedIn Profile Activity Scraper
Log into Apify
Go to: Apify Store
Search for:
linkedin-profile-scraper
→ Gets headline, role, company infoOR use a custom actor for activity like:
👉linkedin-user-activity
(limited use, or you can fork/customize)
Click “Try Actor” to test it manually
⚠️ Step 2: Add Your LinkedIn Session Cookie
LinkedIn requires you to be logged in to view someone’s activity.
You’ll need to:
Log into LinkedIn (desktop)
Open Developer Tools > Application > Cookies
Copy your
li_at
cookie valueIn Apify actor settings, paste the cookie under “LinkedIn session” field
🔐 This is safe as long as the session is yours and not reused/shared.
🟢 Step 3: Run the Actor on a LinkedIn URL
Paste your target’s profile link into the input (e.g.
https://linkedin.com/in/john-smith
)Run the actor
✅ The output will contain:
Recent public posts
Posts liked or commented
Time/date
Content snippets
Links to post
Topics (hashtags, mentions)
🔄 Step 4 (Optional): Automate with Make.com
If you want to automate this:
In Make.com, create a new scenario
Trigger: “New Lead Added” or “LinkedIn URL Updated” in CRM
Use an HTTP module to call Apify API:
POST to:
https://api.apify.com/v2/actor-tasks/[TASK_ID]/run-sync?token=YOUR_TOKEN
Include LinkedIn URL in request body
Parse the returned activity data
Store it into your CRM:
In a “Notes” field
As tags (e.g. “likes: #automation, #ai”)
In a custom “Recent Activity” field
🧠 Step 5: Use the Data
Here’s how you can act on it:
Auto-tag leads by interests (e.g.
#crm
,#ai
,#growth
)Personalize outreach:
“I saw you engaged with a post about automating onboarding — we just solved that for a client.”Trigger alerts to your sales team when a lead posts about a topic you solve
🔐 Important Notes
You’re scraping public activity only — anything you could manually see while logged in
You can run this for multiple leads in a batch (set of URLs)
This works best for active profiles (founders, execs, marketers, consultants)
🧩 Want a Template or Actor Clone?
I can:
Help you clone or customize an Apify actor that fits this
Create a ready-to-use Make.com automation flow
Build a JSON formatter that simplifies what to save into CRM
Just tell me:
Your CRM (e.g. HubSpot, Pipedrive, Zoho)
What field(s) you'd like to enrich
How many profiles per day you expect to run
And I’ll build the exact workflow for you.