# LinkedIn Company Posts - Updates, Engagement & Hashtags (`kestrel/linkedin-company-posts`) Actor

Get the latest posts of LinkedIn company and showcase pages by URL or name, up to 70 updates each. One row per post: text, date, reactions, comments count, images, video, link, hashtags, post URL. Company posts only. Free: monitor competitor news (only-new runs), date, keyword, engagement filters.

- **URL**: https://apify.com/kestrel/linkedin-company-posts.md
- **Developed by:** [Tedj MEABIOU](https://apify.com/kestrel) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.10 / 1,000 posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 Company Posts Scraper: company updates, engagement and hashtags

LinkedIn Company Posts Scraper exports the latest public posts of any company page or showcase page: its company updates with the full text, the exact publish time, the reaction and comment counts, images, video, the article or link it shares, hashtags and the post URL. You give it company page URLs or slugs; you get one row per post, newest first. Use it to track competitor posts, collect LinkedIn posts for content research, measure post engagement, or watch your own brand, with only-new monitoring on a schedule.

It runs on Apify, so you can call it from the API, a schedule, n8n, Make, Zapier or any MCP client used by AI agents. It reads company pages as a logged-out visitor: no account, cookies or login are needed or used. It is an independent tool, not a LinkedIn or Microsoft product.

Last verified working: 2026-11-16 (32 company and showcase pages in 12 countries on the Apify platform, 32/32 answered, median 60 company posts each, 1,826 posts in total).

### LinkedIn company posts for AI agents: which input answers which request?

Use it when the user names one or more companies (or their page URLs) and wants what those companies posted: recent posts, announcements, hiring posts, product launches, engagement numbers, or a daily feed of new posts.

Do not use it for:

- people: personal profiles, an employee's posts, or who reacted or commented
- the text of comments
- repost counts (hidden from logged-out visitors)
- job ads
- searching all posts by keyword
- posts older than about 12 months, or beyond a company's latest 70 updates

| User request | Input JSON |
| --- | --- |
| "Latest posts of Microsoft on LinkedIn" | `{"companyUrls": ["https://www.linkedin.com/company/microsoft/"]}` |
| "Last 5 posts of these 3 competitors" | `{"companyUrls": ["hubspot", "salesforce", "zoho"], "maxPostsPerCompany": 5}` |
| "Everything they posted that you can get" | `{"companyUrls": ["openai"], "maxPostsPerCompany": 0}` |
| "Posts from the last 30 days" | `{"companyUrls": ["nike"], "publishedAfter": "30 days"}` |
| "Posts that mention hiring or #AI" | `{"companyUrls": ["sap"], "textContains": ["hiring", "#AI"]}` |
| "Only posts with 100+ reactions" | `{"companyUrls": ["canva"], "minReactions": 100}` |
| "Every morning, only the new posts" | `{"companyUrls": ["…"], "onlyNewPosts": true, "monitorKey": "competitors-daily"}` + an Apify schedule |
| "A showcase page" | `{"companyUrls": ["https://www.linkedin.com/showcase/microsoft-security/"]}` |
| "Cap the bill at $1" | Apify run option `maxTotalChargeUsd: 1` (not an input field) |

Main output fields:

- post: `post_id`, `post_url`, `posted_at`, `text`, `reactions`, `comments`
- media and links: `media_type`, `image_urls`, `video_url`, `link_url`, `hashtags`, `links`
- company: `company_name`, `company_url`, `company_followers`

A company that is not found, refuses the run or has nothing new never fails silently. The status message and the per-company `companies_detail` list in the `SUMMARY` record give each company's status, posts delivered, reposts skipped and why the walk stopped (`stopped_by`).

### LinkedIn company posts: how do I start?

1. Paste company page URLs (or slugs such as `microsoft`) into `companyUrls`, one per line.
2. Leave `maxPostsPerCompany` at 20 for a quick look, or set 0 for every post the page shows.
3. Add free filters if you want: `publishedAfter`, `textContains`, `minReactions`.
4. Start the run, then read the dataset (the `posts` view) and the `SUMMARY` record.

```json
{
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/",
    "https://www.linkedin.com/company/openai/",
    "nike"
  ],
  "maxPostsPerCompany": 20,
  "publishedAfter": "60 days"
}
```

Inputs:

- `companyUrls` accepts:
  - `https://www.linkedin.com/company/<name>/` on any country host, sub-pages such as `/posts/` included
  - showcase pages
  - bare slugs
  - a company name, tried as its slug ("Tata Consultancy Services" becomes `tata-consultancy-services`; an unknown slug costs nothing)
- `excludePostIds` skips `post_id` values you already hold.
- `proxyConfiguration` defaults to Apify Proxy. You rarely need to touch it.

### Company posts output: what does one row contain?

One row is one post the company itself wrote:

```json
{
  "type": "post",
  "post_id": "7527047777168736256",
  "post_url": "https://www.linkedin.com/posts/microsoft_we-are-deeply-sorry-for-the-disruption-this-activity-7527047777168736256-f66c",
  "activity_urn": "urn:li:activity:7527047777168736256",
  "share_urn": "urn:li:share:7527047776216522752",
  "posted_at": "2026-11-13T16:40:35Z",
  "posted_ago": "2d",
  "edited": false,
  "text": "We are deeply sorry for the disruption this incident has caused our customers and partners. …",
  "hashtags": [],
  "links": [],
  "mentioned_pages": [],
  "reactions": 18544,
  "comments": 930,
  "reaction_types": ["LIKE", "APPRECIATION", "INTEREST"],
  "media_type": "text",
  "image_urls": [],
  "video_url": null,
  "video_thumbnail_url": null,
  "link_url": null,
  "link_title": null,
  "link_subtitle": null,
  "document_title": null,
  "reshared_post_url": null,
  "reshared_author_type": null,
  "reshared_author_name": null,
  "reshared_author_url": null,
  "reshared_text": null,
  "company_name": "Microsoft",
  "company_slug": "microsoft",
  "company_url": "https://www.linkedin.com/company/microsoft/",
  "company_id": "1035",
  "company_followers": 29529632,
  "input": "https://www.linkedin.com/company/microsoft/",
  "fetched_at": "2026-11-16T12:40:02.415220+00:00"
}
```

Field notes:

- **Time and date:** `posted_at` is exact (UTC). It comes from the post's own ID, which carries the publish time to the millisecond. `posted_ago` is the label the page shows ("2d", "1mo"); `edited` says whether the page marks the post as edited.
- **Engagement:** `reactions` counts every reaction type; `reaction_types` lists the top ones shown. `comments` is the comment count; the comment text is not collected.
- **Media:** `media_type` is one of `text`, `image`, `video`, `article` (a link card: `link_url`, `link_title`, `link_subtitle`), `live_video`, `external_video` (a YouTube card), `document`, `poll`, `event` or `reshare`. `image_urls` holds every image; `video_url` is the highest-bitrate MP4 the page offers, with `video_thumbnail_url`.
- **Links and tags:** `links` lists outbound links written in the text (often lnkd.in short links). `hashtags` and `mentioned_pages` come from the text; mentions of people stay plain text and never become a field.
- **Quote reshares:** when the company shares another post with its own text, that post is a row. `reshared_post_url` points to the shared post; its author's name, page and text are kept only when the author is a company or showcase page.

The `engagement` dataset view shows only the numbers, for quick comparisons.

### Which posts are included, and how far back does it go?

Only posts the company page itself wrote:

- Reposts of employees' or other people's posts are skipped and never charged. This is a deliberate privacy rule: the actor collects company pages only.
- Reposts of other pages' posts are skipped the same way.
- Both are counted in `reposts_skipped`.

**What LinkedIn shows logged-out visitors:**

- The latest updates of a page, about 70, newest first, reaching back at most about 12 months.
- In the 2026-11-16 test of 32 pages, the median was 60 company-written posts per page. The minimum was 21: Samsung Electronics posted only 21 times that year, and Doctolib had 21 own posts among 52 updates.
- A busy page reaches back a few weeks, a quiet one a full year.
- For complete history beyond that window you need a logged-in tool. This actor does not log in.

### LinkedIn company posts monitoring: how does onlyNewPosts work?

1. Set `onlyNewPosts: true` and a `monitorKey` (for example `competitors-daily`).
2. The first run is the baseline: it delivers the newest `maxPostsPerCompany` posts of each company and remembers them.
3. Later runs read each company newest first and stop at the first page that reaches what the last run saw. Only posts published since then are delivered and charged; a check with nothing new costs $0.
4. If a cap or spending limit stops a run before every new post was delivered, the rest comes the next run.

The memory lives in your own named key-value store, `kestrel-linkedin-company-posts-monitor`, one record per company and key. Use one `monitorKey` per watch list, a new key for a fresh baseline, and do not run the same key twice at once. Schedule the saved task daily or hourly in Apify. A competitor newsletter or a Slack alert then gets exactly the new company updates.

### LinkedIn company posts pricing: how much does a run cost?

One event, `post`, charged per post:

| plan | price per 1,000 posts |
| --- | --- |
| paid plans (Starter) | $1.50 |
| free plan | $1.80 |
| Scale | $1.30 |
| Business and above | $1.10 |

There is no start fee, and proxy and compute are included. You are not charged for:

- skipped reposts
- posts your filters remove, excluded posts, or posts an `onlyNewPosts` run already delivered
- unknown companies, failed requests and bad input

| run | cost |
| --- | --- |
| 1 company, default 20 posts | $0.03 |
| 10 companies x 20 posts | $0.30 |
| 1 company, every reachable post (about 60) | about $0.09 |
| daily `onlyNewPosts` check of 50 companies, about 1 new post each | about $0.08 a day |
| daily check with nothing new | $0.00 |

`maxItems` (sent by many AI tools) caps the posts of the whole run. The Apify run option `maxTotalChargeUsd` stops the run at a dollar amount. Both stop before the next page, so you never pay for rows you do not get.

### Company posts filters: which ones are free?

All of them run before billing:

- `publishedAfter` takes `2026-11-01`, an ISO time, or a span like `7 days`, `24 hours`, `2 weeks`, `3 months`. Older posts are skipped, and the walk stops at the first page that is entirely older.
- `textContains` keeps posts whose text contains any of the given words, phrases or hashtags (case-insensitive).
- `minReactions` keeps posts with at least that many reactions.
- `excludePostIds` drops posts you already have.

When filters are set, `maxPostsPerCompany` counts the posts that pass them.

### How do I call it from Python, JavaScript, curl, n8n or Make?

Python with the `apify-client` package:

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("kestrel/linkedin-company-posts").call(run_input={
    "companyUrls": ["https://www.linkedin.com/company/microsoft/", "openai"],
    "maxPostsPerCompany": 10,
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["posted_at"], post["company_name"], post["reactions"], post["text"][:80])
```

JavaScript (Node.js) with `apify-client`:

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('kestrel/linkedin-company-posts').call({
    companyUrls: ['https://www.linkedin.com/company/nike/'],
    publishedAfter: '30 days',
    minReactions: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems({ view: 'engagement' });
console.log(items.length, items[0]);
```

curl, waiting for the run and returning the rows in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/kestrel~linkedin-company-posts/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"companyUrls": ["https://www.linkedin.com/company/hubspot/"], "maxPostsPerCompany": 5}'
```

In n8n or Make, use the Apify node or module with this actor's id and the same JSON input. For monitoring, run a saved task on a schedule with `onlyNewPosts: true`. AI agents reach it through the Apify MCP server (`mcp.apify.com`) as `kestrel/linkedin-company-posts`.

### FAQ

#### Do I need a LinkedIn account or cookies?

No. The actor reads public company pages the way a logged-out browser does and never logs in. It does not accept cookies or account credentials.

#### Why did I get fewer posts than I asked for?

Four reasons, all visible per company in the `SUMMARY` record:

- The page shows only its latest 70 or so updates within about 12 months (`stopped_by: linkedinLimit` or `feedEnd`).
- Reposts are skipped (`reposts_skipped`).
- Your filters removed posts (`filtered`).
- A date floor or `onlyNewPosts` stopped the walk (`publishedAfter`, `onlyNew`).

#### Does it give repost counts, comments or the people who reacted?

No. Logged-out visitors see the reaction and comment counts, but not the repost count. Comment texts and the people who reacted or commented are personal data and are not collected.

#### Can it scrape posts of a person or an employee?

No. Only company and showcase pages are accepted; a profile URL is rejected as invalid input. When a company quote-shares a person's post, only that post's URL is kept, never the person's name or text.

#### What happens if a company page refuses the run?

LinkedIn sometimes answers with its sign-in wall. Then:

- Each refusal is retried after a growing pause from a new IP.
- After three refusals in a row, the run moves to Apify residential IPs by itself. This happens when `proxyConfiguration` is the default Apify Proxy; your own proxy URLs are used as given.
- If every company is still refused, the run fails with the reason, so you never pay for an empty result that looks successful.
- A run that nears its own timeout stops starting new pages, delivers what it read and ends successfully with `time_hit` in the `SUMMARY`.

In the 2026-11-16 test none of 263 requests through Apify datacenter IPs was refused.

#### Can I export LinkedIn posts to CSV or Excel?

Yes. Every Apify dataset downloads as CSV, Excel, JSON or XML; pick the `posts` or `engagement` view.

#### Is scraping LinkedIn company posts legal?

The actor only reads publicly available company content that anyone can see without logging in, and it leaves out posts by people. Whether you may process the data depends on your purpose and your jurisdiction (for example GDPR in the EU). Use it for analysis such as competitor research, content planning or brand monitoring, respect LinkedIn's terms, and ask a lawyer when in doubt. This tool is not affiliated with LinkedIn or Microsoft.

### Changelog and support

See the CHANGELOG tab for releases. Report problems or wishes in the Issues tab; include the run id so the run can be inspected.

# Changelog

This Actor's version history is a separate document: https://apify.com/kestrel/linkedin-company-posts/changelog.md

# Actor input Schema

## `companyUrls` (type: `array`):

LinkedIn company or showcase pages, one per line: a URL ("https://www.linkedin.com/company/microsoft/", any country host such as uk.linkedin.com, /posts/ sub-pages too) or a bare company slug ("microsoft"). Up to 500 per run. Not people profiles (/in/), single posts, jobs or search URLs. targetUrls, startUrls \[{"url": ...}] and company_name are accepted too.

## `maxPostsPerCompany` (type: `integer`):

Most post rows delivered per company, newest first. Default 20; 0 = every post LinkedIn shows logged-out visitors (its latest ~70 updates, reposts included, so usually 40-70 company posts reaching back 1-6 months). Filters run first, so 20 asked = up to 20 that pass them. The bill per company is at most this number of post events. maxItems, if your tool sends it, caps the whole run and lifts this default.

## `publishedAfter` (type: `string`):

Keep only posts published on or after this time: "2026-11-01", an ISO time, or a relative span like "7 days", "24 hours", "2 weeks", "3 months". Older posts are skipped free and the walk stops at the first page that is wholly older. Empty = all dates. Use for "posts from the last month".

## `textContains` (type: `array`):

Keep only posts whose text contains any of these words, phrases or hashtags, case-insensitive, e.g. \["hiring", "#AI", "launch"]. Other posts are skipped free. Empty = all posts.

## `minReactions` (type: `integer`):

Keep only posts with at least this many reactions (likes and all other reaction types), e.g. 100 for "top posts". 0 (default) = all. Others are skipped free.

## `onlyNewPosts` (type: `boolean`):

true = deliver and bill only posts published after the newest post an earlier run with the same monitorKey saw for that company. The first run is the baseline: the newest maxPostsPerCompany posts. Later runs read newest first and stop where the last run left off, so a check with nothing new costs $0. Needs monitorKey. Schedule the same input daily for competitor or brand monitoring.

## `monitorKey` (type: `string`):

Required with onlyNewPosts: a name for this watch, e.g. "competitors-daily" (1-60 letters, digits, dots, underscores or hyphens). Runs that share the name share one memory per company in your named storage kestrel-linkedin-company-posts-monitor; use a new name for a fresh baseline. Do not run the same name twice at once.

## `excludePostIds` (type: `array`):

post_id values (or post URLs) from earlier rows to skip free, e.g. \["7527047777168736256"]. Stateless alternative to onlyNewPosts when you keep your own list. Empty = skip nothing.

## `proxyConfiguration` (type: `object`):

Default Apify Proxy works for public company pages. When LinkedIn answers a request with its sign-in wall the run rotates to a new IP; after three refusals in a row it moves to Apify RESIDENTIAL by itself. Proxy and compute are included in the post price. Custom proxy URLs are used as given.

## Actor input object example

```json
{
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/"
  ],
  "maxPostsPerCompany": 10,
  "publishedAfter": "",
  "textContains": [],
  "minReactions": 0,
  "onlyNewPosts": false,
  "excludePostIds": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "companyUrls": [
        "https://www.linkedin.com/company/microsoft/"
    ],
    "maxPostsPerCompany": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kestrel/linkedin-company-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 = {
    "companyUrls": ["https://www.linkedin.com/company/microsoft/"],
    "maxPostsPerCompany": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("kestrel/linkedin-company-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 '{
  "companyUrls": [
    "https://www.linkedin.com/company/microsoft/"
  ],
  "maxPostsPerCompany": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call kestrel/linkedin-company-posts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kestrel/linkedin-company-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/2EBzr1lGCyusdhqHf/builds/ePpIfbSZuMQpsecwQ/openapi.json
