# LinkedIn Company Posts Scraper: Text, Reactions & Media (`automatic/linkedin-company-posts-scraper`) Actor

Export posts from any LinkedIn company page with no login or cookies: text, exact date, reactions, comments, images, videos, documents and links. Track competitors, brands and prospects.

- **URL**: https://apify.com/automatic/linkedin-company-posts-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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

Turn any LinkedIn company page into a clean, exportable post feed, with no LinkedIn account or cookies needed. Get every post's text, exact publish time, reactions, comments, images, videos, documents and links, one row per post.

- **Sales and lead-generation teams:** see what target accounts announce and launch.
- **Competitor and market analysts:** compare posting frequency, topics and engagement across companies.
- **Social-listening and content teams:** benchmark your brand's posts against peers and export them for reports.
- **Monitoring:** run on a schedule with **Posted after** (for example `7 days`) to get only new posts each time.
- **Months of posts, not just the latest few:** up to 66 posts per company in one run, newest first.

### Also available

The social media suite: pick the job.

| Actor | Use when |
|---|---|
| **LinkedIn Company Posts (this Actor)** | What every company posts, with engagement |
| [LinkedIn Company Pages](https://apify.com/automatic/linkedin-company-scraper) | Company size, industry and followers |
| [LinkedIn Jobs](https://apify.com/automatic/linkedin-jobs-scraper) | Job posts with full descriptions |
| [Facebook Page Posts](https://apify.com/automatic/facebook-posts-scraper) | Recent posts and reactions from any Page |
| [Instagram Posts](https://apify.com/automatic/instagram-post-scraper) | Full post history with captions and engagement |
| [X (Twitter)](https://apify.com/automatic/x-twitter-scraper) | Profiles and latest posts with views |

### What it returns

One row per post: stable post ID and link, company name, ID and page, post text, exact publish time (UTC, to the millisecond), reaction and comment counts, image and video links, document (PDF/carousel) links, and the external links mentioned in the post. Missing public values are null, never invented zeros. Links come without LinkedIn tracking parameters.

### Input

```json
{
  "companies": [
    "apify"
  ],
  "maxPostsPerCompany": 3,
  "maxItems": 3
}
```

| Field | What it controls |
|---|---|
| `companies` | Company URLs or slugs, such as `apify`; up to 100 entries. |
| `maxPostsPerCompany` | Maximum posts per company: 1–100, default 100. |
| `maxItems` | Maximum total rows: 1–10,000, default 100. |
| `historyDepth` | `extended` (default) also collects older public company posts, up to your limits. Choose `recent` for only the newest posts on the company page. |
| `postedAfter` | Optional. Only posts published on or after this date: an ISO date such as `2026-10-01`, or a period such as `30 days`, `2 weeks` or `6 months`. Older posts are skipped and not charged. |

Sources are collected in input order. The total row limit applies across all sources. Duplicate sources and overlapping items are collected once. Run with `{}` for a quick sample of up to 3 real posts; the prefilled input runs the same small example. When all sources are omitted or empty, the Actor announces its small sample and records `usedExample: true` in OUTPUT. Empty optional fields use their usual defaults. Invalid fields end the run green with `OUTPUT.status: "no_results"` and a message naming the field and the fix, before anything is fetched or charged. An entry in `companies` that is not a company link or name is skipped (listed in `OUTPUT.skippedSearches` with the reason) and the rest of the list still runs; that run ends `partial` (as any run with a source error) and only delivered posts are charged. When no company page could be read because the list had no usable entry, or every company page is missing, the run ends green with `OUTPUT.status: "no_results"` and `noResultsReason`; only a source refusal with nothing read fails.

For as many public posts as a company offers, use `{"companies":["google"],"maxPostsPerCompany":100,"maxItems":100}`. Collection keeps the newest posts first and stops at your limit or the available public history. If older history becomes unavailable, recent results are retained and OUTPUT reports the source error.

For a weekly update, use `{"companies":["hubspot","salesforce"],"postedAfter":"7 days"}`. Collection stops as soon as a company's feed reaches posts older than the cutoff. A run with no new posts succeeds with zero rows and reports how many older posts it skipped.

### Use it as an API

Read a company's newest public LinkedIn posts with reactions and media. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

```bash
curl --get 'https://automatic--linkedin-company-posts-scraper.apify.actor/' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --data-urlencode url=https://www.linkedin.com/company/apify/ \
  --data-urlencode limit=10
```

Send the same fields as a JSON object with `POST /`. Results are in `data`. See `GET /openapi.json` for the request and response definitions.

### Pricing

**$0.003 per delivered post ($3.00 per 1,000) plus $0.005 per run start.** One post is one dataset row. The start fee is charged per GB of memory, rounded up with a minimum of one; the default 512 MB run is one start event. Failed and skipped sources produce no charged rows. A result or charge limit can reduce the number of delivered rows.

| Example at 512 MB | Rows | Cost |
| --- | ---: | ---: |
| Console prefill | 3 | $0.01 |
| One run delivering 100 rows | 100 | $0.31 |
| One run delivering 1,000 rows | 1,000 | $3.01 |

Costs include one start and are rounded to the nearest cent.

### Output example

```json
{
  "id": "7527032524418531328",
  "urn": "urn:li:activity:7527032524418531328",
  "url": "https://www.linkedin.com/posts/apify_rising-stars-nov-vol-1-activity-7527032524418531328--FAj",
  "company": "Apify",
  "companyId": "10608457",
  "companyUrl": "https://www.linkedin.com/company/apify/",
  "text": "Half of Black Friday is prices pretending to be discounts. Three new Actors in Apify Store to tell the difference:\n\n🏷️ Idealo Price Data API by PricePirate: Track Black Friday prices across 6 European markets by EAN, name, or URL.\n\n📈 TikTok Shop Shops & Live Scraper by legrassy: See which TikTok Shop sellers and live streams drive the most sales.\n\n🛍️ Shopify Store Leads Database by Insane Developer: Build a Black Friday outreach list from 950K Shopify stores, emails included.\n\nWe highlight new standout Actors every other Friday. Build something great - it might be next. Link in comments ↓",
  "postedAt": "2026-11-13T15:39:59.323Z",
  "postedAtRaw": "2026-11-13T15:39:59.322Z",
  "postedAtSource": "post_id",
  "postedAtIsEstimated": false,
  "reactions": 6,
  "comments": 2,
  "mediaUrls": [
    "https://media.licdn.com/dms/image/v2/D4E10AQGZLtEl9qkvZA/ads-document-cover-images_480/B4EaHVkGg5IgAw-/0/1794584376542?e=2147483647&v=beta&t=SmmZMbEvdCbjsMgD2THJftauH5DIxcNWz52slWcF3jg",
    "https://media.licdn.com/dms/image/v2/D4E10AQGZLtEl9qkvZA/ads-document-cover-images_480/B4EaHVkGg5IgAw-/1/1794584376542?e=2147483647&v=beta&t=ibEXN-ThGeHsOGBFP6x0VwrW7MYsferQnp9tlDUzxg8",
    "https://media.licdn.com/dms/image/v2/D4E10AQGZLtEl9qkvZA/ads-document-cover-images_480/B4EaHVkGg5IgAw-/2/1794584376542?e=2147483647&v=beta&t=Duv-_RkpycjkiG-1PKG22aWI1qsNWQphRDXKD0f6-p0"
  ],
  "documentUrls": [
    "https://media.licdn.com/dms/document/pl/v2/D4E10AQGZLtEl9qkvZA/ads-document-master-manifest/B4EaHVkGg5IgBI-/0/1794584382731?e=2147483647&v=beta&t=SjNwdKUBu0L3ZMRBKK6TrBgwfYo5cPlL4H647O78UKU",
    "https://www.linkedin.com/feed/update/urn:li:ugcPost:7527032523407671298"
  ],
  "articleUrls": [],
  "authorName": "Apify",
  "authorUrl": "https://cz.linkedin.com/company/apify",
  "scrapedAt": "2026-11-13T17:21:00Z"
}
```

### Exports

Download the dataset as JSON, CSV or Excel. OUTPUT contains the run summary, sample indicator, source coverage and errors.

### Good to know

- Measured posts per company with the default extended depth: 40 Apify, 66 Google and 14 Microsoft. With `historyDepth: "recent"`: 6, 10 and 4. These are observed counts, not a full-history guarantee; your post limits always apply.
- Extended history keeps original company posts and excludes reshares, matching recent results. Available history varies by company.
- Public data only; private, deleted and unavailable pages produce a specific source error. Other successful companies are kept.
- Publish times are exact and marked `postedAtSource: post_id`; `postedAtRaw` keeps the date or label shown on the page. In the rare case a post has no usable ID, the time is estimated from the page label and marked `postedAtSource: relative_estimate` and `postedAtIsEstimated: true`.
- With `postedAfter`, posts without a readable date are skipped. Share counts are not shown on public pages and are not included.
- Media links can expire. Each run is independent; there is no saved state between runs.

### Your feedback

Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's **Issues** tab. We read every issue and use them to decide what to build next.

# Actor input Schema

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

Public companies. Example: apify. Empty source lists run the announced sample. Up to 100 entries; duplicates are collected once.

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

Maximum posts per company; example: 3. Maximum 100. Public history may hold fewer; choose Recent history depth for only the newest few.

## `maxItems` (type: `integer`):

Total row limit across all sources; example: 10. Raising this does not extend public history.

## `historyDepth` (type: `string`):

Extended (default) collects older public company posts as well, up to your post limits: measured 40 Apify, 66 Google and 14 Microsoft posts. Recent returns only the newest posts on the company page (about 4–10). Available history varies by company.

## `postedAfter` (type: `string`):

Optional. Only posts published on or after this date: an ISO date such as 2026-10-01, or a period such as 30 days, 2 weeks or 6 months. Older posts are skipped and not charged, and collection stops once the feed is older than this date.

## Actor input object example

```json
{
  "companies": [
    "apify"
  ],
  "maxPostsPerCompany": 3,
  "maxItems": 3,
  "historyDepth": "extended"
}
```

# Actor output Schema

## `results` (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 = {
    "companies": [
        "apify"
    ],
    "maxPostsPerCompany": 3,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/linkedin-company-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 = {
    "companies": ["apify"],
    "maxPostsPerCompany": 3,
    "maxItems": 3,
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/linkedin-company-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/6EYeYlFnwufyHwlkN/builds/80vuly20fVuz5cby7/openapi.json
