# Linkedin Profile Posts Scraper (`alpha-scraper/linkedin-profile-posts-scraper`) Actor

LinkedIn Profile Posts Scraper extracts public posts from any LinkedIn profile, company or showcase page. Get post text, date, URL, author, reactions, comments and media as JSON, CSV or Excel. No login needed. Great for content research, competitor tracking and lead generation.

- **URL**: https://apify.com/alpha-scraper/linkedin-profile-posts-scraper.md
- **Developed by:** [Alpha Scraper](https://apify.com/alpha-scraper) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### LinkedIn Profile Posts Scraper

LinkedIn Profile Posts Scraper collects the public posts of a LinkedIn profile, company page or showcase page and returns them as structured data. Enter one target, choose how many posts you want, and the Actor returns post text, publication date, post URL, author details, reactions, comments and attached media for each post.

You do not need to provide a LinkedIn account, cookies or login. LinkedIn Profile Posts Scraper is made for marketers, analysts, recruiters and researchers who want to study what people and brands publish without copying posts by hand.

Results export as JSON, CSV or Excel straight from Apify, and every post comes with stable LinkedIn identifiers that make joining and deduplication simple.

> **📌 LinkedIn Profile Posts Scraper at a glance**
>
> - **Platform:** LinkedIn public profile, company and showcase pages
> - **Input:** one LinkedIn URL or username, plus a post limit
> - **Output:** one dataset item per LinkedIn post
> - **Login required:** no

### 🔹 LinkedIn Profile Posts Scraper – Key Features

LinkedIn Profile Posts Scraper focuses on the post data that content and competitor research needs:

- **Three kinds of targets** – a personal profile, a company page or a showcase page.
- **Username shortcut** – for personal profiles you can enter just the LinkedIn username, such as `justinwelsh`.
- **Post text and dates** – the full post text, an absolute date and the relative time shown on LinkedIn.
- **Engagement counts** – total reactions and comment counts for each LinkedIn post.
- **Author details** – name, headline, username, profile URL and profile picture of the author.
- **Media information** – whether the post is text, image or video, plus the media link.
- **LinkedIn identifiers** – activity, share and UGC post URNs for joining data later.
- **Post limit** – set the maximum number of LinkedIn posts, from 1 upward, to control run time and cost.

### 📊 LinkedIn Profile Posts Scraper – What Data You Can Extract

Each dataset item describes one LinkedIn post. Fields that LinkedIn does not show for a post are returned empty or as `null`.

| Group | Fields |
|---|---|
| Post | `text`, `url`, `post_type` |
| Date | `posted_at.date`, `posted_at.relative`, `posted_at.timestamp` |
| Identifiers | `full_urn`, `urn.activity_urn`, `urn.share_urn`, `urn.ugcPost_urn` |
| Author | `author.first_name`, `author.last_name`, `author.headline`, `author.username`, `author.profile_url`, `author.profile_picture` |
| Engagement | `stats.total_reactions`, `stats.like`, `stats.comments` |
| Media | `media.type`, `media.url`, `media.images` |

LinkedIn Profile Posts Scraper also provides two ready-made table views in the Output tab: **Posts overview** for text, date, author and engagement, and **Identifiers and media** for URNs and media links. The views flatten nested fields such as `author.username` into columns, while the raw JSON keeps the nested structure.

> **🌟 Why use LinkedIn Profile Posts Scraper?**
>
> - **Public data only** – nothing to log in to and no cookies to refresh.
> - **One run, one clean table** – every post uses the same field names.
> - **Profiles and brands** – the same Actor handles people, companies and showcase pages on LinkedIn.
> - **Cost control** – you pay per saved post, and the limit sets your ceiling.

### 🚀 How to Use LinkedIn Profile Posts Scraper

You can run LinkedIn Profile Posts Scraper from the Apify Console in a few minutes:

- **Step 1:** Open the Actor and go to the **Input** tab.
- **Step 2:** Paste a LinkedIn profile, company or showcase URL into **LinkedIn URL or username**.
- **Step 3:** Set **Maximum posts**. The default is 20.
- **Step 4:** Click **Start**. LinkedIn Profile Posts Scraper finds the posts and saves each one to the dataset.
- **Step 5:** Open the **Output** tab to preview the table and download your LinkedIn posts in the format you need.

> **💡 Tip:** Paste the plain URL without tracking parameters such as `?utm_source`.

### 🎯 LinkedIn Profile Posts Scraper – Use Cases

LinkedIn Profile Posts Scraper helps whenever you need to see what a LinkedIn page publishes:

- **Content research** – use LinkedIn Profile Posts Scraper to study which topics and formats a creator posts on LinkedIn.
- **Competitor tracking** – let LinkedIn Profile Posts Scraper follow what rival companies announce on their LinkedIn pages.
- **Engagement analysis** – compare reactions and comments across a LinkedIn author's recent posts.
- **Employer branding** – review how a company presents culture, jobs and news on LinkedIn.
- **Social listening** – collect public LinkedIn posts from industry voices for trend reports.
- **Lead generation** – spot decision makers on LinkedIn who post about a topic you sell into.
- **Content archives** – keep a record of LinkedIn posts with text, dates and media links.

### 🧩 How LinkedIn Profile Posts Scraper Works

LinkedIn Profile Posts Scraper accepts a single target per run. For a personal LinkedIn profile it looks at the profile's public activity pages and the profile page itself to find links to posts. For a company or showcase page it reads the page directly.

The Actor removes duplicate links, keeps up to your limit and then opens each post to read its text, date, identifiers, reactions, comments and media. If a post page cannot be downloaded, that post is skipped and the run continues.

Only posts that LinkedIn includes in the page it returns to the Actor can be collected. This means LinkedIn Profile Posts Scraper may return fewer posts than your limit, especially on pages that show only a handful of public posts.

### 🔎 How to Scrape LinkedIn Posts From a Company or Profile

To scrape the latest posts of a LinkedIn page, paste its URL and set a limit as shown below.

```json
{
  "url": "https://www.linkedin.com/company/microsoft",
  "limit": 20
}
```

For a personal profile you can use the full URL or only the username, for example `justinwelsh`. Company and showcase pages need the full URL, because a bare name is always treated as a personal profile.

```json
{
  "url": "justinwelsh",
  "limit": 10
}
```

This second example shows the username form. LinkedIn Profile Posts Scraper turns the username into the matching LinkedIn profile address before it searches for posts.

### ⚙️ LinkedIn Profile Posts Scraper – Input

LinkedIn Profile Posts Scraper has two input fields, available in the Console form and through the Apify API.

| Field | Type | Default | What it does |
|---|---|---|---|
| `url` | string | prefilled showcase page | The target: a profile URL, a company URL, a showcase URL or, for personal profiles only, a username. One target per run. |
| `limit` | integer | 20 | Maximum number of posts to collect. Minimum 1. Lower values make runs faster and cheaper. |

The Console checks the format of `url` and asks for exactly one target. Lists of several URLs and addresses without `https://` are not supported. If the field is empty, the run ends with an error in the log.

> **⚠️ Good to know:** LinkedIn decides how many posts appear on a public page, so the real number of results can be lower than `limit`. To cover several pages, start one run for each page.

### 📦 LinkedIn Profile Posts Scraper – Output

LinkedIn Profile Posts Scraper saves one record per post to the default dataset, and posts are written as soon as each one is processed. Here is a shortened example:

```json
[
  {
    "urn": {
      "activity_urn": "7518745995929698304",
      "share_urn": "7518745993543188480",
      "ugcPost_urn": null
    },
    "full_urn": "urn:li:activity:7518745995929698304",
    "posted_at": {
      "date": "2026-10-21 18:52:15",
      "relative": "",
      "timestamp": 1792608735394
    },
    "text": "",
    "url": "https://www.linkedin.com/posts/linkedin-news_what-does-it-take-to-scale-your-startup-from-activity-7518745995929698304-PcOE",
    "post_type": "regular",
    "author": {
      "first_name": "LinkedIn News",
      "last_name": null,
      "headline": "LinkedIn News | 19,444,077 followers on LinkedIn. LinkedIn News is powered by a global team of editors and creator managers who are creating, curating and cultivating the news and insights professionals need to know now. Follow this page to discover expert perspectives and emerging ideas from the creators, leaders, and professionals driving today&#39;s most important conversations.\n\nHere are our other LinkedIn News pages around the globe:\n\n🇦🇺 Australia: lnkd.in/linkedinnewsaus \n🇧🇷 Brazil: lnkd.in/linkedinnoticias\n🇪🇺 Europe: https://lnkd.in/e8W_QcW\n🇫🇷 France: lnkd.in/linkedinactualites\n🇩🇪 Germany: lnkd.in/linkedinnewsdach\n🇮🇳 India: lnkd.in/linkedinnewsindia\n🇮🇹 Italy: lnkd.in/linkedinnotizie\n🌎 Latin America: ​​https://www.linkedin.com/showcase/linkedin-noticias-america-latina/\n🌏 Asia: https://lnkd.in/exFF2Q5\n🇳🇱 Netherlands: lnkd.in/linkedinnieuws \n🇪🇸 Spain: https://lnkd.in/eCGcFh4\n🇬🇧 United Kingdom: lnkd.in/linkedinnewsuk",
      "username": "linkedin-news",
      "profile_url": "https://www.linkedin.com/showcase/linkedin-news/",
      "profile_picture": "https://media.licdn.com/dms/image/v2/D4D0BAQFrZUpHW0-kqg/company-logo_200_200/B4DZhch1nFGgAU-/0/1753899031312/linkedin_news_logo?e=2147483647&v=beta&t=quA1gUL0Nh_1ylKqWocDVtjVCd9MRBHU0ab5uB5Jb7M"
    },
    "stats": {
      "total_reactions": 37,
      "like": 37,
      "support": 0,
      "love": 0,
      "insight": 0,
      "celebrate": 0,
      "funny": 0,
      "comments": 13,
      "reposts": 0
    },
    "media": {
      "type": "image",
      "url": "https://media.licdn.com/dms/image/v2/D4E22AQGTJp8BPO92hA/feedshare-shrink_160/B4EaFfzo.dJQAk-/0/1792608735394?e=1794441600&v=beta&t=UEOcA3HsPUdNu4EieZx4kahPnZwJDvqty6IqQQJrkIg",
      "images": [
        {
          "url": "https://media.licdn.com/dms/image/v2/D4E22AQGTJp8BPO92hA/feedshare-shrink_160/B4EaFfzo.dJQAk-/0/1792608735394?e=1794441600&v=beta&t=UEOcA3HsPUdNu4EieZx4kahPnZwJDvqty6IqQQJrkIg",
          "width": 1080,
          "height": 1350
        }
      ]
    }
  }
]
```

The `media.type` value is `text`, `image` or `video`. For videos, `media.url` holds the video link. An edited post shows "Edited" in `posted_at.relative`.

> **📝 Field notes**
>
> - `stats.total_reactions` and `stats.like` carry the same number. The reaction types `support`, `love`, `insight`, `celebrate` and `funny`, and `reposts`, are always `0` because they are not collected.
> - `post_type` is always `regular`.
> - `media.images` width and height are fixed default values, not measured dimensions.
> - `posted_at.date` can be `null` when LinkedIn gives no exact timestamp.

### 💰 LinkedIn Profile Posts Scraper – Pricing

LinkedIn Profile Posts Scraper is billed per result, so each post saved to the dataset counts toward your cost. The **Maximum posts** setting is therefore your main cost control.

See the Pricing tab on this Actor's page for the current rate. If you set a maximum cost per run in Apify, LinkedIn Profile Posts Scraper stops when that cap is reached and keeps the posts it has already saved.

### ✅ Tips and Best Practices for LinkedIn Profile Posts Scraper

> **Get cleaner results**
>
> - Start with a small `limit` to see how many posts LinkedIn exposes for your target.
> - Use the full URL for company and showcase pages.
> - Keep the URL free of tracking parameters.
> - Use `full_urn` or `url` as a unique key when you merge several runs.
> - Schedule LinkedIn Profile Posts Scraper in Apify to track new posts every week.

Public LinkedIn pages differ a lot. A busy company page may expose more posts than a personal profile, so check a test run before you plan a large content study.

### ❓ Frequently Asked Questions

#### 🤔 What is LinkedIn Profile Posts Scraper?

LinkedIn Profile Posts Scraper is an Apify Actor that extracts public posts from a LinkedIn profile, company page or showcase page and returns them as structured records.

#### 👥 Who uses LinkedIn Profile Posts Scraper?

Marketers, social media managers, analysts, recruiters, researchers and developers who need LinkedIn post data in a structured format.

#### 🔐 Can I use LinkedIn Profile Posts Scraper without logging in?

Yes. You do not provide any LinkedIn account, cookies or password. The Actor collects only public content.

#### 🏢 Can I scrape posts from a LinkedIn company page?

Yes. Use the full company page URL. Showcase pages work the same way.

#### 🔗 How do I find the right LinkedIn URL?

Open the page on LinkedIn and copy the address from your browser. Personal profiles contain `/in/`, company pages contain `/company/` and showcase pages contain `/showcase/`.

#### 🔤 Can I enter just a username?

Yes, for personal profiles. A bare name is always treated as a personal profile, so use the full URL for companies and showcase pages.

#### 🔢 How many posts can LinkedIn Profile Posts Scraper collect?

You choose the limit, and the default is 20. The real number depends on how many posts LinkedIn includes in the public page, so you can receive fewer.

#### 📃 Can LinkedIn Profile Posts Scraper scrape several LinkedIn pages in one run?

No. Each run takes one target. Start one run per LinkedIn page, or schedule several runs in Apify.

#### 📚 Can LinkedIn Profile Posts Scraper collect a full post history?

Not necessarily. It collects the posts that LinkedIn includes in the public page, which is often a recent selection rather than a complete archive. Use the **Maximum posts** setting to ask for more, and expect LinkedIn to decide how many it returns.

#### 🚧 What happens if LinkedIn shows a login wall?

For personal profiles, LinkedIn Profile Posts Scraper tries several public pages in turn and skips any page that asks for a login. If no post links are found on any of them, the run logs an error and returns no data.

#### 💬 Does LinkedIn Profile Posts Scraper return comment text?

No. It returns the number of comments on each LinkedIn post in `stats.comments`, not the comments themselves.

#### ❤️ Does LinkedIn Profile Posts Scraper return reaction types?

It returns total reactions and comments. The breakdown by reaction type and the repost count are not collected and stay at `0`.

#### 🖼️ Does LinkedIn Profile Posts Scraper download images and videos?

No. It returns the media type and the LinkedIn media link, not the files themselves.

#### 📁 Can I export LinkedIn Profile Posts Scraper results to Excel or CSV?

Yes. Open the dataset and choose Excel, CSV, JSON or another format, or fetch the data through the Apify API.

#### 🔌 Can I start LinkedIn Profile Posts Scraper through the Apify API?

Yes. Call the Actor with the JSON input shown above and read the dataset when the run finishes.

#### ⚖️ Is it allowed to scrape LinkedIn posts?

The Actor collects only publicly visible content. Posts can contain personal data, so use the results lawfully and in line with LinkedIn's terms.

### 📬 Support

Questions, feature requests or a LinkedIn page that returns fewer posts than expected? Share the target URL and your run link so the issue with LinkedIn Profile Posts Scraper can be reproduced.

- Contact me by email: alphascraper69@gmail.com

# Actor input Schema

## `url` (type: `string`):

The LinkedIn page to scrape posts from. Only one target per run is supported. Accepted values: a profile URL (https://www.linkedin.com/in/username), a company page URL (https://www.linkedin.com/company/name), a showcase page URL (https://www.linkedin.com/showcase/name) or, for personal profiles only, just the username (for example justinwelsh). Company and showcase pages need the full URL, because a bare name is always treated as a personal profile. Paste the plain URL without ?tracking parameters.

## `limit` (type: `integer`):

Maximum number of posts to scrape from the target. The Actor stops as soon as it has processed this many posts. You can receive fewer if LinkedIn exposes fewer posts on the page. Lower values make runs faster and cheaper.

## Actor input object example

```json
{
  "url": "https://www.linkedin.com/showcase/linkedin-news/",
  "limit": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://www.linkedin.com/showcase/linkedin-news/",
    "limit": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/linkedin-profile-posts-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "url": "https://www.linkedin.com/showcase/linkedin-news/",
    "limit": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/linkedin-profile-posts-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://www.linkedin.com/showcase/linkedin-news/",
  "limit": 20
}' |
apify call alpha-scraper/linkedin-profile-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/linkedin-profile-posts-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/BeToevytbRciFjxdM/builds/03FAQjlA4yJjjmepX/openapi.json
