LinkedIn Hashtag Posts Scraper avatar

LinkedIn Hashtag Posts Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
LinkedIn Hashtag Posts Scraper

LinkedIn Hashtag Posts Scraper

Scrape posts tagged with any LinkedIn hashtag (e.g. #AI, #marketing). Returns author, content, engagement metrics. Cookie optional for public access, recommended for more results.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

19 hours ago

Last modified

Share

Scrape posts tagged with any LinkedIn hashtag (e.g. #AI, #marketing, #python). Returns post content, author information, and engagement metrics for each post.

Cookie is optional — public hashtag pages work without authentication, but providing a LinkedIn session cookie unlocks significantly more results and higher pagination limits.

Features

  • Scrape posts for one or more hashtags in a single run
  • Accepts hashtags in any format: #AI, AI, artificial-intelligence
  • Returns author name, headline, profile URL, post content, media type, and full engagement counts
  • Optional LinkedIn cookie for higher result volumes (Voyager API mode)
  • Automatic fallback to public HTML mode when no cookie is supplied
  • Handles rate limiting with automatic retries and exponential backoff
  • Proxy support via Apify proxy configuration

Input

FieldTypeRequiredDescription
hashtagsarrayYesList of hashtags to scrape (e.g. ["AI", "marketing"])
maxPostsPerHashtagintegerNoMax posts per hashtag (default: 50, max: 500)
cookiestringNoLinkedIn li_at cookie or full browser cookies JSON. Optional but recommended for more results.
proxyConfigurationobjectNoApify proxy configuration. Residential proxy recommended.

Hashtag Formats Accepted

The actor normalizes hashtag input — the following are all equivalent:

  • #AI
  • AI
  • #artificial-intelligence
  • artificial-intelligence

Two formats are supported:

Plain li_at value (copy from DevTools → Application → Cookies):

AQEDATVc5uMEM5s_AAABnro67c...

Full cookies JSON array (export from a browser extension like EditThisCookie):

[
{"name": "li_at", "value": "AQEDATVc5uMEM5s_...", "domain": ".linkedin.com", ...},
{"name": "JSESSIONID", "value": "ajax:67453...", "domain": ".linkedin.com", ...}
]

Output

Each item in the dataset represents one LinkedIn post:

FieldTypeDescription
postIdstringLinkedIn activity ID
postUrlstringDirect link to the post
authorNamestringFull name of the post author
authorProfileUrlstringAuthor's LinkedIn profile URL
authorHeadlinestringAuthor's LinkedIn headline
postedAtstringISO 8601 UTC timestamp of publication
contentstringFull post text
mediaTypestringMedia type: text, image, video, article, document, carousel, repost, poll, event
reactionsCountintegerTotal reactions count
commentsCountintegerTotal comments count
repostsCountintegerTotal reposts/shares count
hashtagstringNormalized hashtag that produced this result (e.g. ai)
scrapedAtstringISO 8601 UTC timestamp when scraped

Example Output

{
"postId": "7381299540293623808",
"postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7381299540293623808/",
"authorName": "Jane Doe",
"authorProfileUrl": "https://www.linkedin.com/in/janedoe",
"authorHeadline": "AI Product Manager at Acme Corp",
"postedAt": "2025-05-23T09:23:20+00:00",
"content": "Excited to share our latest research on large language models! #AI #MachineLearning",
"mediaType": "text",
"reactionsCount": 842,
"commentsCount": 67,
"repostsCount": 34,
"hashtag": "ai",
"scrapedAt": "2025-05-24T14:00:00.000000+00:00"
}
ModeCookieResults VolumeNotes
Voyager APIRequiredUp to 500 posts per hashtagUses authenticated LinkedIn API
Public HTMLNot neededLimited (typically 10-20 per hashtag)Parses embedded SSR JSON from public page

For best results, provide a valid LinkedIn cookie.

FAQ

Do I need to log in to LinkedIn? No — the actor works without a cookie by scraping the public hashtag page. However, results will be limited. For full scraping capability, provide your li_at cookie.

How do I get my LinkedIn cookie?

  1. Log in to LinkedIn in your browser
  2. Open DevTools (F12) → Application → Cookies → www.linkedin.com
  3. Copy the value of the li_at cookie

Will this get my account banned? The actor uses LinkedIn's official Voyager API with realistic request rates and delays. We recommend using residential proxies for higher volumes to reduce risk.

How many posts can I scrape per hashtag? With a cookie: up to 500. Without a cookie: typically 10-20 posts from the public page.

What hashtag formats does the actor accept? #AI, AI, #machine-learning, machine-learning — all are normalized automatically.

Why are some fields missing from some posts? The actor only includes fields that can be reliably populated. Posts with missing author headlines or media types will omit those optional fields.

Can I scrape multiple hashtags at once? Yes — provide a list in the hashtags field: ["AI", "marketing", "python"].

Explore the rest of the LinkedIn suite

Need a different LinkedIn surface? Pair this actor with any of the others in the LinkedIn Suite — all published under the same publisher and built to share the same cookie format and output conventions.

ActorWhat it scrapes
LinkedIn Comments ScraperAll comments + reply threads on a post
LinkedIn Company Employees ScraperEmployee list for any company (by URN)
LinkedIn Company Info ScraperCompany About page (size, HQ, industry, specialties)
LinkedIn Company Posts ScraperPosts published from a company page
LinkedIn Events ScraperEvents by keyword/URL with full event detail
LinkedIn Jobs ScraperJob listings via the public jobs-guest API
LinkedIn Jobs Scraper UltraSame as jobs-scraper + full detail enrichment
LinkedIn Learning Courses ScraperLinkedIn Learning course catalog by keyword
LinkedIn People Search ScraperPeople search with every LinkedIn facet (role, company, school, location, etc.)
LinkedIn Post Reactions ScraperReactors on a post (name, headline, reaction type)
LinkedIn Post ScraperFull post (text, media, engagement counts, author)
LinkedIn Post Search ScraperPosts matching a keyword (with date/author/network filters)
LinkedIn Profile Posts ScraperAll posts/reposts/articles for one profile
LinkedIn Profile ScraperPublic profile fields (name, headline, positions, education, skills)
LinkedIn Profile Scraper ProProfile fields + extras (recommendations, organizations, languages)
LinkedIn Profile Scraper Pro UltraPro + premium fields (contact info, followers list when allowed)
LinkedIn Profile Scraper UltraProfile + the full upstream dash-120 surface
LinkedIn Profile Search by NameSearch profiles by person name (great for matching CSVs of names)
LinkedIn Schools Alumni ScraperAlumni list for any LinkedIn school page
LinkedIn Top Content ScraperTrending / top-engagement posts by topic
LinkedIn User Activity ScraperReactions + comments + posts feed for one profile

All actors share the same cookie input format (plain li_at OR full cookies JSON array) and the same omit-empty output convention.