# LinkedIn Company Posts Scraper (No Login) (`locaihost/linkedin-company-posts`) Actor

Get the latest posts from LinkedIn company pages, no login: full text, ISO date, reactions, comments, images, video, documents, article links, hashtags and company mentions, with the company's followers and industry on every row. Pages by URL, name or website. Only-new mode for monitoring.

- **URL**: https://apify.com/locaihost/linkedin-company-posts.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 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 (No Login)

Get the latest public posts from LinkedIn company pages, one row per post: the full text, when it was posted, reactions, comments, images, video, documents, article links, hashtags and the companies it mentions. Every row also carries the company's name, follower count, industry and website. No login and no cookies.

- Watching competitors: see what rival brands announce, and which of their posts get the most reactions.
- Tracking a market: follow a list of companies on a schedule and get each new post once.
- Content research: collect hashtags, formats (video, images, documents) and posting times that work in your industry.
- Sales signals: spot launches, hiring pushes and event news from the companies on your account list.

### How do I start?

Paste this into the **JSON** tab of the input and click **Start**:

```json
{"companies": ["microsoft", "nvidia"]}
```

You get about 20 posts, usually in under 30 seconds. You can mix page addresses (`https://www.linkedin.com/company/microsoft/`), page names (`nvidia`), company names (`Ninja Van`) and website domains (`hubspot.com`) in one list.

### What does each row contain?

| Group | Fields |
|---|---|
| Post | `postUrl`, `postId`, `activityUrn`, `shareUrn`, `text`, `postedAt` (ISO date and time), `postedAgo` (as LinkedIn shows it, e.g. `3d`), `edited` |
| Engagement | `reactions`, `comments`, `reposts` (empty: LinkedIn does not show a repost count to logged-out visitors) |
| Media | `mediaType` (`text`, `images`, `video`, `document` or `article`), `images`, `videoUrl`, `videoThumbnailUrl`, `documentUrl`, `documentTitle`, `articleUrl`, `articleTitle`, `links` |
| Tags | `hashtags`, `companyMentions` (name and page address of each company the post tags) |
| Author | `authorType` (`company` or `member`), `authorName`, `authorUrl`, `isRepost` |
| Company | `companyName`, `companyUrl`, `companySlug`, `companyId`, `companyFollowers`, `companyIndustry`, `companySize`, `companyWebsite`, `companyDomain`, `companyCountry`, `companyLogoUrl` |
| Run | `type` (`post`, `status` or `summary`), `input`, `resolvedVia`, `scrapedAt` |

Example row (shortened):

```json
{
  "type": "post",
  "companyName": "Microsoft",
  "companyFollowers": 29512215,
  "companyIndustry": "Software Development",
  "postUrl": "https://www.linkedin.com/posts/microsoft_...-activity-7527047777168736256-f66c",
  "postId": "7527047777168736256",
  "text": "We are deeply sorry for the disruption ...",
  "postedAt": "2026-11-13T16:40:35.862Z",
  "postedAgo": "8h",
  "reactions": 9612,
  "comments": 424,
  "mediaType": "text",
  "authorType": "company",
  "isRepost": false,
  "hashtags": [],
  "companyMentions": []
}
```

The posting time comes from the post's own ID, so it is exact even when LinkedIn only shows "3d".

### How many posts can I get per company?

A logged-out visitor sees roughly the latest 10 posts on a company page, and this Actor reads only what a logged-out visitor sees. So `maxPostsPerCompany` can go up to 100, but most companies give about 10. This is the recent feed, not the full history. For a longer record, run it on a schedule with **Only new posts** on: each run adds the posts that appeared since the last one.

### How does it find a company from a name or a website?

- **Page address or page name:** that page is read directly.
- **Company name:** the Actor tries the page names that name would have (`Ninja Van` becomes `ninja-van`, then `ninjavan`) and keeps a page only if its own name matches. If it does not, the status row says which page it found instead.
- **Website domain:** the Actor reads the company's homepage and follows its own LinkedIn link. If there is none, it tries the page named after the domain and keeps it only if that page lists the same website.

Each post row says how its company was found in `resolvedVia` (`input`, `name`, `website-link` or `slug-guess`).

### What about reposts?

A company feed includes posts the company shared from other accounts. They are kept by default and marked `isRepost: true`. When the original author is another company, its name and page are given. When the original author is a person, `authorType` is `member` and the name and profile address are left empty: this Actor returns company data, not people. Turn **Include reposts** off to keep only the company's own posts.

### Which inputs are there?

| Input | What it does |
|---|---|
| `companies` | Page addresses, page names, company names or website domains. |
| `maxPostsPerCompany` | The most posts per company, newest first (default 10). |
| `postedWithin` | Only posts from the last 24 hours, week, month, 3 months, 6 months or year. |
| `includeReposts` | Keep posts the company shared from others (default on). |
| `onlyNew` | Skip posts an earlier run on your account already returned. |

### How much does it cost?

You pay per post returned: **$2 per 1,000 posts** on the Starter plan, less on higher plans, plus a tiny one-time start fee per run. Status rows (company not found, LinkedIn asked for a login, no posts in the window) and the summary row are free. A company that cannot be read costs nothing.

On the free Apify plan a run returns up to 100 posts. Any paid plan removes that cap. If you set a maximum charge for a run, the Actor stops cleanly when it is reached and keeps everything already returned.

### How do I get only new posts on a schedule?

Turn on **Only new posts** and schedule the run (daily is typical). The Actor remembers the posts it returned on your account and skips them next time, so you get each post once and pay for it once. The memory is per account, so the same post is not charged twice even if it shows up under two companies.

### What happens when something goes wrong?

- A company with no public page gets a free status row that says why.
- If LinkedIn asks for a login instead of showing a page, the Actor retries on a fresh connection a couple of times, then gives a free status row. It never logs in.
- Bad input (an empty list, a personal profile address) ends the run with a message that says what to change, and nothing is charged.
- Every run ends with a summary row and a `SUMMARY` record with counts of posts, companies, skipped inputs and why the run stopped.

### Can I use it through the API or from an AI agent?

Yes. Start a run with the Apify API or one of the Apify client libraries and read the dataset when it finishes. The Actor is also available as a tool to AI agents through the Apify MCP server, which can call it with a list of companies and read the posts back.

### Is it legal to scrape LinkedIn company posts?

This Actor reads only pages LinkedIn shows to anyone who is not logged in, and only company pages. It does not log in, use cookies or read private content, and it does not return people's names or profile links. LinkedIn's terms restrict automated access, so check your own use case and the laws that apply to you, and use the data responsibly. If you need a post removed from your results, delete it from your dataset.

### Why are some fields empty?

Fields are filled only when the post shows them. A text post has no images, a post without hashtags has none, and `reposts` is always empty because LinkedIn hides that count from logged-out visitors. Comment text and the list of people who reacted are visible only when logged in, so they are not included.

### Did it help?

If the Actor saved you time, a short rating on its Store page helps other people find it.

### Where do I get help?

Open an issue on the Actor's **Issues** tab with the run ID and what you expected. We usually answer within a day.

# Changelog

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

# Actor input Schema

## `companies` (type: `array`):

LinkedIn company page addresses (https://www.linkedin.com/company/microsoft/), the name from the address ("nvidia"), a company name ("Ninja Van") or a website domain ("hubspot.com"). Each row says how the page was found. Personal profiles are refused.

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

The most posts to return for each company, newest first. A logged-out visitor sees about the latest 10 posts on a company page, so a higher number rarely adds more.

## `postedWithin` (type: `string`):

Only posts from this recent window. Posts without a readable date are left out when a window is set.

## `includeReposts` (type: `boolean`):

Keep posts the company shared from someone else. The original author's name is never returned for people; the row says it is a repost.

## `onlyNew` (type: `boolean`):

Return only posts no earlier run on your account returned. Use it on a schedule to get each new post once and pay for it once.

## Actor input object example

```json
{
  "companies": [
    "https://www.linkedin.com/company/microsoft/",
    "nvidia",
    "hubspot.com"
  ],
  "maxPostsPerCompany": 10,
  "postedWithin": "any",
  "includeReposts": true,
  "onlyNew": false
}
```

# Actor output Schema

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

One row per post with the company's details; status and summary rows are free.

## `summary` (type: `string`):

Posts returned, companies not found or unavailable, posts skipped as already seen, and measured cost.

# 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 = {
    "companies": [
        "microsoft",
        "nvidia"
    ],
    "maxPostsPerCompany": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/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 = {
    "companies": [
        "microsoft",
        "nvidia",
    ],
    "maxPostsPerCompany": 10,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,locaihost/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/1gccWBCibQoHvPS4d/builds/PnhBdvnU5OyeKfFte/openapi.json
