# LinkedIn Company Posts Scraper - Latest Posts, No Login (`socialscrapers/linkedin-company-posts-scraper`) Actor

LinkedIn company posts scraper: paste company page links or names and get their latest public posts with text, date, reactions and comment counts, images, videos, documents, hashtags and optional top comments. No login or cookies. Ideal for monitoring. JSON, CSV, Excel. $1.00 per 1,000 posts.

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

## Pricing

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

**LinkedIn Company Posts Scraper** gets the latest public posts of LinkedIn company pages, with no LinkedIn account, cookies or login. Add company page links, page IDs or company names, and every post comes back with its full text, exact publication time, reactions and comment counts, images, video, documents, shared links, hashtags and tagged pages, plus its top comments if you want them. It costs **$1.00 per 1,000 posts**.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does LinkedIn Company Posts Scraper do?

- **Built for company pages.** Paste `linkedin.com/company/…` links (showcase pages work too), page IDs such as `nasa`, or company names. Links to a page's tabs and country domains are fine.
- **The latest posts, as LinkedIn shows them to visitors.** Each company page shows logged-out visitors its most recent posts, usually 9 or 10. The Actor reads each of them in full. Run it on a schedule and you collect every new post as it appears: ideal for monitoring competitors, partners or your own brand.
- **The whole post.** Text with line breaks, exact date and time, reactions and comment counts, images, video (MP4 link, cover and length), documents and carousels, shared articles, reshared posts, hashtags, tagged people and pages, and outside links.
- **Top comments.** Turn on **Include top comments** to also get the comments LinkedIn shows under each post, each as its own item with text, author, date and reactions.
- **Filters.** Only posts newer than a date or an age (`24 hours`, `7 days`), the company's own posts only or its reposts too, and a maximum per company.
- **Pay only for what you get.** Posts filtered out by your settings, posts that are not public and pages that cannot be read cost nothing. The run stops cleanly at the spending limit you set.

### What data can you extract?

One item per post (`type: "post"`), and one per comment (`type: "comment"`) when comments are on. Every field is always present; `null` or `[]` means LinkedIn shows nothing for it.

| Field | Description |
|---|---|
| `postId`, `url`, `urn`, `shareUrn` | The post's ID, link and URNs |
| `text` | Full text of the post |
| `companyName`, `companyUrl`, `authorFollowers`, `authorImageUrl` | The company page that posted it, its followers and logo |
| `authorName`, `authorType`, `authorProfileUrl`, `authorPublicId`, `authorHeadline` | The author as shown on the post (the original author for a repost) |
| `postedAt`, `postedAtTimestamp`, `postedAgo`, `isEdited` | Exact publication time (ISO 8601 and milliseconds), the age LinkedIn shows, edited or not |
| `reactionsCount`, `commentsCount` | Engagement counts |
| `images`, `video`, `document`, `article` | Media and shared links |
| `resharedPost`, `isRepost`, `repostedBy` | The post it reshares; whether the company reposted it, and which company |
| `hashtags`, `mentions`, `links` | Hashtags, tagged people and pages, outside links |
| `source`, `inputUrl`, `scrapedAt` | Where it was found, the entry of your input it came from, when it was scraped |

Comment items carry `commentId`, `commentUrn`, `postId`, `postUrl`, `text`, `authorName`, `authorProfileUrl`, `authorType`, `authorImageUrl`, `postedAt`, `postedAgo`, `reactionsCount` and `isReply`.

### How to scrape LinkedIn company posts

1. Open the Actor and paste company page links, IDs or names into **Company pages**, one per line.
2. Set **Max posts per company**, and **Only posts newer than** if you only want recent posts.
3. Turn on **Include top comments** if you need comments.
4. Click **Start**, then export the posts as JSON, CSV, Excel, XML or HTML, or read them through the API.

### How much does it cost?

You pay per item saved: **$1.00 per 1,000 posts**, and **$1.00 per 1,000 comments** when you turn comments on. Apify subscribers pay less: **Silver −10%** ($0.90 per 1,000) and **Gold, Platinum and Diamond −20%** ($0.80 per 1,000). Each run also carries a small Actor start charge of $0.0007 (one per GB of memory, at least one).

| Job | Results | Price (no discount) |
|---|---|---|
| The latest 10 posts of 100 companies | 1,000 posts | $1.00 |
| The latest posts of 20 competitors, with up to 5 top comments each | about 200 posts + 1,000 comments | about $1.20 |
| A daily check of 30 company pages, posts of the last day only | about 30 posts a day | about $0.03 a day |

Posts older than your date, reposts you leave out, posts that are not public and pages that cannot be read are free. To cap spending, set a **maximum total charge** in the run options: the Actor stops cleanly once it is reached and keeps everything collected so far.

### Input example

```json
{
  "companies": [
    "https://www.linkedin.com/company/nasa",
    "microsoft",
    "https://www.linkedin.com/showcase/teslacharging/"
  ],
  "maxPostsPerSource": 10,
  "postedAfter": "7 days",
  "includeReposts": false,
  "includeComments": true,
  "maxCommentsPerPost": 5
}
```

### Output example

```json
{
  "type": "post",
  "postId": "7531771257290141697",
  "url": "https://www.linkedin.com/posts/microsoft_thanksgiving-is-built-around-a-full-table-activity-7531771257290141697-VYRk",
  "urn": "urn:li:activity:7531771257290141697",
  "shareUrn": "urn:li:ugcPost:7531771256312864768",
  "text": "Thanksgiving is built around a full table, but for many of our neighbors in Washington state, that remains a challenge. Food Lifeline helps make sure food gets where it's needed most…",
  "authorName": "Microsoft",
  "authorHeadline": null,
  "authorType": "company",
  "authorProfileUrl": "https://www.linkedin.com/company/microsoft",
  "authorPublicId": "microsoft",
  "authorImageUrl": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_100_100/…",
  "authorFollowers": 29608590,
  "companyName": "Microsoft",
  "companyUrl": "https://www.linkedin.com/company/microsoft",
  "postedAt": "2026-11-26T17:30:01.280Z",
  "postedAtTimestamp": 1795714201280,
  "postedAgo": "1d",
  "isEdited": false,
  "reactionsCount": 196,
  "commentsCount": 21,
  "repostsCount": null,
  "images": [],
  "video": {
    "url": "https://dms.licdn.com/playlist/vid/v2/D4E10AQFuSNiJowNqgA/mp4-720p-30fp-crf28/…",
    "thumbnailUrl": "https://media.licdn.com/dms/image/v2/D4E10AQFuSNiJowNqgA/videocover-high/…",
    "durationSeconds": 96
  },
  "document": null,
  "article": null,
  "resharedPost": null,
  "hashtags": [],
  "mentions": [{ "name": "Food Lifeline", "url": "https://www.linkedin.com/company/food-lifeline", "type": "company" }],
  "links": ["https://msft.it/6046xKDLe"],
  "isRepost": false,
  "repostedBy": null,
  "source": "company",
  "inputUrl": "microsoft",
  "scrapedAt": "2026-11-27T18:17:54.127Z"
}
```

A comment, when comments are on:

```json
{
  "type": "comment",
  "commentId": "7531779562582749184",
  "commentUrn": "urn:li:comment:(urn:li:ugcPost:7531771256312864768,7531779562582749184)",
  "postId": "7531771257290141697",
  "postUrl": "https://www.linkedin.com/posts/microsoft_thanksgiving-is-built-around-a-full-table-activity-7531771257290141697-VYRk",
  "text": "Great to see this kind of local support.",
  "authorName": "Alex Example",
  "authorProfileUrl": "https://www.linkedin.com/in/alex-example",
  "authorType": "person",
  "authorImageUrl": null,
  "postedAt": "2026-11-26T18:03:01.418Z",
  "postedAgo": "1d",
  "reactionsCount": 5,
  "isReply": false,
  "inputUrl": "microsoft",
  "scrapedAt": "2026-11-27T18:17:54.127Z"
}
```

### Use cases

- **Competitor monitoring:** what rival companies announce, how often they post and which posts land.
- **Brand and partner tracking:** follow customers, partners and investors' company pages on a schedule.
- **Content benchmarking:** compare formats (video, documents, images, links), posting times and engagement across a sector.
- **Market intelligence:** collect product launches, hiring news and events as companies publish them.
- **Comment research:** read what people answer under the posts that matter to you.

### API, Python, JavaScript & integrations

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/linkedin-company-posts-scraper').call({
    companies: ['https://www.linkedin.com/company/nasa', 'microsoft'],
    postedAfter: '7 days',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/linkedin-company-posts-scraper").call(run_input={
    "companies": ["https://www.linkedin.com/company/nasa"],
    "includeComments": True,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["type"], item["postedAt"], item["reactionsCount"], (item["text"] or "")[:80])
```

Connect it to **Make, Zapier, n8n, Google Sheets** and other tools with [Apify integrations](https://docs.apify.com/platform/integrations), get notified with [webhooks](https://docs.apify.com/platform/integrations/webhooks), run it on a [schedule](https://docs.apify.com/platform/schedules), or connect it through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp).

### Limits

- **The latest posts only.** LinkedIn shows logged-out visitors the most recent posts of a company page, usually 9 or 10, and the Actor never logs in. For a full history, schedule the Actor so each new post is collected as it appears; for an older post, use its link with **LinkedIn Posts Scraper** by Social Scrapers.
- **Some pages show no posts to visitors.** A few companies' pages show no updates to logged-out visitors; the run says so for that input and charges nothing.
- **School pages.** LinkedIn shows university and school pages only to signed-in members, so they are skipped with a note in the log and cost nothing.
- **No keyword or hashtag search.** LinkedIn shows post search only to signed-in members.
- **Comments.** The top comments LinkedIn shows on a post page, usually up to 10; `commentsCount` gives the full count. Repost counts are not shown to visitors, so `repostsCount` is always `null`.
- **Media links expire** after some time; download images, videos and documents promptly if you need them.
- **A run with 0 results still succeeds.** When a page shows no posts, nothing matches your date or a page cannot be read, the run ends as Succeeded with a status message naming each input and why, and nothing is charged for it.

### FAQ

**Is it legal to scrape LinkedIn company posts?**
The Actor reads only public pages that LinkedIn shows to any visitor without logging in, and it is not affiliated with or endorsed by LinkedIn. Posts and comments can contain personal data (names, profile links, photos), so data-protection laws such as the GDPR and the CCPA apply to how you store and use them. You are responsible for using the data lawfully, including LinkedIn's terms; when in doubt, ask a lawyer.

**Do I need a LinkedIn account or cookies?**
No. The Actor works logged out and never asks for your account.

**How many posts do I get per company?**
The latest posts LinkedIn shows on the page to visitors: usually 9 or 10. Set **Max posts per company** to `0` for all of them, or lower it to save only the newest.

**How do I monitor companies for new posts?**
Create a schedule that runs the Actor every day with **Only posts newer than** set to `1 day` (or every week with `7 days`). Each run returns only the posts published since then, and older posts are not charged.

**Can I scrape a person's profile posts?**
This Actor reads company pages only. For people's profiles and single post links, use **LinkedIn Posts Scraper** by Social Scrapers.

**How fast is it?**
In our tests, two company pages with 5 posts each and 2 top comments per post took about 5 seconds.

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Transcript Scraper](https://apify.com/socialscrapers/tiktok-transcript-scraper) | Video Captions and Subtitles to Text |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Email Scraper](https://apify.com/socialscrapers/instagram-email-scraper) | Emails and Phones from Public Profiles |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Events Scraper](https://apify.com/socialscrapers/facebook-events-scraper) | Public Events, Dates and Hosts |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Company Scraper](https://apify.com/socialscrapers/linkedin-company-scraper) | Company Details, Size and Website |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [LinkedIn Post Comments Scraper](https://apify.com/socialscrapers/linkedin-post-comments-scraper) | Top Comments, No Login |
| [LinkedIn Posts Scraper](https://apify.com/socialscrapers/linkedin-posts-scraper) | Public Posts, Reactions and Comments |
| [LinkedIn Profile Posts Scraper](https://apify.com/socialscrapers/linkedin-profile-posts-scraper) | Latest Posts, No Login |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Best Sellers Scraper](https://apify.com/socialscrapers/amazon-bestsellers-scraper) | Top 100 Rankings and Prices |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Amazon Search Scraper](https://apify.com/socialscrapers/amazon-search-scraper) | Products, Prices and Ratings by Keyword |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Airbnb Reviews Scraper](https://apify.com/socialscrapers/airbnb-reviews-scraper) | Guest Reviews, Ratings and Hosts |
| [Airbnb Scraper](https://apify.com/socialscrapers/airbnb-scraper) | Listings, Prices, Reviews and Hosts |
| [Booking.com Scraper](https://apify.com/socialscrapers/booking-scraper) | Hotels, Prices and Reviews |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [eBay Scraper](https://apify.com/socialscrapers/ebay-scraper) | Listings, Prices, Item Details and Sellers |
| [Etsy Scraper](https://apify.com/socialscrapers/etsy-scraper) | Products, Prices, Shops and Reviews |
| [Google Shopping Scraper](https://apify.com/socialscrapers/google-shopping-scraper) | Products, Prices and Sellers |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |
| [MercadoLibre Scraper](https://apify.com/socialscrapers/mercadolibre-scraper) | Products, Prices and Sellers |
| [Similarweb Scraper](https://apify.com/socialscrapers/similarweb-scraper) | Website Traffic, Rank and Visits |
| [Tripadvisor Reviews Scraper](https://apify.com/socialscrapers/tripadvisor-reviews-scraper) | Hotels, Restaurants and Attractions |
| [Tripadvisor Scraper](https://apify.com/socialscrapers/tripadvisor-scraper) | Hotels, Restaurants and Reviews |
| [Yelp Scraper](https://apify.com/socialscrapers/yelp-scraper) | Businesses, Reviews, Ratings and Contacts |
| [Zillow Property Scraper](https://apify.com/socialscrapers/zillow-property-scraper) | Home Details, Zestimate and History |
| [Zillow Scraper](https://apify.com/socialscrapers/zillow-scraper) | Listings, Prices, Zestimates and Agents |

# Actor input Schema

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

One per line: company page links (linkedin.com/company/…; showcase pages work too), page IDs as they appear in the link (nasa, microsoft) or company names. Each gives the latest posts LinkedIn shows logged-out visitors on that page, usually 9 or 10.

## `maxPostsPerSource` (type: `integer`):

How many of each company's latest posts to save, newest first. 0 saves every post LinkedIn shows there (usually 9 or 10). You pay per post saved.

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

Only posts published on or after this day. Pick a date or an age, or type one: a date (<code>2026-01-31</code>, <code>31/01/2026</code>, <code>Jan 31 2026</code>) or an age such as <code>7 days</code>, <code>2w</code> or <code>3 months</code>. Older posts are not read and not charged.

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

Also save the posts the companies reposted from others (marked with isRepost and repostedBy). Turn off for each company's own posts only.

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

Also save the top comments LinkedIn shows logged-out visitors on each post (usually up to 10), each as its own item with its text, author, date and reactions. Charged per comment saved.

## `maxCommentsPerPost` (type: `integer`):

Comments to save from each post. 0 saves every comment the post page shows.

## `maxConcurrency` (type: `integer`):

How many LinkedIn pages are loaded at the same time. Lower it if you see many refused requests in the log; runs with less than 512 MB of memory load fewer.

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

Apify Proxy (the default) is recommended. The scraper picks Apify Proxy's tier itself: datacenter first, residential only for pages that are refused. Your own proxy URLs are used as given.

## `companyPagesOnly` (type: `boolean`):

Every entry names a company page.

## Actor input object example

```json
{
  "companies": [
    "https://www.linkedin.com/company/nasa",
    "https://www.linkedin.com/company/microsoft"
  ],
  "maxPostsPerSource": 5,
  "includeReposts": true,
  "includeComments": false,
  "maxCommentsPerPost": 10,
  "maxConcurrency": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "companyPagesOnly": true
}
```

# Actor output Schema

## `results` (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": [
        "https://www.linkedin.com/company/nasa",
        "https://www.linkedin.com/company/microsoft"
    ],
    "maxPostsPerSource": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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