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

Scrape LinkedIn company posts and business page posts with full public text, dates, media, engagement and comments. Does LinkedIn allow scraping of public posts? No login or cookies needed. Filter by date, follow reposts and export JSON or CSV.

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

## Pricing

$2.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.

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

Export LinkedIn company posts with their full public text, publication dates, authors, images, videos, documents and engagement counts. Add optional public comment previews and filter posts by date. Start with a company URL and choose how many recent posts you need.

### LinkedIn company posts for research and monitoring

Use this Actor to monitor company announcements, compare recent publishing activity, collect examples for content research, or export a company’s public posts into a spreadsheet. You can supply several company URLs in one run. The maximum post count applies separately to each target, making a short comparison across companies easy to control.

The Actor accepts the twelve input field names used by harvestapi/linkedin-company-posts. Its post and comment rows preserve those familiar field names and add consistent fields such as `post_id`, `post_url`, `text`, `posted_at`, `source` and `fetched_at`. These additions make it easier to join exports from several data sources without replacing the original fields.

### Input

Set `targetUrls` to one or more LinkedIn company, school, showcase or individual post URLs. Public personal profile feeds are unavailable. For a first run, use the company URL `https://www.linkedin.com/company/apify` and set `maxPosts` to 3. That requests up to three recent public posts from that company.

`maxPosts` defaults to 10 per target. A value of zero requests all posts available from the public company feed. The source typically exposes approximately 70 recent posts, and the period covered depends on the company’s posting frequency. This Actor cannot promise 500 posts or a full year of history. When the available public history ends before the requested amount, the output reports a `source_limit` warning and ends the collection.

Use `postedLimit` for a relative window: any, 1h, 24h, week, month, 3months, 6months or year. A month means 30 days and a year means 365 days. Use `postedLimitDate` for an exact lower boundary, supplied as an ISO date, date and time, or a millisecond timestamp string. If both filters are present, the stricter lower boundary applies. A repost is filtered using its repost date, so a newly shared older post can still appear within a recent window.

`includeReposts` and `includeQuotePosts` default to true. Switch either off to exclude that kind of shared content. `contextCountry` accepts any, US, GB, DE or FR. This setting does not filter post language: Spanish and other non-English posts remain eligible.

Set `scrapeComments` to true to include the public comment preview. `maxComments` defaults to 5 per post; zero requests all available preview comments. The preview contains at most approximately ten comments per post and does not represent a complete discussion. `commentsPostedLimit` applies a separate relative date filter to those comments. `scrapeReactions` and `maxReactions` are accepted for input compatibility, but individual reaction records require signed-in access and are unavailable. The output includes a clear warning when they are requested.

### Output

The dataset contains post rows and optional comment rows. The fields `type` and `_type` distinguish them. Posts include `id`, `linkedinUrl`, `content`, `author`, `postedAt`, `engagement`, `postImages` and available media blocks. Videos can include a public video URL and thumbnail; document posts can include a title, page count and cover images. Shared posts include their original text together with available `repost`, `repostedAt` and `repostedBy` details.

A real post row, shortened to its main fields, looks like this (run against `https://www.linkedin.com/company/apify` with `maxPosts: 3` and `scrapeComments: true`):

```json
{
  "type": "post",
  "id": "7527751142060089344",
  "post_url": "https://www.linkedin.com/posts/apify_every-agent-needs-proper-tools-and-apify-activity-7527751142060089344-k-Z_",
  "content": "Every agent needs proper tools, and Apify MCP lets yours pick the right one. Thanks for the shoutout, Chris Kim 🙌",
  "posted_at": "2026-11-15T15:15:31.118Z",
  "author": {
    "name": "Apify",
    "type": "company",
    "linkedinUrl": "https://www.linkedin.com/company/apify",
    "followers": 49365
  },
  "engagement": { "likes": 7, "comments": 0, "shares": null },
  "hashtags": []
}
```

Optional comment rows include `id`, `postId`, `commentary`, `createdAt`, `engagement` and public actor details. The same preview comments are also nested in their parent post. A comment becomes a separate row only when its identity can be verified from the public source. No identifiers or missing profile details are invented.

If an individual post page is unavailable while its company feed card remains public, the Actor returns that real preview with `content_complete: false` and a `post_preview` warning. Its text may be incomplete, its date comes from the activity identifier, and comment details are unavailable. No preview is labelled as complete post text.

Some familiar fields are unavailable to public visitors. Share counts are null, reaction categories have no individual counts, and personal reaction lists are empty. A missing field is different from a measured zero. Each target carries coverage counters (`feed_cards`, `delivered`, `dropped_by_date`, `dropped_by_type`, `fetch_failed`, `source_exhausted`) and warnings that explain unavailable posts, exhausted history, date exclusions and remaining continuation work. The complete run output and summary are linked from the run’s output section.

### Pagination and larger collections

The Actor follows continuation pages automatically. API users calling the product directly receive `next_cursor` and `has_more`; they should send the cursor with all original input fields unchanged. Each continuation is bounded in duration, and cursors expire after one hour. Date windows keep the original run’s reference time across continuation pages. Activity identifiers prevent duplicate posts when source pages overlap.

### Pricing and free results

Only delivered post rows are counted by the post event. Public preview comments are included. Empty results, excluded posts and unavailable reaction records have no result charge, and the Actor never adds a “No posts found” row to your dataset. Check the Pricing tab for the current published rate; the repository’s reference rate is $2 per 1000 posts and is not a promise of the current marketplace price.

The free account limit is ten post groups per run, including the available comments of those posts. A smaller `maxPosts` still applies. The Actor asks for a review only after a successful, non-empty delivery with complete source collection. Failed or empty runs do not trigger that request.

### Frequently asked questions

#### Can I collect a company’s entire history?

The public company feed exposes a limited recent history, usually around 70 posts. The exact amount and date range vary. A `source_limit` warning identifies that boundary. Choose this Actor when recent activity is sufficient for your task.

#### Why are there fewer posts than maxPosts?

The company may have fewer public posts, date or repost filters may exclude them, or an individual post may be unavailable. Read the run warnings and coverage counters to distinguish these cases. `maxPosts` is an upper bound per target, not a guarantee that the source contains that many matching posts.

#### What if a company URL does not exist?

A target that resolves to no public company page contributes no rows and reports a `company_not_found` warning, so a typo shows up immediately instead of looking like a quiet success. A run whose targets all end that way returns empty output, and empty output carries no post charge.

#### Does it require a LinkedIn login?

No LinkedIn login or cookies are required. It collects publicly visible information. Signed-in history, complete comment discussions and individual reaction profiles are outside its public coverage.

#### Does LinkedIn allow scraping of company posts?

This Actor reads only what a visitor without an account can already see on the public company feed: the same posts, dates, media and engagement counts you would scroll past yourself. It does not bypass a login wall, and it does not collect private profiles or messages. Check the terms that apply to your own use case before you publish or resell the data.

#### Can I export the results?

Yes. Download the dataset in JSON, CSV or Excel using the run’s export options. JSON preserves nested author, media and comment structures. Select specific columns when exporting a spreadsheet.

### Measured comparison

On 16 November 2026, ten fixed inputs were tested against harvestapi/linkedin-company-posts: six companies with three posts each, a company with comment previews, one video post, an empty future date window and a 20-post company collection. Both returned technically successful runs in all ten cases. This Actor's product handler returned posts on 9/9 non-empty inputs; the reference Actor returned posts on 5/9. The deliberately empty date filter returned no posts on both.

The product returned 42 posts, including 39 with complete details and three explicitly labelled public previews. The reference returned 13 posts. Non-empty values across eight shared fields averaged 83,0% for the product and 81,7% for the reference, weighted by post count. All 42 product posts contained an identifier, URL, text, date and author name.

Median measured duration was 17,1 seconds for the product handler and 63,2 seconds for the reference Actor. This comparison measures different execution boundaries: the reference includes Actor startup, while the product figure measures its handler. It is one sample per input and does not establish a sustained reliability rate. The 20-post product collection took 84,3 seconds across two bounded continuation calls.

The reference's settled cost was $0,02750 across all ten runs, or $2,115 per 1000 delivered rows including empty-query costs. The deliberately empty filter cost $0,00105 on the reference. This product's repository reference is $2 per 1000 posts with comments included; its published price is determined by the Pricing tab. A live product Actor charge was not measured in this build comparison.

# Actor input Schema

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

LinkedIn company, school, showcase or individual post URLs. Public personal profile feeds are unavailable.

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

Maximum posts per target, default 10. Zero collects all publicly available recent posts (approximately 70 per company).

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

Fetch posts no older than X time. Options: '24h', 'week', 'month'.

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

Scrape posts from now up to and including this date. It supports the [Date time string format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format). For example, "2011-10-10", or "2011-10-10T14:48:00.000+09:00" or a timestamp: "628021800000"

## `includeQuotePosts` (type: `boolean`):

Include quote posts (shared posts with comments). By default, all posts are scraped.

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

Include reposts (shared posts without comments). By default, all posts are scraped.

## `scrapeReactions` (type: `boolean`):

Accepted for compatibility. Individual reactions require signed-in access and are unavailable; a warning is returned.

## `maxReactions` (type: `integer`):

Maximum number of reactions to scrape per post. Default is 5.

## `scrapeComments` (type: `boolean`):

Scrape comments of posts.

## `maxComments` (type: `integer`):

Maximum number of comments to scrape per post. Default is 5.

## `commentsPostedLimit` (type: `string`):

Fetch comments no older than X time. Options: '24h', 'week', 'month'.

## `contextCountry` (type: `string`):

Set the context country for LinkedIn. This can affect the content you see on LinkedIn, as it may vary by region.

## `cursor` (type: `string`):

Signed next_cursor from the previous response. Keep all other input fields unchanged. The Apify actor follows this automatically.

## Actor input object example

```json
{
  "targetUrls": [
    "https://www.linkedin.com/company/apify"
  ],
  "maxPosts": 5,
  "includeQuotePosts": true,
  "includeReposts": true,
  "maxReactions": 5,
  "maxComments": 5
}
```

# Actor output Schema

## `items` (type: `string`):

One dataset row per delivered post or preview comment.

## `output` (type: `string`):

Status, coverage counters, warnings, charges and next_cursor to continue.

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

Delivery and charging status of this run.

# 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/apify"
    ],
    "maxPosts": 5,
    "maxReactions": 5,
    "maxComments": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("headofactors/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/apify"],
    "maxPosts": 5,
    "maxReactions": 5,
    "maxComments": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("headofactors/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/apify"
  ],
  "maxPosts": 5,
  "maxReactions": 5,
  "maxComments": 5
}' |
apify call headofactors/linkedin-company-posts-scraper --silent --output-dataset

```

## MCP server setup

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