# LinkedIn Company Posts Scraper (`automly/linkedin-company-posts-scraper`) Actor

Scrape the posts of any LinkedIn company page from its link or name: text, date, likes, comment count, first comments, images, videos and documents. Date range filter. No login or cookies.

- **URL**: https://apify.com/automly/linkedin-company-posts-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Features:** Limited permissions
- **Stats:** 16 total users, 7 monthly users, 83.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

### What is LinkedIn Company Posts Scraper?

**LinkedIn Company Posts Scraper** lets you **scrape the posts of any LinkedIn company page**: the post text, date, likes, number of comments, the first comments, images, videos and documents. Paste company page links or just type company names, click **Start**, and download the posts as Excel, CSV or JSON.

- ⚡ **Fast:** 20 posts from 2 companies in one to three minutes, about 175 posts from 5 large companies in about 6 minutes (our tests)
- 🏢 **Links or names:** paste `linkedin.com/company/...` links, or type names like `Notion` or `Amazon Web Services`
- 🗓️ **Newest first, with a date range:** past 24 hours, week, month, year, or any range of dates you pick
- 💬 **Comments included:** the first comments of every post at no extra charge
- 🔓 **No login:** no LinkedIn account or cookies needed, so no account can get restricted

### What can LinkedIn Company Posts Scraper do?

- **Scrape a company's LinkedIn posts**, newest first, from its company page link
- **Find the company for you**: type its name and the scraper looks up its LinkedIn page
- **Get posts from a date range**: the past week, the past month, everything since a date, or between two dates
- **Track many companies in one run**, each with its own limit
- **Get document posts too**: the title, number of pages, page previews and a link to the PDF
- Export to Excel, CSV, JSON, HTML or XML, or send the posts to Google Sheets, Make, Zapier and more

### What data can you extract from LinkedIn company posts?

| | | |
|---|---|---|
| 📝 Post text | 📅 Date posted | 🔗 Post link |
| 👍 Likes (reactions) | 💬 Number of comments | 🗨️ First comments (text, date, author, likes) |
| 🖼️ Images | 🎬 Video link, thumbnail and length | 📄 Document title, pages, PDF link |
| 🏢 Company name and page | 👥 Company followers | 🔁 Shared post (for quote posts) |
| 🆔 Post ID | 🏷️ Post, video or article | 🔎 The company link it came from |

### How to scrape LinkedIn company posts

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open **LinkedIn Company Posts Scraper**.
3. Paste LinkedIn company page links, one per line, or type company names.
4. Set how many posts you want per company, and a date range if you need one.
5. Click **Start**, then download the posts as Excel, CSV, JSON or HTML.

### How much does it cost to scrape LinkedIn company posts?

You pay only for the posts you get; comments come with each post at no extra charge. See the **Pricing** tab for the current price. Every Apify account gets **$5 of free usage each month**, so you can try it at no cost.

### ⬇️ Input

| Setting | What it does |
|---|---|
| **Company links** | LinkedIn company page links, one per line (`https://www.linkedin.com/company/google/`), or just the name at the end of the link (`google`) |
| **Company names** | Company names to look up on LinkedIn, e.g. `Notion` or `Amazon Web Services` |
| **Maximum posts per company** | How many posts to save for each company, newest first (default 10). Set 0 for every post that can be found |
| **Posted within** | Only posts from the past hour, 24 hours, week, month, 3 months, 6 months or year |
| **Posted on or after** | Only posts published on or after a date, e.g. `2026-09-01` |
| **Posted on or before** | Only posts published on or before a date, e.g. `2026-09-30` (the whole day counts) |
| **Include comments** | Add the first comments shown on each post (on by default, no extra charge) |

The latest 10 posts of two companies:

```json
{
  "targetUrls": [
    "https://www.linkedin.com/company/google/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "maxPosts": 10
}
```

Every post from September 2026 of companies given by name, without comments:

```json
{
  "companyNames": ["Notion", "Amazon Web Services"],
  "maxPosts": 0,
  "postedLimitDate": "2026-09-01",
  "postedBeforeDate": "2026-09-30",
  "includeComments": false
}
```

### ⬆️ Output

Every post is one row (comments and image links shortened):

```json
{
  "url": "https://www.linkedin.com/posts/google_the-best-way-to-understand-a-clients-business-activity-7509276800687140865-X5MF",
  "id": "7509276800687140865",
  "type": "post",
  "text": "The best way to understand a client’s business? Think like their customer. As a Field Sales Representative on our Google Cloud team, Cori has found some unexpected ways to do just that. ...",
  "postedAt": "2026-09-25T15:45:04.899Z",
  "author": {
    "name": "Google",
    "url": "https://www.linkedin.com/company/google/",
    "type": "company",
    "followers": 42412926,
    "image": "https://media.licdn.com/dms/image/v2/D4E0BAQGv3cqOuUMY7g/company-logo_100_100/..."
  },
  "likes": 382,
  "commentsCount": 48,
  "comments": [
    {
      "text": "Love this perspective. The best sales conversations usually start with genuine curiosity about the customer’s business, not the pitch",
      "postedAt": "2026-09-27T07:29:00.517Z",
      "authorName": "(the commenter's name)",
      "likes": 0
    }
  ],
  "video": null,
  "images": [
    "https://media.licdn.com/dms/image/v2/D5610AQHhd07mCK1mAw/image-shrink_1280/...",
    "https://media.licdn.com/dms/image/v2/D5610AQHSVpKgvrtgvQ/image-shrink_1280/..."
  ],
  "sharedPost": null,
  "document": null,
  "isRepost": false,
  "sourceUrl": "https://www.linkedin.com/company/google/"
}
```

A document post (slides or a PDF) has `"document": {"title": "Here's what's new in the Gemini app", "pageCount": 12, "pdfUrl": "https://media.licdn.com/dms/document/...", "coverImages": ["...", "...", "..."]}`. Video posts have `"video": {"url": "...", "thumbnail": "...", "duration": "PT3M21S"}`. A post that shares another post with a comment has `"sharedPost": {"text": "...", "url": "...", "authorName": "...", "authorUrl": "..."}`. Image, video and document links expire after a few days, so download the files you want to keep.

The **Posts** tab shows the posts as a table and the **Media** tab their images, videos and documents. The run report lists any company or post that could not be read, and why.

### How can I use LinkedIn company posts data?

- **Competitor analysis:** see how often competitors post, which topics get likes and comments, and which formats (video, images, documents) work
- **Social listening and PR:** keep an archive of a company's announcements, launches and hiring news with dates and engagement
- **Account-based sales:** follow what your target accounts announce before you reach out
- **Content research:** find the best-performing posts of the leading brands in your industry
- **Investor and market research:** track what companies in a sector talk about over time
- **AI and research datasets:** collect post texts and comments for sentiment analysis and trend studies

### How many posts can I get?

For every company you get its **latest posts** (the newest 10 or so) plus **older posts found on the public web**. For large brands that is often dozens to a few hundred posts going back years; for small companies that rarely post, it may be only a few. The newest posts found are picked first (sort by the `postedAt` column for a strict date order), but some older posts can be missing, so this scraper is best for "recent posts" and "a sample of the archive" rather than a complete history.

Set **Maximum posts** to 0 to get every post that can be found. Posts that were deleted or are shown only to logged-in members are skipped and listed in the run report.

### Use it from your own code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("automly/linkedin-company-posts-scraper").call(run_input={
    "targetUrls": ["https://www.linkedin.com/company/google/"],
    "maxPosts": 20,
    "postedLimit": "month",
})
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(post["postedAt"], post["likes"], post["commentsCount"], post["url"])
```

You can also run it on a schedule, for example every morning for your competitors' pages with **Posted within** set to the past 24 hours, and send new posts to Google Sheets, Slack or your CRM.

### ❓FAQ

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

No. The scraper uses only what LinkedIn shows to visitors who are not logged in, so it never touches your LinkedIn account and nothing can get restricted.

#### Can I paste company names instead of links?

Yes. Put them in **Company names**, e.g. `Notion` or `Amazon Web Services`. The name must match the company's name on LinkedIn. If it does not, the run report lists the closest names LinkedIn knows, so you can paste the right link. A company given both by name and by link is scraped once.

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

The company may have posted fewer public posts than that, some older posts may not be found on the web, or some posts were deleted or shown to logged-in members only. With a date range, only posts from that period count. The run report lists the posts that could not be read.

#### Can I get all the comments or the list of people who reacted?

You get the number of comments and reactions for every post, plus the first comments LinkedIn shows (up to 10) with their text, date, author and likes. LinkedIn shows the full comment list and the people who reacted only to logged-in members.

#### Can I scrape a person's posts?

This scraper reads company pages. For people's posts, use [LinkedIn Posts Scraper](https://apify.com/automly/linkedin-posts-scraper), which takes profile, company and post links.

#### Can I connect LinkedIn Company Posts Scraper to other tools or AI agents?

Yes. Start runs and download results with the Apify API or the Python and JavaScript clients, send results to Make, Zapier, n8n, Google Sheets or Slack with Apify integrations and webhooks, or let AI assistants and agents run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

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

This scraper collects only public data that LinkedIn shows to anyone without logging in. Posts and comments can still contain personal data, which is protected by laws such as the GDPR in Europe and the CCPA in California. You are responsible for having a legitimate reason to collect and use the data and for using it lawfully. If you are unsure, check with a lawyer. You can read more in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

This scraper is not affiliated with, endorsed by or connected to LinkedIn or Microsoft.

#### What happens if a company fails?

The other companies carry on and their posts are saved as they come. The run report lists every company and post that could not be read and why: not a company link, a name LinkedIn does not know, deleted, or not reachable.

#### Something isn't working. What should I do?

Open the **Issues** tab and tell us the input you used.

### Scrape more LinkedIn data

| Scraper | What it gets |
|---|---|
| [LinkedIn Posts Scraper](https://apify.com/automly/linkedin-posts-scraper) | Posts of people and companies, or single posts |
| [LinkedIn Post Search Scraper](https://apify.com/automly/linkedin-post-search-scraper) | Posts about any topic |
| [LinkedIn Company Scraper](https://apify.com/automly/linkedin-company-scraper) | Company pages: about, size, offices, followers |
| [LinkedIn Company Employees Scraper + Emails](https://apify.com/automly/linkedin-company-employees-scraper) | People who work at a company |

### ⭐ Your feedback

Ideas, missing fields or problems: open the **Issues** tab and we'll take a look. If LinkedIn Company Posts Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

## `targetUrls` (type: `array`):

LinkedIn company page links, one per line, e.g. https://www.linkedin.com/company/google/, or just the name at the end of the link (google).

## `companyNames` (type: `array`):

Company names to look up on LinkedIn, e.g. Notion or Amazon Web Services. The name must match a company's name on LinkedIn; if it does not, the run report lists the closest names so you can paste the right link.

## `maxPosts` (type: `integer`):

How many posts to save for each company, newest first, e.g. 50. Set 0 for every post that can be found.

## `postedLimit` (type: `string`):

Only posts published in this period.

## `postedLimitDate` (type: `string`):

Only posts published on or after this date, e.g. 2026-09-01 (UTC if no time zone), or a timestamp in milliseconds. With 'Posted within' too, the later of the two applies.

## `postedBeforeDate` (type: `string`):

Only posts published on or before this date, e.g. 2026-09-30 (the whole day counts; UTC if no time zone), or a timestamp in milliseconds. Together with 'Posted on or after' it gives a date range.

## `includeComments` (type: `boolean`):

Add the first comments shown on each post (up to 10) with their text, date, author name and likes. No extra charge.

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

Proxy settings. The default works for most runs, and other Apify Proxy choices run the same way. Your own proxy links are used as given.

## Actor input object example

```json
{
  "targetUrls": [
    "https://www.linkedin.com/company/google/",
    "https://www.linkedin.com/company/microsoft/"
  ],
  "maxPosts": 10,
  "postedLimit": "any",
  "includeComments": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `media` (type: `string`):

No description

## `results` (type: `string`):

No description

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

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

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

```

## MCP server setup

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