# LinkedIn Post Search Scraper - Posts by Keyword, No Cookies (`headofactors/linkedin-post-search-scraper`) Actor

Search public LinkedIn posts by keyword, author and date. Get post text, authors, publication dates, media links, engagement counts and public comment previews, ready to export as JSON, CSV or Excel. No LinkedIn login or cookies required.

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

## Pricing

from $2.00 / 1,000 linkedin 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 Post Search Scraper

LinkedIn post search for public posts: find text, authors, publication dates, media links, engagement counts and public comment previews. Start with a search phrase and export structured results without supplying a LinkedIn login or cookies.

This actor searches publicly indexed post pages and reads the information LinkedIn exposes to anonymous visitors. It is useful for researching discussions, finding relevant authors, collecting examples of industry language and tracking public announcements. Coverage follows the public index, so a successful search does not mean every matching LinkedIn post has been collected. Read the coverage notes before using this actor for time-sensitive monitoring.

### Use cases for LinkedIn post search

- **Topic and trend research.** Collect the public posts that mention a product, a technology, a conference or an event, then read what is actually being said instead of sampling a handful of profiles by hand.
- **Finding authors and quotes.** Every row carries the author name, profile or company URL and the publication date, so a discussion you found can turn into a list of people to contact.
- **Monitoring announcements.** Follow the public posts of selected companies or people with `authorUrls` and a date window, and use the coverage information to tell a quiet week from a gap in the public index.
- **Collecting real language examples.** Pull wording, hashtags and media from posts that match a phrase, for social listening, message writing or research into how a topic is discussed.
- **Feeding your own pipeline.** Continue large searches with `next_cursor`, keep the original input unchanged, and export JSON, CSV or Excel whenever you need the rows somewhere else.

### LinkedIn post search input

Use `searchQueries` for one or more phrases. The familiar `maxPosts`, `sortBy`, `postedLimit`, `postedLimitDate`, `authorUrls`, `contentType`, `startPage`, `scrapePages` and comment options are accepted. The default maximum is 20 posts per query. Setting `maxPosts` to zero requests up to 100 posts per query; values above 100 are also capped at 100, with an explicit warning. A run can therefore contain fewer posts than requested when suitable public pages run out.

For a simple phrase, every returned post must contain all its query words in the post text or post URL. Matching ignores case and accents. This check removes irrelevant candidates before delivery. Advanced Boolean expressions follow the public search index and do not receive the same simple all-words check. Use short, concrete phrases when relevance matters most.

Set `postedLimit` to `1h`, `24h`, `week`, `month`, `3months`, `6months`, `year` or `any`. You can also supply `postedLimitDate` as an ISO date, an ISO timestamp or a string containing milliseconds since the Unix epoch. Both date restrictions apply together. Month and year windows represent 30 and 365 days respectively. Date restrictions remain active when `sortBy` is `date`.

Public indexes can take days to discover a post. Searches for the last hour or day may therefore return few or no results. Date sorting orders the candidates within each discovered page; it does not reproduce LinkedIn's complete newest-first search. Use a broader window if you are exploring a topic rather than monitoring a breaking event.

### Authors, media and supported filters

Supply `authorUrls` to restrict results to public profile or company authors. Combine an author URL with a phrase to narrow the topic, or leave the phrase list empty to search that author's indexed posts. Author matching checks the author link on the post page itself.

Supported media filters are `images`, `videos` and `documents`. Results can include image URLs, a video URL with its thumbnail and captions URL where available, document title and page count, shared article links and the original author and text of a repost. Media links are supplied by the source and can expire.

LinkedIn-specific company, industry, author-headline and mention facets cannot be applied reliably to public pages. The corresponding fields remain accepted for input compatibility, and each requested unsupported filter produces a warning naming that field. The same applies to `jobs`, `live_videos` and `collaborative_articles`. Check warnings whenever you use advanced filters.

### Output and downloadable results

Each dataset record has `type` and `_type`, identifying a `post` or `comment`. Post fields include `id`, `entityId`, `linkedinUrl`, `content`, `author`, `postedAt`, `engagement`, `postImages`, optional `postVideo`, `document`, `article` and `repost` blocks. The equivalent core names include `post_id`, `post_url`, `text`, `posted_at`, `source`, `platform` and `fetched_at`. Export the dataset as JSON, CSV or Excel using Apify's dataset export controls.

An abbreviated post row, taken verbatim from a real run with `searchQueries: ["apify"]` and `maxPosts: 10` (long strings shortened only by leaving fields out, never by changing a value):

```json
{
  "type": "post",
  "is_post": true,
  "id": "7469776511206645761",
  "post_id": "7469776511206645761",
  "linkedinUrl": "https://www.linkedin.com/posts/apify_step-1-open-claude-step-2-add-apify-as-activity-7469776511206645761-f5BM",
  "content": "Step 1: open Claude\nStep 2: add Apify as a connector\nStep 3: find jobs in plain English - no API key, no scraper setup required.\n\nAnushk S. walks through the exact setup in under 2 minutes, including the specific prompts to run a LinkedIn job search through Claude. The same pattern works for lead research, competitive intelligence, and anything that needs structured web data pulled into Claude on demand. Full walkthrough below 👇",
  "author": {
    "name": "Apify",
    "linkedinUrl": "https://www.linkedin.com/company/apify",
    "type": "company",
    "followers": 49008
  },
  "author_handle": "apify",
  "posted_at": "2026-06-08T15:45:01.986Z",
  "postedAt": { "date": "2026-06-08T15:45:01.986Z", "timestamp": 1780933502008 },
  "likes": 28,
  "comments_count": 3,
  "query": { "search": "apify", "page": 1 }
}
```

The same run reported `"coverage": [{"query": "apify", "candidates": 14, "delivered": 10, "dropped_by_date": 0, "dropped_by_type": 0, "dropped_by_query": 0, "dropped_by_author": 0, "members_only": 0, "fetch_failed": 0}]` and `"billing": {"posts": 10, "comments": 0}`, so ten delivered posts and four candidates that were not.

Visible reaction totals and comment totals are included when present. Individual reaction participants, share counts, private profile details and mention offsets are unavailable. Missing information is left absent or null as appropriate; it is never reconstructed as an invented value. `is_post` and `is_comment` identify which rows contribute to the corresponding delivery counters.

Enable `scrapeComments` to request the public comment preview, limited to ten comments per post. With `postNestedComments` enabled, comments are nested in the post's `comments` array. Otherwise, comments with a verifiable source ID appear as separate records before their post. Public previews do not contain the complete conversation. Date filtering of comments uses `commentsPostedLimit` independently of the post's date window.

Coverage and warning details explain discarded candidates, unavailable pages and exhausted searches. They distinguish an actual lack of matches from a temporary source failure. Large searches continue automatically through the actor's pagination. API integrations can follow `next_cursor` while keeping the original input unchanged.

### Pricing and delivery limits

Only delivered post records count toward the post event. Preview comments are included without a separate comment charge. Discarded candidates and unavailable posts do not create result charges. A run with no matching posts has no result charge, but every run still carries one run start event: the start fee applies even when the search returns nothing. That run start event and any platform start charge are shown together in Apify's current pricing panel. Check that panel before starting a large run: it is the authority for the live price.

Free-plan runs are limited to ten post groups in total. Preview comments belonging to those posts remain included. A requested maximum is an upper bound, and does not guarantee that the public source contains enough matching posts.

### LinkedIn post search compared with the alternatives

**LinkedIn's own search bar.** Searching inside LinkedIn needs an account, shows only what that member is allowed to see and offers no export. This actor reads the same public post pages anonymously and returns rows you can download and process. The trade-off is discovery: the public index follows pages it has already found, so it can lag behind what a signed-in member sees that same minute.

**HarvestAPI's LinkedIn Post Search.** That actor is the established Store result for this search term, and its input field names and the common output field names are preserved here, so an integration that already speaks that vocabulary keeps working: `searchQueries`, `maxPosts`, `sortBy`, `postedLimit`, `postedLimitDate`, `authorUrls`, `contentType`, `startPage`, `scrapePages`, `scrapeComments`, `postNestedComments`, plus `linkedinUrl`, `content`, `author`, `postedAt` and `engagement` on the way out. Differences are honest ones: filters that public pages cannot support are accepted and reported as warnings instead of being silently ignored, comment collections are previews rather than complete threads, and continuation uses this actor's own `next_cursor`.

**Other no-cookie LinkedIn tools in the Store.** Several actors search LinkedIn posts without a login; most of them specialise in one shape, such as posts of one profile, comment extraction or Sales Navigator URLs. This one takes the phrase-first search: several queries in one run, strict word and date checks, media filters, author restriction, and coverage counters that separate "no match" from "page unavailable".

**Building it yourself.** You can hand-build the same page reading, but you then own index discovery, redirects, retries and rate limits. The actor packages that work behind one input, one dataset and a documented price.

### LinkedIn post search benchmark against the current top result

Ten fixed inputs — plain, date-sorted, one-week and 24-hour phrase searches, a video search, a document search, a hashtag, a Dutch phrase, a two-query run and an author-restricted search — were sent to this actor and to `harvestapi/linkedin-post-search`, the current Store result for this search term, on 14 November 2026:

| | This actor | harvestapi/linkedin-post-search |
|---|---|---|
| Runs that finished and delivered posts | 10 of 10 | 10 of 10 |
| Delivered posts | 76 | 80 |
| Core fields carried a value | 81.9% | 77.9% |
| Median wall clock per run | 25.6 s | 3.6 s |
| Cost per 1,000 delivered posts | $2.00 at this product's per-post rate | $2.02 actually charged across the ten runs |

Nine of the ten inputs reached the requested maximum per query here; the 24-hour window delivered one matching post for this actor and ten for the leader. The two wall-clock figures were taken in different environments — the leader's runs on Apify, this actor's runs in our own test environment rather than on the platform — so they record what each measurement did, not a like-for-like speed comparison of two published Actors. The cost figures are different kinds too: the leader's number is what its ten runs actually charged, including its start and no-result events, while this actor's figure is its per-post rate, with the run start event described under Pricing; the pricing panel on this page shows what a run costs today.

"Core fields carried a value" is the share of delivered rows in which each of `id`, `linkedinUrl`, `content`, `author`, `postedAt`, `postImages`, `engagement` and `comments` holds a non-empty value, weighted by delivered rows. An empty list counts as empty, so the figure describes coverage of the rows that were delivered rather than the completeness of every conversation, and both actors were scored with the same eight fields on the same inputs.

### Frequently asked questions

#### Does this actor require a LinkedIn account?

No. It reads publicly available post pages. Posts restricted to signed-in members cannot be delivered. A warning identifies unavailable discovered posts.

#### Why are recent results missing?

Public indexes have a discovery delay. An exact date filter can only remove older posts; it cannot make undiscovered recent posts appear. Try a week or month window and inspect the coverage information.

#### Can I move an existing input to this actor?

The established input field names and common output field names are preserved. Some advanced features have a smaller public-data equivalent. In particular, unsupported facets produce warnings, individual reactions are unavailable and comments are previews. Review those differences before changing an existing integration.

#### How can I report a problem or support the actor?

Include your input, run URL and a description of the missing or unexpected result in an issue. After a successful run, please leave a review describing your use case and whether the returned fields met your needs.

# Actor input Schema

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

Public post search phrases. Simple phrases require every query word in the post text or URL; advanced syntax follows the public search index.

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

Maximum posts per query. Default 20. Zero and values above 100 are capped at 100 with a warning.

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

Keep only posts within this age window. Applied together with postedLimitDate. Public indexing can delay discovery of recent posts.

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

Earliest allowed publication date, applied together with postedLimit. Accepts an ISO date, ISO timestamp, or a string containing Unix milliseconds.

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

Relevance or date within each discovered public index page; not a complete LinkedIn-wide newest-first search.

## `authorUrls` (type: `array`):

List of LinkedIn profile or company URLs to scrape. Example: `https://www.linkedin.com/in/williamhgates` will fetch posted or re-posted content by Bill Gates.

## `authorsCompanies` (type: `array`):

Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.

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

Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.

## `mentioningCompany` (type: `array`):

Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.

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

Filter public posts by images, videos or documents. Jobs, live videos and collaborative articles are accepted with a warning because they cannot be recognized reliably.

## `authorsIndustryId` (type: `array`):

Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.

## `authorKeywords` (type: `string`):

Accepted for input compatibility. This LinkedIn facet is unavailable on public post pages and is not applied; the response includes a warning naming this field.

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

Short returns visible public author fields. Main is accepted with a warning and returns the same public fields; expanded profiles are unavailable.

## `startPage` (type: `integer`):

First public index page to request, starting at 1. Public index pages contain seven candidate links.

## `scrapePages` (type: `integer`):

Number of public index pages per query; seven links per page. Zero or absent uses 15 pages.

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

Accepted for compatibility. Individual reaction participants are unavailable on public post pages; requesting them produces a warning.

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

Accepted for compatibility. Individual reactions are unavailable and no reaction records are delivered or charged.

## `reactionsProfileScraperMode` (type: `string`):

Accepted for compatibility. Individual reaction participants and their expanded profiles are unavailable.

## `postNestedReactions` (type: `boolean`):

Accepted for compatibility. Individual reaction records are unavailable.

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

Return the public comment preview, up to ten comments per post. This does not return the complete discussion.

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

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

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

Maximum public preview comments per post. Default 10; zero and values above 10 are limited to the public preview of at most ten.

## `commentsProfileScraperMode` (type: `string`):

Short returns the public commenter name. Main is accepted with a warning; expanded commenter profiles are unavailable.

## `postNestedComments` (type: `boolean`):

Keep preview comments in each post instead of separate dataset records. Separate records require a verifiable source comment ID.

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

Opaque continuation token from next_cursor. Keep all other input fields unchanged.

## Actor input object example

```json
{
  "searchQueries": [
    "apify"
  ],
  "maxPosts": 10,
  "profileScraperMode": "short",
  "startPage": 1,
  "reactionsProfileScraperMode": "short",
  "commentsProfileScraperMode": "short"
}
```

# 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 = {
    "searchQueries": [
        "apify"
    ],
    "maxPosts": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("headofactors/linkedin-post-search-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 = {
    "searchQueries": ["apify"],
    "maxPosts": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("headofactors/linkedin-post-search-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 '{
  "searchQueries": [
    "apify"
  ],
  "maxPosts": 10
}' |
apify call headofactors/linkedin-post-search-scraper --silent --output-dataset

```

## MCP server setup

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