# LinkedIn Post Search Scraper (No Cookies, Bulk) (`pratikdani/linkedin-post-search-scraper`) Actor

Search LinkedIn posts by keyword (with AND/OR/NOT), date, author job title, author company, company page, mentions and content type. No cookies or LinkedIn account. Get post text, author, date, reactions, comments and media for every result.

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

## Pricing

from $1.20 / 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 Post Search Scraper (No Cookies, Bulk)

Search **LinkedIn posts** by keyword and filters, and export every matching post with its author, text, date, reactions, comments and media. No LinkedIn account, cookies or browser extension needed, so there's no account to get restricted.

Use it as a **LinkedIn post search API** or **LinkedIn hashtag search**: scrape LinkedIn posts that match any keyword, hashtag, author or company, as JSON, CSV or Excel.

Use it to find buying signals ("looking for a CRM"), hiring posts, funding announcements, competitor mentions, content ideas or creators in your niche.

### What can this LinkedIn post scraper do?

- **Search like LinkedIn does:** keywords with quoted phrases and `AND`, `OR`, `NOT` (up to 5 operators per query).
- **Run many searches in one run.** One query per line; they run in parallel.
- **Filter results:**
  - posted within the past 24 hours, week or month;
  - newest first or by relevance;
  - content type (images, videos, documents, LinkedIn Live, job posts);
  - author's current job title;
  - author's current company;
  - posts by a company page or by specific people;
  - posts that mention a company or a person.
- **Filters without keywords:** for example, every recent post by people working at a given company.
- **Optional full author profiles:** experience, education, skills and more for every post author (extra charge per profile).
- **No duplicate charges.** A post that matches two of your searches is returned, and charged, once per run.
- **Searches that fail or find nothing are free.** The reason is saved in the `FAILED_INPUTS` record.

### What data do you get?

| Field | Example |
| --- | --- |
| Post URL and id | https://www.linkedin.com/feed/update/urn:li:activity:... |
| Text | We just closed our Series A... |
| Posted date | 2026-11-24 10:24:39 (plus relative time and timestamp) |
| Author name, headline, profile or page URL, photo | Jane Doe, Founder at Example Labs |
| Reactions by type, comment count | 128 reactions, 23 comments |
| Media | images, videos, documents, article title and link |
| Repost flag | false |
| Search query that found it | "series A" AND fintech |

Need everyone who engaged with a post? Pass the post URLs to our [LinkedIn Post Comments Scraper](https://apify.com/pratikdani/linkedin-post-comments-scraper) and [LinkedIn Post Reactions Scraper](https://apify.com/pratikdani/linkedin-post-reactions-scraper).

### Full profiles (optional add-on)

Tick **Add full profiles (extra charge)** and each post author also gets their complete LinkedIn profile under `author_full_profile`:

- work experience and education, with dates;
- skills, certifications, languages, honors, projects and volunteering;
- location, follower and connection counts;
- current company details: name, LinkedIn URL, website and industry;
- open-to-work, hiring, premium and creator flags, and more.

It's the same data our [LinkedIn Profile Scraper](https://apify.com/pratikdani/linkedin-people-profile-scraper) returns.

- **Charged as a separate "Full profile" event,** on top of the post itself.
- **Once per person per run:** ten posts by the same author cost one profile.
- **Only when the profile is found.** Posts by company pages are skipped, and those and failed lookups are free. Each item's `full_profile_status` says what happened (`ok`, `not_found`, `error` or `skipped`).

### How to use it

1. Enter one or more **search keywords**, or leave them empty and use only filters.
2. Choose **Max posts per input** (100 by default; 0 means all, about 1,000 per search).
3. Optionally set the date window, sort order, content type and author or company filters.
4. Click **Start** and download the posts as JSON, CSV, Excel or HTML, or send them to Google Sheets, Make, Zapier, n8n or Clay.

### Input example

```json
{
  "searchQueries": ["\"series A\" AND fintech", "\"looking for\" AND CRM"],
  "maxItems": 200,
  "sortBy": "date_posted",
  "datePosted": "past-week",
  "authorTitle": "Founder",
  "scrapeFullProfiles": false
}
```

Company filters take numeric LinkedIn company ids, for example `1441` for Google. Our [LinkedIn Company Scraper](https://apify.com/pratikdani/linkedin-company-profile-scraper) returns the id for any company URL.

### Output example

```json
{
  "search_query": "\"series A\" AND fintech",
  "url": "https://www.linkedin.com/feed/update/urn:li:activity:7500000000000000000",
  "text": "Big news: Example Labs has raised a $12M Series A to...",
  "posted_date": "2026-11-24 10:24:39",
  "posted_at": "6d",
  "author": {
    "full_name": "Jane Doe",
    "headline": "Founder & CEO at Example Labs",
    "url": "https://www.linkedin.com/in/janedoe-example",
    "type": "user"
  },
  "social_activity_counts_insight": {
    "total_reaction_count": 128,
    "like_count": 101,
    "praise_count": 20,
    "num_comments": 23
  },
  "media_content": [{ "type": "image", "url": "https://media.licdn.com/..." }],
  "reposted": false
}
```

### How much does it cost?

You pay per post returned, with lower prices on higher Apify plans; see the **Pricing** tab. Full author profiles, if you turn them on, are charged per profile found. Searches that fail or match nothing are never charged. Set a **maximum cost per run** and the Actor stops cleanly when it's reached.

**Free plan:** Apify free-plan users can scrape up to 1,000 posts in total to try the Actor. Any paid Apify plan removes the limit.

### Use it as a LinkedIn post search API

Run it from your code and get the posts back in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/pratikdani~linkedin-post-search-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["\"looking for\" AND CRM"], "maxItems": 50}'
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("pratikdani/linkedin-post-search-scraper").call(run_input={"searchQueries": ["\"looking for\" AND CRM"], "maxItems": 50})
for post in client.dataset(run.default_dataset_id).iterate_items():
    print(post["url"], "|", post["text"][:80])
```

It also works with **Make, Zapier, n8n, Clay, Google Sheets** and the **Apify MCP server**, so AI agents (Claude, ChatGPT, Cursor) can call it directly.

### Run it on a schedule

Schedule a search daily with **Posted within: past 24 hours** to **monitor buying signals, brand mentions or competitors** on LinkedIn, and route new posts to Slack, a sheet or your CRM.

1. Run the Actor once with the input you want and check the results.
2. Click **Save as a new task**, then **Schedule** it (daily, weekly or monthly).
3. Add an **integration** to send each run's results where you work: Google Sheets, Slack, HubSpot, Make, Zapier, n8n, Clay or a webhook to your own app.

Each scheduled run is billed like any other run: only for the results it returns.

### FAQ

**Why not use the official LinkedIn API?**
LinkedIn's official APIs only open to approved partners, and only for data about your own account, your own company page or members who signed in to your app. There is no official endpoint to search public posts by keyword. This Actor fills that gap: call it over HTTP from any language, get JSON back, and pay only for results, with no partner approval and no LinkedIn login.

**Can I search LinkedIn posts by hashtag?**
Yes. Put the hashtag in the search keywords, for example `#fintech`, alone or combined with other words.

**How do I get the people who engaged with the posts I found?**
Pass the post URLs to our [LinkedIn Post Comments Scraper](https://apify.com/pratikdani/linkedin-post-comments-scraper) and [LinkedIn Post Reactions Scraper](https://apify.com/pratikdani/linkedin-post-reactions-scraper).

**Do I need a LinkedIn account?** No. The Actor never logs in, and no cookies are used.

**Why do I get at most about 1,000 posts per search?** LinkedIn stops serving results deep into a search. Split broad searches by date window, keyword or author filters.

**Is it legal to scrape LinkedIn posts?** The Actor collects publicly visible posts. Posts can contain personal data, which is protected by the GDPR and similar laws. Only collect what you have a legitimate reason to use, and check with a lawyer if you're unsure.

**Something isn't working?** Open an issue on the **Issues** tab with your run link.

### Related LinkedIn scrapers

- [LinkedIn Post Comments Scraper](https://apify.com/pratikdani/linkedin-post-comments-scraper): everyone who commented on a post.
- [LinkedIn Post Reactions Scraper](https://apify.com/pratikdani/linkedin-post-reactions-scraper): everyone who liked or reacted to a post.
- [LinkedIn Profile Posts Scraper](https://apify.com/pratikdani/discover-linkedin-people-posts): every post a person has published.
- [LinkedIn Company Posts Scraper](https://apify.com/pratikdani/discover-linkedin-company-posts): every post a company page has published.
- [LinkedIn Profile Scraper](https://apify.com/pratikdani/linkedin-people-profile-scraper): full profiles from LinkedIn URLs.

# Actor input Schema

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

One search per line, like LinkedIn's post search. Supports quoted phrases and AND, OR, NOT (up to 5 operators per query). Leave empty to search by the filters below only.

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

How many posts to scrape for each input. 0 means all of them (up to 1,000). LinkedIn shows about 1,000 posts per search.

## `scrapeFullProfiles` (type: `boolean`):

Also fetch the complete LinkedIn profile of each post author: experience, education, skills, certifications, languages, location, follower and connection counts, current company details and more, under `author_full_profile`. Charged as a separate 'Full profile' event, once per person per run and only when the profile is found. Company pages and failed lookups are free.

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

Order of results. For newest posts, also set 'Posted within' for the most reliable results.

## `datePosted` (type: `string`):

Only posts published within this window.

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

Only posts with this kind of attachment.

## `authorTitle` (type: `string`):

Only posts whose author's current title matches, e.g. CTO.

## `authorCompanyIds` (type: `array`):

Numeric LinkedIn company ids. Returns posts by people who currently work there, e.g. 1441 for Google.

## `fromCompanyIds` (type: `array`):

Numeric LinkedIn company ids. Returns posts the company page itself published.

## `fromProfiles` (type: `array`):

LinkedIn profile ids (ACoAA...) or profile URLs containing one.

## `mentionsCompanyIds` (type: `array`):

Posts that tag these companies. Numeric LinkedIn company ids.

## `mentionsProfiles` (type: `array`):

Posts that tag these people. LinkedIn profile ids (ACoAA...) or profile URLs containing one.

## `concurrency` (type: `integer`):

How many inputs to scrape at the same time.

## Actor input object example

```json
{
  "searchQueries": [
    "\"series A\" AND fintech",
    "hiring AND \"product manager\""
  ],
  "maxItems": 100,
  "scrapeFullProfiles": false,
  "sortBy": "relevance",
  "datePosted": "any",
  "concurrency": 3
}
```

# Actor output Schema

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

Posts scraped in this run, one per dataset item.

## `failedInputs` (type: `string`):

Inputs that failed or returned nothing (not charged), with the reason.

# 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": [
        "\"series A\" AND fintech",
        "hiring AND \"product manager\""
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pratikdani/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": [
        "\"series A\" AND fintech",
        "hiring AND \"product manager\"",
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pratikdani/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": [
    "\\"series A\\" AND fintech",
    "hiring AND \\"product manager\\""
  ],
  "maxItems": 100
}' |
apify call pratikdani/linkedin-post-search-scraper --silent --output-dataset

```

## MCP server setup

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