Practical Tools

apify-linkedin-post-scraper

Pay per result ยท No subscription

LinkedIn Post Scraper - Apify Actor

A robust Apify Actor that extracts structured data from public LinkedIn posts, including author, text, images, videos, date, reactions, and comments.

Features

  • ๐Ÿ‘ค Author Extraction - Captures the post author's name
  • ๐Ÿ“ Text Extraction - Extracts the main post content
  • ๐Ÿ–ผ๏ธ Image Extraction - Collects all image URLs from the post
  • ๐ŸŽฅ Video Support - Extracts video and embedded video URLs
  • ๐Ÿ“… Date Extraction - Gets the post's published date
  • ๐Ÿ‘ Reactions - Gathers reaction counts (like, celebrate, etc.)
  • ๐Ÿ’ฌ Comments - Extracts all visible comments with author, text, and date
  • ๐Ÿš€ High Performance - Concurrent processing with configurable limits
  • ๐ŸŒ Proxy Support - Built-in Apify Proxy integration

Input

The Actor accepts the following input parameters:

{
  "urls": [
    "https://www.linkedin.com/posts/example_post_id"
  ],
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}

Parameters

Parameter Type Required Description
urls Array โœ… List of LinkedIn post URLs to scrape
maxConcurrency Int โŒ Max concurrent requests (default: 10)
proxyConfiguration Object โŒ Proxy configuration

Output

The Actor outputs a simple JSON object for each post:

{
  "author": "Jane Doe",
  "text": "Excited to announce our new product launch!",
  "images": [
    "https://media.licdn.com/dms/image/..."
  ],
  "videos": [
    "https://www.youtube.com/embed/..."
  ],
  "date": "2d",
  "reactions": {
    "like": 12,
    "celebrate": 3,
    "support": 1
  },
  "comments": [
    {
      "author": "John Smith",
      "text": "Congratulations!",
      "date": "1d"
    }
  ]
}

Notes

  • Only public LinkedIn posts are supported (no authentication required).
  • Output fields may be empty if not present in the post.
  • Selectors may require updates if LinkedIn changes their UI.
  • Scraping LinkedIn may be subject to their terms of service.

Usage

  1. Deploy this Actor on the Apify platform or run locally.
  2. Provide one or more public LinkedIn post URLs in the input.
  3. Retrieve structured post data as output.