# Discover LinkedIn People Posts (`pratikdani/discover-linkedin-people-posts`) Actor

It retrieves posts created, liked, or commented on by the user, along with detailed insights like reactions, comments, hashtags, and more, in a structured JSON format.

- **URL**: https://apify.com/pratikdani/discover-linkedin-people-posts.md
- **Developed by:** [Pratik Dani](https://apify.com/pratikdani) (community)
- **Categories:** Social media, Developer tools, Lead generation
- **Stats:** 327 total users, 10 monthly users, 100.0% runs succeeded, 12 bookmarks
- **User rating**: No ratings yet

## Pricing

$50.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Discover LinkedIn Posts by Profile URL Actor

This actor extracts all posts from a valid LinkedIn profile URL and provides detailed information about each post. It also retrieves user interactions, including likes, comments, and shares. The extracted data offers comprehensive insights into a user's LinkedIn activity.
Interested in using this scraper? Get it here: [LinkedIn Posts Scraper](https://apify.com/pratikdani/discover-linkedin-people-posts).

***

### Features

- **Extract Posts:** Retrieves all posts from a given LinkedIn profile.
- **Interactive Content:** Includes posts liked, commented on, or shared by the user.
- **Detailed Information:** Outputs metadata for each post, such as title, text, likes, comments, and engagement metrics.
- **Top Comments:** Fetches the most visible comments on each post.
- **User Metrics:** Provides details about the user's followers, total posts, and articles.

***

### Output Fields

The actor generates the following data fields:

## Output Fields for Discover LinkedIn Posts by Profile URL Actor

| **Field Name**          | **Type**            | **Description**                                                                                           |
|--------------------------|---------------------|-----------------------------------------------------------------------------------------------------------|
| `url`                   | `string`             | The URL of the LinkedIn post.                                                                             |
| `id`                    | `string`             | Unique identifier of the post.                                                                            |
| `user_id`               | `string`             | LinkedIn username of the post's author.                                                                  |
| `use_url`               | `string`             | LinkedIn profile URL of the post's author.                                                               |
| `title`                 | `string`             | Title of the post.                                                                                        |
| `headline`              | `string`             | Short description or headline of the post.                                                               |
| `post_text`             | `string`             | The text content of the post.                                                                             |
| `date_posted`           | `string`(ISO 8601)   | The date and time when the post was created.                                                             |
| `hashtags`              | `list` or `null`        | Hashtags included in the post, if any.                                                                   |
| `embedded_links`        | `list` or `null`        | URLs embedded within the post, if any.                                                                   |
| `images`                | `list` or `null`        | Image attachments included in the post, if any.                                                          |
| `videos`                | `list` or `null`        | Video attachments included in the post, if any.                                                          |
| `num_likes`             | `integer`            | Number of likes the post has received.                                                                   |
| `num_comments`          | `integer`            | Number of comments on the post.                                                                          |
| `more_articles_by_user` | `list` or `null`        | Other articles written by the post's author, if available.                                               |
| `more_relevant_posts`   | `list` or `null`        | Relevant or similar posts, if available.                                                                 |
| `top_visible_comments`  | `list`of Objects     | Details of the most visible comments on the post.                                                        |
| `user_followers`        | `integer`            | Number of followers the user has on LinkedIn.                                                            |
| `user_posts`            | `integer`            | Total number of posts created by the user.                                                               |
| `user_articles`         | `integer`            | Total number of articles written by the user.                                                            |
| `post_type`             | `string`             | Type of post (e.g., "post", "article", etc.).                                                            |
| `account_type`          | `string`             | Indicates whether the account is a person or an organization.                                            |
| `post_text_html`        | `string`             | The HTML-formatted text content of the post.                                                             |
| `repost`                | `object` or `null`      | Details about the repost, if the post is a repost.                                                       |
| `tagged_companies`      | `list` or `null`        | Companies tagged in the post, if any.                                                                    |
| `tagged_people`         | `list` or `null`        | People tagged in the post, if any.                                                                       |
| `user_title`            | `string`             | Title or designation of the post author (e.g., "Chair, Gates Foundation and Founder, Breakthrough Energy").|
| `timestamp`             | `string`(ISO 8601)   | Timestamp of when the data was extracted.                                                                |
| `input`                 | `object`             | Contains the input URL for the LinkedIn post being extracted.                                            |
| `discovery_input`       | `object`             | Contains the input profile URL for discovering posts by the user.                                        |
-------------------------------------------------------------------------------------------------------------------------------------------------------------

### Usage

1. **Provide Input:** Submit a valid LinkedIn profile URL.
2. **Run Actor:** Execute the actor to extract posts and interactions.
3. **Receive Data:** Download the results in JSON format for further analysis.

***

### Example Output

```json

[
  {
    "url": "https://www.linkedin.com/posts/williamhgates_mike-maples-sr-1942-2025-microsofts-activity-7283555259380068352-C_Qp",
    "id": "7283555259380068352",
    "user_id": "williamhgates",
    "use_url": "https://www.linkedin.com/in/williamhgates",
    "title": "Bill Gates on LinkedIn: Mike Maples Sr., 1942-2025: Microsoft’s ‘adult in the room’ had a deep… | 140 comments",
    "headline": "Bill Gates’ Post",
    "post_text": "Mike Maples was an extraordinary human, business leader, and friend. I’m lucky to have known him, and I’m thinking of his family during this difficult time.",
    "date_posted": "2025-01-10T18:48:15.716Z",
    "hashtags": null,
    "embedded_links": null,
    "images": null,
    "videos": null,
    "num_likes": 1252,
    "num_comments": 140,
    "more_articles_by_user": null,
    "more_relevant_posts": null,
    "top_visible_comments": [
      {
        "use_url": "https://www.linkedin.com/in/diana-heileman-romero-75a8251?trk=public_post_comment_actor-name",
        "user_id": "diana-heileman-romero-75a8251",
        "user_name": "Diana Heileman Romero",
        "comment_date": "2025-01-11T11:47:49.211Z",
        "comment": "A few years after Mike retired, we met him in Texas so he could talk to a group of managers in the South Region. He had us laughing in stiches with his stories of swimming in Lake Bill and the early days. One story in particular stood out. Mike had a summer job during college in Oklahoma pouring asphalt/rocks to fix the roads. It was hot and dusty and Mike, being a big strong football player, had started the job shoveling fast, but he would tire quickly and would have to take breaks. He noticed that a quiet, skinner older man would be slow and steady shoveling the materials to fix the roads and didn't tire. This man would get twice as much roadwork done than Mike could. So Mike did what that man did, and he said he learned from that early job, that it didn't matter what a person boasted about or how they appeared, what mattered was their experience in doing the job and getting results. As Microsoft celebrates its 50th year, it's people like Mike who helped set the right course early and shared his experience. I am glad he had a long retirement and was able to enjoy his family. May he rest in peace.",
        "tagged_users": null,
        "num_reactions": 27,
        "user_title": null
      },
      {
        "use_url": "https://in.linkedin.com/in/fahad-khan-a61ab2346?trk=public_post_comment_actor-name",
        "user_id": "fahad-khan-a61ab2346",
        "user_name": "Fahad Khan",
        "comment_date": "2025-01-14T11:33:49.212Z",
        "comment": "Dear Sir, I have deep passion for physics and the mysteries of the universe. I dream of becoming a physicist one day, but my journey is hindered by financial constraints that limit my access to the resources I need to learn and grow. I have a strong desire to explore and understand the profound ideas in physics through the works of renowned scientists and authors. However, I am unable to afford the following books that I believe would greatly enhance my knowledge and perspective: 1. Cosmos 2. The Theory of Everything 3. A Brief History of Time 4. Relativity 5. In Search of Schrödinger's Cat 6. Our Mathematical Universe 7. What Is Mathematics? 8. The God Equation 9. Ripples in Spacetime 10. Gravity 11. The Invisible Universe In addition, I aspire to learn skills like editing and graphic designing, which require a laptop—another resource I currently lack. I deeply admire your work and the impact you have made in advancing science and technology. I humbly request your support in any form, whether by helping me access these resources or guiding me on how I can achieve my dreams despite my limitations. Even a response from you would mean a lot to me and inspire me to work even harder toward my goals Bill Gates",
        "tagged_users": null,
        "num_reactions": 2,
        "user_title": "Attended Bal Bharti School - India"
      },
      {
        "use_url": "https://kr.linkedin.com/in/%EB%8C%80%EC%9B%85-%EB%B0%95-446843341?trk=public_post_comment_actor-name",
        "user_id": "%EB%8C%80%EC%9B%85-%EB%B0%95-446843341",
        "user_name": "박대웅",
        "comment_date": "2025-01-14T11:44:49.213Z",
        "comment": "Our company has developed a children's puree juice beneficial for respiratory health.\"",
        "tagged_users": null,
        "num_reactions": 0,
        "user_title": "--"
      },
      {
        "use_url": "https://tr.linkedin.com/in/hazim-korkmaz-9b4461266?trk=public_post_comment_actor-name",
        "user_id": "hazim-korkmaz-9b4461266",
        "user_name": "Hazim KORKMAZ",
        "comment_date": "2025-01-11T11:47:49.214Z",
        "comment": "O GÖÇTÜ. FAKAT DAHA KÖTÜ, ZOR DURUMDA INSANLAR VAR. EKMEK BULAMIYORLAR. MASUNLAR CIKAR VE PARA UGRUNA OLUYORLAR. ONCELIKLE ONLARI, DUSUNMEK COK DAHA İYİ OLUR DIYE DÜŞÜNÜYORUM. NE DERSINIZ. DOSTLARIM.",
        "tagged_users": null,
        "num_reactions": 4,
        "user_title": "KORKMAZ TARIM, PAKETLEME, BOYLAYA, YIKAMA, ALIM, SATIM."
      },
      {
        "use_url": "https://www.linkedin.com/in/benoitjurion?trk=public_post_comment_actor-name",
        "user_id": "benoitjurion",
        "user_name": "Benoit Jurion",
        "comment_date": "2025-01-11T11:47:49.215Z",
        "comment": "I started my career at Microsoft a few months after Mike Maples. I remember how imposing yet relaxed and approachable executive Mike was. For me, it was so exciting and inspiring to see Bill Gates hire an IBM veterant. I knew i was in the right company and there for the ride of my life. Thank you Bill Gates and Mike Maples for your leadership and inspiration through all these years. My sincere condolences to Mike’s family.",
        "tagged_users": null,
        "num_reactions": 9,
        "user_title": "Founder"
      },
      {
        "use_url": "https://br.linkedin.com/in/jo%C3%A3o-pereira-dos-santos-176063214?trk=public_post_comment_actor-name",
        "user_id": "jo%C3%A3o-pereira-dos-santos-176063214",
        "user_name": "João Pereira dos santos",
        "comment_date": "2025-01-14T11:37:49.216Z",
        "comment": "The Signs of the Last Days: A Call to Reflection and Hope We live in times marked by disturbing events that seem to echo Jesus' words in Luke 21:10-11: \"Nation will rise against nation and kingdom against kingdom. There will be great earthquakes, and in one place after another, food shortages and pestilences; and people will see fear-inspiring things and great signs from heaven.\" When we look around us, the signs are evident. Wars devastate nations, causing suffering and division. Natural disasters, such as earthquakes and storms, leave a trail of destruction. Pestilences, like recent pandemics, have had a profound impact on humanity. Hunger continues to plague millions, while love between people seems increasingly scarce",
        "tagged_users": null,
        "num_reactions": 3,
        "user_title": "Projetos eletrônicos"
      },
      {
        "use_url": "https://pl.linkedin.com/in/ewa-dzi%C4%99gielewska-30a446185?trk=public_post_comment_actor-name",
        "user_id": "ewa-dzi%C4%99gielewska-30a446185",
        "user_name": "Ewa Dzięgielewska",
        "comment_date": "2021-04-05T11:47:49.217Z",
        "comment": "Kondolencje. Wyrazy współczucia po stracie bliskiej osoby dla rodziny oraz współpracowników",
        "tagged_users": null,
        "num_reactions": 0,
        "user_title": "--"
      },
      {
        "use_url": "https://www.linkedin.com/in/dean-arlington-bb1ab66?trk=public_post_comment_actor-name",
        "user_id": "dean-arlington-bb1ab66",
        "user_name": "Dean Arlington",
        "comment_date": "2025-01-11T11:47:49.218Z",
        "comment": "Well done Mr. Bill Gates, Chair, the Gates Foundation, & my most sincere of condolences to Mr. Mike Maples Family, youself, the MSFT Folks that, at the time, had worked directly with Mr. Maples, Sr. In t/late 80's, [1988]; was a critical time in Microsoft's corporate evolution. W/in t/Applications Division, along with Mr. Maples Sr.; breaking down the MSFT Applications along w/their Product Units, together with re-combining & consolidation of the New Profit/Application Centers, was the Key. As you phrased out earlier in your Post, [\"Mr. Mike Maples, Sr. was one of the kindest, most level-headed & serious businessman\"; as well as, 'Microsoft's adult in the room\"; and Mike had a \"deep impact\" on the company\"]. Moreover, Mr. Maples was a Special Person to Microsoft, to Mr. Gates, Mr. Balmer, Brad Silverberg, in 1995; and to many of t/other Folks, all across Microsoft; that Mike Maples, Sr. had mentored, & worked with, whilst at Microsoft. Mike Maples Sr.'s son, had recently also said: [\"My Father's Mentorship, along w/his laughter & love; will forever be part of our lives\"]. Mr. Maples was a remarkable person, & had a deep overall, positive impact on MSFT. With condolences to Mr. Maples Family, Friends, & t/Teams at MSFT. Dean A.",
        "tagged_users": null,
        "num_reactions": 8,
        "user_title": "Managing Partner at LaSalle Institutional Realty Advisors, LLC"
      },
      {
        "use_url": "https://www.linkedin.com/in/robert-sorensen-62855a205?trk=public_post_comment_actor-name",
        "user_id": "robert-sorensen-62855a205",
        "user_name": "Robert Sorensen",
        "comment_date": "2025-01-14T11:39:49.219Z",
        "comment": "It's sad to hear of someone like Mike Maples Sr., passing away who's life, words and work has touched so many.",
        "tagged_users": null,
        "num_reactions": 0,
        "user_title": "Custom Design Wood Work"
      },
      {
        "use_url": "https://www.linkedin.com/in/bibhutti1267?trk=public_post_comment_actor-name",
        "user_id": "bibhutti1267",
        "user_name": "Bibhutti S.",
        "comment_date": "2025-01-11T11:47:49.220Z",
        "comment": "Bill Gates I am deeply sorry for the loss of Mike Maples. Before becoming a prominent venture capitalist, he worked at Microsoft in the 1990s. During his time there, he was involved in product development and played a role in shaping the company’s software offerings. His impact as a business leader and his kindness as a person will surely be remembered by all who had the privilege to know him. My thoughts are with his family during this difficult time. It’s clear from your words that Mike left an indelible mark on everyone around him. May his legacy continue to inspire.",
        "tagged_users": null,
        "num_reactions": 3,
        "user_title": "Founder & CEO | Strategic Leader in IT Solutions | Custom Software and Digital Innovation"
      }
    ],
    "user_followers": 36975941,
    "user_posts": 1402,
    "user_articles": 255,
    "post_type": "post",
    "account_type": "Person",
    "post_text_html": "Mike Maples was an extraordinary human, business leader, and friend. I&#x2019;m lucky to have known him, and I&#x2019;m thinking of his family during this difficult time. <br/>",
    "repost": {
      "repost_url": null,
      "repost_user_id": null,
      "repost_user_name": null,
      "repost_text": null,
      "repost_hangtags": null,
      "repost_date": null,
      "repost_attachments": null,
      "repost_id": null,
      "tagged_users": null,
      "tagged_companies": null,
      "repost_user_title": null
    },
    "tagged_companies": [],
    "tagged_people": [],
    "user_title": "Chair, Gates Foundation and Founder, Breakthrough Energy",
    "timestamp": "2025-01-14T11:47:49.260Z",
    "input": {
      "url": "https://www.linkedin.com/posts/williamhgates_mike-maples-sr-1942-2025-microsofts-activity-7283555259380068352-C_Qp"
    },
    "discovery_input": { "url": "https://www.linkedin.com/in/williamhgates" }
  }
]
```

# Actor input Schema

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

URL of the LinkedIn Profile URL

## `number` (type: `integer`):

Number of posts to scrape

## Actor input object example

```json
{
  "url": "https://www.linkedin.com/in/williamhgates",
  "number": 10
}
```

# 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/in/williamhgates",
    "number": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("pratikdani/discover-linkedin-people-posts").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/in/williamhgates",
    "number": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("pratikdani/discover-linkedin-people-posts").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/in/williamhgates",
  "number": 10
}' |
apify call pratikdani/discover-linkedin-people-posts --silent --output-dataset

```

## MCP server setup

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

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/94SdiE9JwTx0RNyfS/builds/RQYDnXk9VZCMvNo1R/openapi.json
