# LinkedIn Posts Scraper (`neuro-scraper/linkedin-posts-scraper`) Actor

LinkedIn Posts Scraper SD - LinkedIn Posts Scraper is a social media tool that extracts public LinkedIn posts from profiles, companies, post URLs and keyword searches: text, date, author, images, video, documents, reactions, comments. No login.

- **URL**: https://apify.com/neuro-scraper/linkedin-posts-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (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

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Posts Scraper

The LinkedIn Posts Scraper collects public LinkedIn posts and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the LinkedIn Posts Scraper your input, start it and get structured LinkedIn data for research, monitoring, analytics or lead generation. You pay only for the results you receive.

> ⭐ **Featured by Neuro Scraper: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. [Try the Facebook Reels Scraper →](https://apify.com/neuro-scraper/facebook-reels-scraper)

**LinkedIn Posts Scraper** exports public LinkedIn posts from profiles, company pages, single post links, keyword searches and mentions of a person or company: full text, exact date, author with headline and followers, images, video, PDF documents, articles, reactions, comment counts, reaction types, reposts, quote posts, hashtags, mentions and the first comments - plus an optional full author profile. No login, no cookies.

> **Also try:** [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export Facebook Reels with views, likes, comments, captions and video links from any page or profile.

LinkedIn is where companies announce products, founders share lessons and recruiters post openings. The LinkedIn Posts Scraper turns those public posts into a clean table: one row per post with more than 50 columns - text, date, author, media, engagement, comments and the author's public profile on request.

The LinkedIn Posts Scraper reads several profiles and company pages at the same time with a pool of parallel visitors, opens the posts' own pages in parallel when you ask for details or comments, and saves every row the moment it is ready: 21 posts with full details, comments and author profiles took 28 seconds in our test.

#### What can LinkedIn Posts Scraper do?

- Competitor monitoring: export what competing companies post every week, with reactions and comment counts.
- Thought-leader tracking: collect the posts and articles of founders, CEOs and creators in your niche.
- Content research: find posts about a keyword (e.g. product launch, b2b sales) and see which formats get engagement.
- Brand mentions: list the public posts that mention your company or a person (mentioningMember).
- Lead research: keep only posts written by authors with a job word in their headline (authorKeywords) and attach their public profile.
- AI and analytics: feed post text, hashtags and engagement into dashboards, LLM summaries or sentiment models.

#### Why use LinkedIn Posts Scraper?

- LinkedIn Posts Scraper needs no login, no cookies and no browser extension - you give it the input and it returns clean rows.
- LinkedIn Posts Scraper follows the list page by page until it reaches your limit or the end of the list.
- LinkedIn Posts Scraper gives every row the same columns in the same order, so CSV, Excel and JSON exports line up.
- LinkedIn Posts Scraper runs on the Apify platform: schedule it, call it from the API, connect it to Make, Zapier, n8n or Google Sheets.
- LinkedIn Posts Scraper charges only for the rows it saves, so a small test run costs a few cents.

### How to use LinkedIn Posts Scraper

1. Open LinkedIn Posts Scraper on Apify and click **Try for free** (or **Start**).
2. Fill in the input: LinkedIn profile, company or post links (or keywords to search posts), the maximum posts per link and the filters you need.
3. Optional: set the filters and options described below - each one is explained with an example.
4. Click **Start**. LinkedIn Posts Scraper logs every page it reads, so you can watch the progress in the log.
5. When the run finishes, open the **Output** tab and download the rows as JSON, CSV, Excel, XML or HTML - or read them through the API.

### Input options of LinkedIn Posts Scraper

Every option of LinkedIn Posts Scraper is listed here: what it does, how it works, the allowed values and default, an example and a tip.

#### LinkedIn profile, company or post URLs (`targetUrls`)

`targetUrls` - LinkedIn profile, company, single post or article links, one per line. A profile can also be written as its id (satyanadella). Profiles return their recent posts and articles, company pages their recent updates, post and article links one full row each. Example: https://www.linkedin.com/company/microsoft. Default: `["https://www.linkedin.com/in/satyanadella", "https://www.linkedin.com/company/google"]`. In LinkedIn Posts Scraper this option has the type array.

#### Search posts by keyword (optional) (`searchQueries`)

`searchQueries` - Keywords to find public LinkedIn posts, one search per line, e.g. product launch or "generative AI" hiring. Each post found is opened for its full text, exact date, author, media and counts. Max posts applies per keyword. Keyword searches are slower than profile or company links (about 5-10 s per post), so start with Max posts 10-20. Default: empty (not used). In LinkedIn Posts Scraper this option has the type array.

#### Max posts per profile, company or search (`maxPosts`)

`maxPosts` - The maximum posts per profile, company page, keyword search or mention search. A LinkedIn profile shows about 8 recent public posts plus its articles and a company page about 10; turn on Find more posts to go beyond that. With 3 links and maxPosts 10 you get up to 30 rows. Allowed values: whole numbers from 1 to 1000. Default: `10`. In LinkedIn Posts Scraper this option has the type integer.

#### Max posts in total (`maxItems`)

`maxItems` - The maximum posts of the whole run, over all links and searches together. The run stops as soon as this number is reached, so it is a safe cost cap. Allowed values: whole numbers from 1 to 100000. Default: `50`. In LinkedIn Posts Scraper this option has the type integer.

#### Posted within (`postedLimit`)

`postedLimit` - Keep only posts published (or reposted) within this time: the last hour, 24 hours, week, month, 3 months, 6 months or year. The check uses each post's exact publish date; keyword searches also look only in this window. Allowed values: `any`, `1h`, `24h`, `week`, `month`, `3months`, `6months`, `year`. Default: `"any"`. In LinkedIn Posts Scraper this option has the type string.

#### Posted on or after (optional) (`postedLimitDate`)

`postedLimitDate` - Keep only posts published on or after this date, e.g. 2026-09-01. Works together with Posted within (the later of the two limits wins). Default: empty (not used). In LinkedIn Posts Scraper this option has the type string.

#### Include reposts (`includeReposts`)

`includeReposts` - true keeps posts a profile or company reposted without adding text (X reposted this). The row shows the original post and its author, the reposter in repostedBy and the repost date in repostedAt; false leaves them out. Allowed values: `true` or `false`. Default: `true`. In LinkedIn Posts Scraper this option has the type boolean.

#### Include quote posts (`includeQuotePosts`)

`includeQuotePosts` - true keeps posts that share another post with added text; the shared original is in resharedPost and rootShare. false leaves quote posts out. Allowed values: `true` or `false`. Default: `true`. In LinkedIn Posts Scraper this option has the type boolean.

#### Include articles (`includeArticles`)

`includeArticles` - true also returns the LinkedIn articles a profile lists (Articles by ...) and article links found by searches, as rows with type article (title, cover image, text and counts). false returns posts only. Allowed values: `true` or `false`. Default: `true`. In LinkedIn Posts Scraper this option has the type boolean.

#### Content type (`contentType`)

`contentType` - Keep only posts with this kind of content: text only, images, videos, documents (PDF carousels) or articles. all keeps everything. Tip: start with a small run (about 20 rows) to check the output, then raise the limits; this option works together with every other option of LinkedIn Posts Scraper. Allowed values: `all`, `text`, `images`, `videos`, `documents`, `articles`. Default: `"all"`. In LinkedIn Posts Scraper this option has the type string.

#### Open each post page (`scrapePostDetails`)

`scrapePostDetails` - true opens every post's own page for the exact date, the full text (not cut), the native video file with poster and transcript, document details and the author's follower count. One extra page per post, read in parallel. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### Scrape comments (`scrapeComments`)

`scrapeComments` - true adds the comments shown publicly under each post (the first ~10: text, author with headline and link, date, reactions) nested in the post row. Opens each post page. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### Max comments per post (`maxComments`)

`maxComments` - Comments per post when Scrape comments is on, up to what LinkedIn shows publicly (about 10 per post). Tip: start with a small run (about 20 rows) to check the output, then raise the limits; this option works together with every other option of LinkedIn Posts Scraper. Allowed values: whole numbers from 1 to 100. Default: `10`. In LinkedIn Posts Scraper this option has the type integer.

#### Comments posted within (`commentsPostedLimit`)

`commentsPostedLimit` - Keep only comments written within this time (hour, day, week, month ...). Comments older than that are left out of the comments list. Allowed values: `any`, `1h`, `24h`, `week`, `month`, `3months`, `6months`, `year`. Default: `"any"`. In LinkedIn Posts Scraper this option has the type string.

#### Fetch document details (`fetchDocumentDetails`)

`fetchDocumentDetails` - For document (PDF carousel) posts, also read the document's details: the PDF link (transcribedDocumentUrl), page count and page images. One small extra request per document post. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### Find more posts (optional) (`searchMoreWithGoogle`)

`searchMoreWithGoogle` - When a profile or company page shows fewer posts than Max posts, the LinkedIn Posts Scraper searches for more public posts of the same author and opens each one until Max posts is reached. Slower (about 5-10 s per extra post); off by default. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### Include raw data (`includeRawData`)

`includeRawData` - true adds the field raw with the post's own structured data as published (schema.org JSON) - for advanced users who want every original value. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### More URLs (optional) (`urls`)

`urls` - An extra list that works exactly like LinkedIn URLs - handy when you paste links exported from another tool. Both lists are merged and duplicates are read once. Default: empty (not used). In LinkedIn Posts Scraper this option has the type array.

#### Posts mentioning a person or company (optional) (`mentioningMember`)

`mentioningMember` - Profile or company links (or plain names) whose mentions you want, one per line. The LinkedIn Posts Scraper reads the name from the profile or company page, looks for public posts with that name and keeps only posts that tag the member or name it in the text. Example: https://www.linkedin.com/company/openai. Max posts applies per entry. Default: empty (not used). In LinkedIn Posts Scraper this option has the type array.

#### Author keywords (optional) (`authorKeywords`)

`authorKeywords` - Keep only posts whose author name or headline contains one of these words, one per line, e.g. CEO, founder, recruiter or Microsoft. Useful with keyword searches to keep only posts by decision makers. Default: empty (not used). In LinkedIn Posts Scraper this option has the type array.

#### Sort keyword searches by (`sortBy`)

`sortBy` - How the posts of each keyword or mention search are ordered: relevance (best matches first, the default) or date (the posts found are returned newest first). Profile and company posts always come in the page's own order, newest first. Allowed values: `relevance`, `date`. Default: `"relevance"`. In LinkedIn Posts Scraper this option has the type string.

#### Scrape until date (optional) (`scrapeUntil`)

`scrapeUntil` - The same filter as Posted on or after, under the name other tools use: posts older than this date are left out. Default: empty (not used). In LinkedIn Posts Scraper this option has the type string.

#### Deep scrape (alias) (`deepScrape`)

`deepScrape` - The same as Open each post page, under the name other tools use. Tip: start with a small run (about 20 rows) to check the output, then raise the limits; this option works together with every other option of LinkedIn Posts Scraper. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### Context country (optional) (`contextCountry`)

`contextCountry` - Two-letter country code (US, DE, IN, GB ...): the run connects from that country, so dates, counts and language look as a visitor from there sees them. Empty = any country. Default: empty (not used). In LinkedIn Posts Scraper this option has the type string.

#### Author details (`profileScraperMode`)

`profileScraperMode` - short (default) returns the author block of each post: name, headline, profile link, photo, followers. full also opens the author's public profile once per author and adds authorProfile: headline, location, about, followers, connections, current position, experience and education (for a company: description, industry, size, website, headquarters, followers). One extra page per distinct author. Allowed values: `short`, `full`. Default: `"short"`. In LinkedIn Posts Scraper this option has the type string.

#### Raw data (alias) (`rawData`)

`rawData` - The same as Include raw data, under the name other tools use. Tip: start with a small run (about 20 rows) to check the output, then raise the limits; this option works together with every other option of LinkedIn Posts Scraper. Allowed values: `true` or `false`. Default: `false`. In LinkedIn Posts Scraper this option has the type boolean.

#### Proxy configuration (`proxyConfiguration`)

`proxyConfiguration` - The proxy the run connects through. Residential proxy is the default and recommended - LinkedIn slows down or blocks data-center addresses. Keep the default unless you know you need something else. Default: `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`. In LinkedIn Posts Scraper this option has the type object.

### Ready-to-copy input examples for the scraper

**Recent posts of two companies and a CEO, with details and comments**

```json
{
  "targetUrls": [
    "https://www.linkedin.com/company/microsoft",
    "https://www.linkedin.com/company/google",
    "https://www.linkedin.com/in/satyanadella"
  ],
  "maxPosts": 7,
  "maxItems": 21,
  "scrapePostDetails": true,
  "scrapeComments": true,
  "maxComments": 3
}
```

**Keyword search: newest posts about a product launch from the last week**

```json
{
  "searchQueries": [
    "product launch"
  ],
  "postedLimit": "week",
  "sortBy": "date",
  "maxPosts": 20
}
```

**Posts that mention a company, written by founders or CEOs, with the author's full profile**

```json
{
  "mentioningMember": [
    "https://www.linkedin.com/company/openai"
  ],
  "authorKeywords": [
    "founder",
    "CEO"
  ],
  "profileScraperMode": "full",
  "maxPosts": 20
}
```

**Only video posts of a company from the last 3 months, no reposts**

```json
{
  "targetUrls": [
    "https://www.linkedin.com/company/nvidia"
  ],
  "contentType": "videos",
  "postedLimit": "3months",
  "includeReposts": false,
  "searchMoreWithGoogle": true,
  "maxPosts": 30
}
```

### Output of the scraper

LinkedIn Posts Scraper saves one row per post. Every row has the columns below, in the same order. A column is empty (null) when the post does not show that value - the table says when that happens.

| Field | What it contains |
|---|---|
| `id` | LinkedIn's post id (activity id) - unique per post; for an article the article id. |
| `type` | post or article. |
| `postType` | regular, repost (shared without text) or quote (shared with added text). |
| `isRepost` | true when the row is a repost by the profile / company you gave. |
| `linkedinUrl` | Link to the post on LinkedIn. |
| `url` | The url of the post, as published (empty when not shown for this post). |
| `content` | The full text of the post (or the article's text / snippet). |
| `text` | The same text as content, under the column name other tools use. |
| `title` | The article title - only on article rows (empty on posts). |
| `authorName` | The author's name (person or company). |
| `author` | Author block: name, type (profile / company), publicIdentifier or universalName, linkedinUrl, info (headline or follower line), avatar, followers. |
| `authorProfile` | With profileScraperMode full: the author's public profile (headline, location, about, followers, connections, current position, experience, education) or company page (description, industry, size, website, headquarters, followers). Empty in short mode. |
| `postedAt` | timestamp (ms), date (ISO) and postedAgoShort (e.g. 3d) of the post; for a repost the date of the original post. |
| `repostedBy` | Who reposted it (for repost rows). |
| `repostedAt` | When it was reposted (for repost rows). |
| `postImages` | The post's images (url, size). |
| `video` | Native video: file url, poster, duration, transcript when published. |
| `document` | PDF carousel: title, page count, manifest / PDF link (with Fetch document details). |
| `article` | A shared link or article preview: url, title, subtitle, image. |
| `media` | One media summary: type (text / image / video / document / article), url, images, thumbnail, duration, title. |
| `resharedPost` | For quote posts: the shared original post (id, url, author, text, date, media). |
| `engagement` | likes (reaction total), comments (count) and reactionTypes (top reaction types shown). |
| `stats` | total_reactions, comments and reaction_types - the same numbers as engagement under another layout. |
| `hashtags` | Hashtags used in the post. |
| `mentions` | People and companies tagged in the post: name, type, linkedinUrl. |
| `comments` | With Scrape comments: the first comments (text, author, date, reactions, urn). |
| `fullUrn` | LinkedIn's full urn of the post (urn:li:ugcPost:... / urn:li:share:...). |
| `source` | How the row was found: profile, company, post, article or search. |
| `inputUrl` | The link from your input this post belongs to (empty for keyword searches). |
| `searchQuery` | The keyword or mention search the post was found with (empty for links). |
| `scrapedAt` | When the row was saved (UTC). |
| `postUrl` | The post url of the post, as published (empty when not shown for this post). |
| `urn` | The urn of the post, as published (empty when not shown for this post). |
| `datePublished` | The date published of the post, as published (empty when not shown for this post). |
| `postedAtISO` | The posted at iso of the post, as published (empty when not shown for this post). |
| `postedAtTimestamp` | The posted at timestamp of the post, as published (empty when not shown for this post). |
| `timeSincePosted` | The time since posted of the post, as published (empty when not shown for this post). |
| `authorHeadline` | The author headline of the post, as published (empty when not shown for this post). |
| `authorTitle` | The author title of the post, as published (empty when not shown for this post). |
| `authorProfileId` | The author profile id of the post, as published (empty when not shown for this post). |
| `authorProfileUrl` | The author profile url of the post, as published (empty when not shown for this post). |
| `authorType` | The author type of the post, as published (empty when not shown for this post). |
| `companyName` | The company name of the post, as published (empty when not shown for this post). |
| `companySlug` | The company slug of the post, as published (empty when not shown for this post). |
| `companyUrl` | The company url of the post, as published (empty when not shown for this post). |
| `headline` | The headline of the post, as published (empty when not shown for this post). |
| `image` | The image of the post, as published (empty when not shown for this post). |
| `images` | The images of the post, as published (empty when not shown for this post). |
| `mediaType` | The media type of the post, as published (empty when not shown for this post). |
| `mediaUrl` | The media url of the post, as published (empty when not shown for this post). |
| `numLikes` | The num likes of the post, as published (empty when not shown for this post). |
| `reactionCount` | The reaction count of the post, as published (empty when not shown for this post). |
| `numComments` | The num comments of the post, as published (empty when not shown for this post). |
| `commentsComplete` | The comments complete of the post, as published (empty when not shown for this post). |
| `commentsTruncated` | The comments truncated of the post, as published (empty when not shown for this post). |
| `reactionsTruncated` | The reactions truncated of the post, as published (empty when not shown for this post). |
| `rootShare` | The root share of the post, as published (empty when not shown for this post). |
| `attributes` | The attributes of the post, as published (empty when not shown for this post). |

### Which columns of the scraper can be empty

LinkedIn Posts Scraper fills every column the website publishes. These columns were measured as empty on some rows in our test runs, because the website itself does not publish that value for those post rows:

- `title` - only article rows have a title; posts have none (0 of 21 rows in the test were articles).
- `searchQuery` - filled only on rows found by a keyword or mention search; empty on rows from your links (all 21 test rows came from links).
- `inputUrl` - empty on rows found by a keyword search - they belong to no input link.
- `document` - only PDF carousel posts carry a document (1 of 21 test posts).
- `postImages` - only image posts and article cover images (2 of 21 test posts); text, video and document posts have no images.
- `images` - same as postImages.
- `image` - the first of postImages - empty when the post has no image.
- `video` - only video posts (12 of 21 test posts).
- `mediaUrl` - empty on text-only posts (no image, video, document or link).
- `article` - only posts that share a link or article preview.
- `resharedPost` - only quote posts (a post that shares another post with added text).
- `rootShare` - only reposts and quote posts.
- `repostedBy` - only repost rows (a profile or company that shared another post without text).
- `repostedAt` - only repost rows.
- `hashtags` - the author used no hashtag in the post (15 of 21 test posts).
- `mentions` - the post tags no person or company (14 of 21 test posts).
- `attributes` - the same list as mentions - empty when nobody is tagged.
- `companyName` - filled only when the author is a company page; empty for posts by people.
- `companySlug` - same as companyName.
- `companyUrl` - same as companyName.
- `authorHeadline` - empty when the author shows no headline publicly (3 of 21 test posts: reposted authors whose own profile shows none - their profiles were opened and checked).
- `authorTitle` - same value as authorHeadline.
- `headline` - the post's own structured-data headline - empty when the post page publishes none.
- `authorProfile` - empty in profileScraperMode short (the default); with full it is empty only when the author's page could not be read.
- `comments` - empty when Scrape comments is off, or the post has no public comment.
- `raw` - only with Include raw data.
- `commentsComplete` - only with Scrape comments.
- `commentsTruncated` - only with Scrape comments.

### Limits of the scraper

- A LinkedIn profile shows about 8 recent public posts plus its articles, and a company page about 10, to visitors without an account. More posts per author come from Find more posts, which finds public posts one by one and is slower.
- Keyword and mention searches open every post they find (about 5-10 s per post) and can return fewer posts than Max posts when few public posts match.
- Comments: the first ~10 per post are public; the rest of a long thread is shown only to signed-in members.
- The list of people who reacted to a post is not public - only the reaction total and the top reaction types are returned.
- Share / repost counts are not shown on public post pages.
- No email addresses or phone numbers are ever returned.

### How much does the scraper cost?

LinkedIn Posts Scraper uses pay-per-event pricing: you pay a small amount per saved row (the `result` event) plus the Apify platform usage. The price is $1.49 per 1,000 results on the free plan and goes down to $1.19 per 1,000 results on higher plans.

Worked example: 20 post rows cost about 20 / 1,000 x $1.49 = $0.03 in result events; 1,000 rows cost about $1.49; 10,000 rows cost about $14.90 (less on a higher plan). With the Apify free plan ($5 of monthly credit) you can test LinkedIn Posts Scraper many times before paying anything.

### Use the scraper through the API

You can start LinkedIn Posts Scraper from your own code with the Apify API or the Apify client. Python example:

```python
from apify_client import ApifyClient

client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('neuro-scraper/linkedin-posts-scraper').call(run_input={"targetUrls": ["https://www.linkedin.com/company/microsoft", "https://www.linkedin.com/company/google", "https://www.linkedin.com/in/satyanadella"], "maxPosts": 7, "maxItems": 21, "scrapePostDetails": true, "scrapeComments": true, "maxComments": 3})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

JavaScript example:

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/linkedin-posts-scraper').call({"targetUrls": ["https://www.linkedin.com/company/microsoft", "https://www.linkedin.com/company/google", "https://www.linkedin.com/in/satyanadella"], "maxPosts": 7, "maxItems": 21, "scrapePostDetails": true, "scrapeComments": true, "maxComments": 3});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

The rows of LinkedIn Posts Scraper are also available as a direct download link (JSON, CSV, Excel) from the run's dataset, and LinkedIn Posts Scraper can send a webhook when a run finishes.

### Integrations of the scraper

Connect LinkedIn Posts Scraper to Google Sheets, Slack, Airtable, Make, Zapier, n8n, LangChain or your own webhook. Schedule LinkedIn Posts Scraper daily or weekly in the Apify Console to keep a fresh copy of the data, and compare runs to spot new and changed post rows.

### FAQ about the scraper

#### Do I need a LinkedIn account or cookies to use the scraper?

No. The LinkedIn Posts Scraper never logs in and never asks for cookies, so your own LinkedIn account cannot be restricted. It returns what LinkedIn shows publicly.

#### How many posts can the scraper get from one profile?

A profile shows about 8 recent public posts and its articles; a company page about 10 updates. Turn on Find more posts to look for older public posts of the same author - the LinkedIn Posts Scraper opens each one it finds until Max posts is reached.

#### Can the scraper search posts by keyword?

Yes - put keywords in Search posts by keyword. Each keyword is one search; Max posts applies per keyword, and Posted within limits the time window. Sort by date returns the posts found newest first.

#### How do I find posts that mention my company?

Put the company link (or name) in Posts mentioning a person or company. The LinkedIn Posts Scraper reads the company name from its page and keeps only posts that tag it or name it in the text.

#### What does Author details = full add?

authorProfile: for a person the public headline, location, about, followers, connections, current position, experience and education; for a company the description, industry, size, website, headquarters and followers. Each author is opened once per run.

#### Why is the list of people who reacted missing?

LinkedIn shows the people who reacted only to signed-in members. The LinkedIn Posts Scraper returns the reaction total (numLikes, reactionCount, engagement.likes) and the top reaction types instead.

#### Does the scraper return emails or phone numbers?

No. The LinkedIn Posts Scraper never collects email addresses or phone numbers.

#### How fast is the scraper?

Profiles and company pages are read in parallel: 21 posts with details, comments and author profiles took 28 seconds in our test. Keyword searches take about 5-10 seconds per post.

#### Is it legal to use the scraper?

LinkedIn Posts Scraper collects only data that is shown publicly without logging in. It never collects email addresses or phone numbers. You are responsible for how you use the data - check the website's terms and the data-protection laws (GDPR, CCPA) that apply to you, and ask a lawyer if you are unsure.

#### What if the scraper returns fewer rows than I asked for?

LinkedIn Posts Scraper stops when the list ends or when the website shows no more post rows for your input. The final status message of the run says which targets stopped early and why. Try a broader input or more inputs to get more rows.

#### Can I request a feature for the scraper?

Yes - open an issue on the LinkedIn Posts Scraper page in the Apify Store and describe the field or filter you need.

### Why use the scraper

The LinkedIn Posts Scraper is a LinkedIn scraper and LinkedIn data extractor for anyone who needs public LinkedIn posts as clean data. The LinkedIn Posts Scraper handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the LinkedIn Posts Scraper for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.

- No login and no code: the LinkedIn Posts Scraper runs on Apify with one click or one API call.
- Pay per result: the LinkedIn Posts Scraper charges only for rows delivered - no monthly LinkedIn API fee.
- Complete fields: the LinkedIn Posts Scraper returns every public field, with a stable schema for automation.
- Integrations: connect the LinkedIn Posts Scraper to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.

### The scraper use cases

- Market research: the LinkedIn Posts Scraper collects LinkedIn posts at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the LinkedIn Posts Scraper on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the LinkedIn Posts Scraper gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the LinkedIn Posts Scraper keeps a fresh copy of LinkedIn data through an Apify schedule and a webhook.
- Analytics and dashboards: send the LinkedIn Posts Scraper output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the LinkedIn Posts Scraper returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the LinkedIn Posts Scraper turns public LinkedIn data into a dataset you can diff run by run.
- Automation workflows: connect the LinkedIn Posts Scraper to Zapier, Make or n8n so every new row starts your next step.

### How to run it with the API, Python and Node.js

Start the LinkedIn Posts Scraper from the Apify Console, or call it from code. The LinkedIn Posts Scraper returns its dataset as JSON, CSV or Excel. With the Apify API you can run the LinkedIn Posts Scraper from Python or Node.js, wait for it to finish and read the rows, which makes the LinkedIn Posts Scraper easy to plug into an automation, a data pipeline or a scheduled export.

1. Open the LinkedIn Posts Scraper on Apify and fill in the input (or send the same input as JSON to the API).
2. Start the LinkedIn Posts Scraper. Follow the run log while the LinkedIn Posts Scraper collects public LinkedIn data.
3. Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
4. Schedule the LinkedIn Posts Scraper to keep your LinkedIn data fresh for monitoring and analytics.

### Tips for better results

- Start small: run the LinkedIn Posts Scraper with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller LinkedIn Posts Scraper runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each LinkedIn Posts Scraper run adds to your LinkedIn data over time.
- Filter early: use the input filters of the LinkedIn Posts Scraper so you only pay for the LinkedIn posts you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every LinkedIn Posts Scraper result straight to Google Sheets, a CRM or a database.
- Watch the run log: the LinkedIn Posts Scraper writes what it is doing and why an item was skipped, so a surprising result is easy to explain.

### The scraper FAQ

### Get started

Open the LinkedIn Posts Scraper, paste your input and press Start. In a few minutes the LinkedIn Posts Scraper hands you clean LinkedIn data as JSON, CSV or Excel, ready for analytics, monitoring, research or your CRM. Questions or a missing field? Write to us from the LinkedIn Posts Scraper page on Apify - we answer fast and add features users ask for.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| ⭐ **[Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| [Snapchat Profile Scraper](https://apify.com/neuro-scraper/snapchat-profile-scraper) | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Scraper](https://apify.com/neuro-scraper/amazon-keyword-scraper) | Amazon data with all public fields, exported to JSON, CSV or Excel |
| [Instagram Reels Scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| [Facebook Video Details Scraper](https://apify.com/neuro-scraper/facebook-video-details-scraper) | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Scraper Advanced](https://apify.com/neuro-scraper/facebook-reels-scraper-advanced) | Facebook reels  advanced data with all public fields, exported to JSON, CSV or Excel |
| [Facebook Reels Downloader](https://apify.com/neuro-scraper/facebook-reels-downloader) | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| [Instagram Search Scraper](https://apify.com/neuro-scraper/instagram-video-scraper-advanced) | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Video Details Scraper](https://apify.com/neuro-scraper/tiktok-video-details-scraper) | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| [Instagram Hashtag Scraper](https://apify.com/neuro-scraper/instagram-reeel-scraper) | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |
| [TikTok Profile Scraper](https://apify.com/neuro-scraper/tiktok-profile-scraper) | TikTok profile data with all public fields, exported to JSON, CSV or Excel |
| [Amazon Best Sellers Scraper](https://apify.com/neuro-scraper/amazon-per-result-scraper) | Amazon best sellers with all public fields, exported to JSON, CSV or Excel |
| [Facebook Photos Scraper](https://apify.com/neuro-scraper/facebook-photo-posts-scraper) | Facebook photos with all public fields, exported to JSON, CSV or Excel |

# Actor input Schema

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

One per line. Profile (https://www.linkedin.com/in/satyanadella or just satyanadella), company (https://www.linkedin.com/company/google), single post (https://www.linkedin.com/posts/... or https://www.linkedin.com/feed/update/urn:li:activity:7514069962865500160/) or article (https://www.linkedin.com/pulse/...) links.

## `searchQueries` (type: `array`):

Keywords to find public LinkedIn posts, one search per line, e.g. b2b sales or product

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

Stop each profile, company, keyword search or mention search after this many posts. A LinkedIn profile shows about 8 recent public posts (plus its articles) and a company page about 10 - turn on Find more posts to go further.

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

Stop the whole run after this many posts.

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

Only posts published (or reposted) within this time. Checked against each post's exact date; keyword searches look only in this time window.

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

Only posts published on or after this date, e.g. 2026-09-01. Applied together with "Posted within".

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

Keep posts the profile or company reposted without adding text ("X reposted this"). The row shows the original post and the reposter in repostedBy.

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

Keep posts that share another post with added text. The shared original is in resharedPost.

## `includeArticles` (type: `boolean`):

Also return the LinkedIn articles listed on a profile ("Articles by ...") and article links found by searches, as rows of type "article".

## `contentType` (type: `string`):

Keep only posts with this kind of content (checked on each post).

## `scrapePostDetails` (type: `boolean`):

Read every post's own page for the exact date, the full text, the video file and its transcript and the author's follower count (one extra request per post). Posts found by URL or search are always read this way.

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

Add the comments LinkedIn shows to logged-out visitors (the first ~10 per post: text, author, date, reactions). Opens each post page.

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

Comments per post, up to what LinkedIn shows logged out (about 10; the rest is behind sign-in).

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

Only comments written within this time.

## `fetchDocumentDetails` (type: `boolean`):

For document (PDF carousel) posts, also read the document's manifest for the PDF link (transcribedDocumentUrl) and page images. One small extra request per document.

## `searchMoreWithGoogle` (type: `boolean`):

When a profile or company page shows fewer posts than Max posts (a logged-out page shows about 8-10), search for more of its public posts and open each one, until Max posts is reached.

## `includeRawData` (type: `boolean`):

Add the page's own schema.org data for each post (field raw) - for advanced use.

## `urls` (type: `array`):

Same as LinkedIn URLs - an extra list, handy when you paste from another tool.

## `mentioningMember` (type: `array`):

LinkedIn profile or company URLs (or names). Returns public posts that mention them (the mention tag or the name in the text). Max posts applies per entry.

## `authorKeywords` (type: `array`):

Keep only posts whose author name or headline contains one of these words (e.g. CEO, recruiter, Microsoft).

## `sortBy` (type: `string`):

relevance = best matches first; date = newest posts first (the posts found for each keyword are returned newest first).

## `scrapeUntil` (type: `string`):

Same as Posted on or after: stop at posts older than this date.

## `deepScrape` (type: `boolean`):

Same as Open each post: read every post's own page for the full text, exact date, media and counts.

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

Two-letter country code (e.g. US, DE, IN): see the posts as a visitor from that country sees them (the run connects from there).

## `profileScraperMode` (type: `string`):

short = the author block of the post; full = also the author's public profile (headline, location, about, followers, experience, education) or company page (industry, size, website, followers) in authorProfile.

## `rawData` (type: `boolean`):

Same as Include raw data.

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

Residential proxy is recommended and is the default (LinkedIn slows down or blocks data-center IPs).

## Actor input object example

```json
{
  "targetUrls": [
    "https://www.linkedin.com/in/satyanadella",
    "https://www.linkedin.com/company/google"
  ],
  "maxPosts": 5,
  "maxItems": 50,
  "postedLimit": "any",
  "includeReposts": true,
  "includeQuotePosts": true,
  "includeArticles": true,
  "contentType": "all",
  "scrapePostDetails": false,
  "scrapeComments": false,
  "maxComments": 10,
  "commentsPostedLimit": "any",
  "fetchDocumentDetails": false,
  "searchMoreWithGoogle": false,
  "includeRawData": false,
  "sortBy": "relevance",
  "deepScrape": false,
  "profileScraperMode": "short",
  "rawData": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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/in/satyanadella",
        "https://www.linkedin.com/company/google"
    ],
    "maxPosts": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/linkedin-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/in/satyanadella",
        "https://www.linkedin.com/company/google",
    ],
    "maxPosts": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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