# LinkedIn Post Search Scraper | Leads & Hiring | $0.29/1K (`monkey.d.scraping/linkedin-post-search-scraper`) Actor

Find people on LinkedIn by what they post: buyers asking for help, companies hiring, candidates open to work. Search public posts by keyword, country and date, no login. Author headline, profile URL, followers, up to 10 commenters. From $0.29/1K. 领英帖子搜索采集

- **URL**: https://apify.com/monkey.d.scraping/linkedin-post-search-scraper.md
- **Developed by:** [Monkey D. Scraping](https://apify.com/monkey.d.scraping) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.29 / 1,000 posts

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 Post Search Scraper — Leads, Hiring, Posts by Keyword & Comments | 领英帖子搜索采集

Search **public LinkedIn posts by keyword** and get one clean row per post: full text, author with headline and followers, publish date, reactions, comments count, **up to 10 comments**, hashtags, mentions, images and **video links with transcripts** when LinkedIn provides them. Filter by country and date, sort by relevance or newest first. No LinkedIn account, no cookies.

**Find people by what they post.** Buyers asking for a tool, managers describing a problem you solve, companies posting `#hiring`, candidates `open to work`: every post comes with the author's name, profile URL, headline and followers, plus up to 10 commenters with their profile URLs. A ready list of people to contact for **lead generation, sales prospecting and recruiting**.

**From $0.29 per 1,000 posts**, platform usage and comments included. One post = one dataset row: you pay only for the posts you receive.

Also known as: LinkedIn lead scraper, LinkedIn lead generation tool, LinkedIn prospecting tool, LinkedIn recruiting and candidate sourcing tool, LinkedIn #hiring posts scraper, find people on LinkedIn by topic, LinkedIn post scraper, LinkedIn keyword search scraper, LinkedIn content search, LinkedIn posts API, LinkedIn social listening tool, LinkedIn brand mention monitor, LinkedIn hashtag scraper, LinkedIn post export to CSV.

[Italiano](#italiano) · [Español](#español) · [Français](#français) · [Deutsch](#deutsch) · [Português](#português) · [简体中文](#领英帖子搜索采集器简体中文) · [繁體中文](#領英貼文搜尋擷取器繁體中文)

### Find leads and candidates on LinkedIn by what they post

Job-title searches give you everyone with a title. Post search gives you the people who **talk about the problem right now**, which is why replies come faster. Type what they would write:

| You are looking for | Example keywords | Who you get |
|---|---|---|
| Buyers with a need | `"looking for a CRM"`, `"any recommendations for" lab software` | Authors asking for help, and the people answering them |
| A niche of professionals | `lab automation`, `LIMS`, `#labmanager` | People working in that field, with their headline |
| Companies hiring | `#hiring data engineer`, `"we're hiring" frontend` | Recruiters and hiring managers, with company pages |
| Candidates | `"open to work" UX designer`, `#opentowork python` | Candidates announcing they are available |
| Event attendees | `"Web Summit"` with a date range | Everyone who posted about the event |

Each row has `authorName`, `authorUrl`, `authorType` (person or company), `authorHeadline`, `authorFollowers` and `comments[].authorName` / `comments[].authorUrl`. Use **Sort by: Most recent** to reach people while the need is fresh.

This Actor searches posts, not profiles: it finds people who have published or commented on public posts about your keywords. It does not return email addresses or phone numbers.

#### Use it from Claude, ChatGPT and other AI agents

Connect Apify to your AI assistant through the [Apify MCP server](https://mcp.apify.com) and ask in plain words, for example: *"Use monkey.d.scraping/linkedin-post-search-scraper to find 30 people in the US who posted about lab automation this month, and list name, headline and profile URL."* The agent fills the input for you; a small request finishes in seconds and costs a fraction of a cent.

### Why this LinkedIn post scraper?

- **No login, no cookies.** Your LinkedIn account is never involved.
- **Rich rows.** About 30 fields per post: text, author name, URL, type (person or company), headline, followers and photo, date, reactions, comments count, post type (text, image, video, repost, article), hashtags, mentions, images, video URL, duration and transcript, shared post.
- **Comments included at no extra cost.** Up to 10 public comments per post with author, date and likes.
- **Proof of relevance.** Every row says where the keyword was found (`text`, `hashtag`, `author`, `mention`, `comment`, `transcript`). With **Keep only posts that contain the keyword** on, posts that do not mention it are skipped and never charged.
- **Deep.** Up to 3,000 posts per keyword, across all LinkedIn country sites and across the years — not only the last few months.
- **Fast.** 2 keywords × 150 posts finished in under a minute; 600 posts for one keyword in about 3 minutes (measured on the Apify platform, November 2026). Posts start landing in the dataset within seconds.
- **Niche keywords too.** Brand and product names with few mentions still return every public post we can find.
- **Real-time API.** Use the Server tab to get posts directly in an HTTP response, for apps and AI agents.

### How it compares

| | This Actor | Lofomachines LinkedIn Keyword Post Search | Lofomachines LinkedIn Post Search Scraper |
|---|---|---|---|
| Price per 1,000 posts | **$0.29–0.49, usage included** | $0.35–0.59 + $0.001 per keyword + extras | from $2 |
| Comments in the row | **up to 10, included** | no | no |
| Author headline and followers | **both** | no | headline only |
| Video URL, duration, transcript | **yes** | no | video flag only |
| Where the keyword was found | **yes** | no | AI relevance score |
| Date range filter | **any period** | last 12 months | yes |
| Country filter | yes | yes | yes |
| Fields per post | **about 30** | 16 | 25 |
| Real-time server API | yes | yes | — |

Prices were read from the public Store pages and fields from sample datasets of each Actor on November 15, 2026.

### Use cases

- **Lead generation and sales prospecting** — authors and commenters with headline, profile URL and followers who post about the problem you solve.
- **Recruiting and candidate sourcing** — `#hiring` posts from companies, `open to work` posts from candidates, people active in a skill or niche.
- **Brand and competitor monitoring** — every public post that mentions your brand, product or competitor, with reactions and comments.
- **Social listening and market research** — what professionals say about a topic, in a country, in a date range.
- **Event and trade-show tracking** — search the event name with its dates and collect every recap and announcement.
- **Content research** — top posts for a topic, their format (video, image, article) and engagement.
- **AI and RAG pipelines** — clean JSON with full text, comments and video transcripts.

### Input

| Field | What it does |
|---|---|
| **Keywords** | Topics, brands, people or phrases, one per line (up to 100 per run). Use quotes for exact phrases. |
| **Posts per keyword** | How many posts to collect for each keyword (default 50, up to 3,000). |
| **Country** | Worldwide or one of 40 markets. |
| **Sort by** | Relevance or Most recent. |
| **Published after / before** | Optional date range. |
| **Post URLs** | Optional: read specific posts by URL, with or without keywords. |
| **Keep only posts that contain the keyword** | On by default. |
| **Include comments** / **Include author headline** | On by default. |

#### Example input

```json
{
  "keywords": ["renewable energy", "\"green hydrogen\""],
  "maxPostsPerKeyword": 200,
  "country": "any",
  "sortBy": "recent",
  "publishedAfter": "2026-01-01"
}
```

### Output

One row per post. Example (shortened):

```json
{
  "postUrl": "https://www.linkedin.com/posts/example-energy_renewable-energy-activity-7460407758576762880-abcd",
  "postId": "7460407758576762880",
  "postType": "video",
  "text": "Our new solar park is live: 120 MW of renewable energy for 40,000 homes…",
  "authorName": "Example Energy",
  "authorType": "company",
  "authorUrl": "https://www.linkedin.com/company/example-energy",
  "authorFollowers": 18250,
  "postedAt": "2026-05-13T19:16:57.290Z",
  "reactionsCount": 197,
  "commentsCount": 11,
  "hashtags": ["#renewableenergy", "#solar"],
  "video": {"url": "https://dms.licdn.com/playlist/…", "durationSeconds": 42, "transcript": "Today we open…"},
  "comments": [{"text": "Congratulations to the team!", "authorName": "Jane Doe", "postedAt": "2026-05-14T08:02:11.000Z", "likesCount": 3}],
  "searchKeyword": "renewable energy",
  "keywordFoundIn": ["text", "hashtag"]
}
```

Other fields: `postUrn`, `authorHeadline`, `authorImageUrl`, `postedAtRelative`, `isEdited`, `mentions`, `imageUrl`, `images`, `hasVideo`, `sharedUrl`, `sharedAuthorName`, `locale`, `searchCountry`, `scrapedAt`. Export as JSON, CSV, Excel or XML.

A `SUMMARY` record in the key-value store lists, for each keyword, the posts collected and why the keyword finished (`limitReached` or `allPostsFound`).

### Pricing

You pay per post. Platform usage and comments are included; there is no fee per keyword or per run.

| Plan | Price per 1,000 posts |
|---|---|
| Free | $0.49 |
| Starter | $0.39 |
| Scale | $0.33 |
| Business and above | $0.29 |

Examples on the Starter plan: 10 keywords × 100 posts = 1,000 posts = $0.39. One brand × 3,000 posts = $1.17.

### How to use it

1. Type your keywords, one per line.
2. Set **Posts per keyword**, then **Country**, **Sort by** and dates if you need them.
3. Click **Start**. Download the dataset as JSON, CSV or Excel, or read it through the API.
4. Schedule the run daily or weekly to monitor new posts.

#### API example

```bash
curl -X POST "https://api.apify.com/v2/acts/monkey.d.scraping~linkedin-post-search-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["renewable energy"], "maxPostsPerKeyword": 50, "sortBy": "recent"}'
```

#### Real-time LinkedIn post API for apps and AI agents

Need posts inside an HTTP response instead of a dataset? Use the **Server** tab. Send the same JSON input to `POST /search` (or `GET /search?keyword=...&maxPosts=20`) and the posts come back in the response, ready for social listening tools, AI agents, n8n and Make.

```bash
curl -X POST "https://YOUR_SERVER_URL/search" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords": ["renewable energy"], "maxPostsPerKeyword": 20, "sortBy": "recent"}'
```

Copy the server URL from the Server tab. Posts cost the same as in a normal run, and requests that return no posts are free.

The server supports both **single-tenant** (each user gets a separate server run in their own account) and **multi-tenant** (shared server instances, with every request's posts kept separate and returned only to its caller). Apify activates one mode at a time; the Server tab shows the active one. For long keyword lists a normal run is the better fit; if the server is busy, retry after a few seconds.

#### Integrations

Works with the Apify API, scheduler and webhooks, and with n8n, Make, Zapier, Google Sheets, Slack and the Apify MCP server, so your AI agent can call it as a tool.

### FAQ

**Do I need a LinkedIn account or cookies?** No. The Actor reads public posts only.

**Can I use it for lead generation or recruiting?** Yes. Search what your buyers or candidates would write; each post gives the author and up to 10 commenters with profile URL and headline. It searches posts, not profiles, and returns no emails or phone numbers.

**How many posts can I get per keyword?** Up to 3,000. Popular topics reach that easily; for a niche brand the run collects every public post it finds and then stops, so you never pay for empty work.

**Can I search an exact phrase?** Yes: put it in quotes, for example `"green hydrogen"`.

**Can I monitor new posts?** Yes. Use **Sort by: Most recent** with **Published after**, and schedule the run.

**Are comments charged separately?** No. Up to 10 comments per post are included in the post price.

**Can I read posts I already have?** Yes, paste them into **Post URLs**.

**Is scraping LinkedIn posts legal?** The Actor collects publicly available posts only. Review the terms that apply to your use case and the privacy rules of your jurisdiction, especially for personal data.

### Related Actors by Monkey D. Scraping

- [LinkedIn Jobs Scraper | Job Postings API](https://apify.com/monkey.d.scraping/linkedin-jobs-scraper)
- [LinkedIn Ad Library Scraper | Ads & Targeting](https://apify.com/monkey.d.scraping/linkedin-ad-library-scraper)
- [LinkedIn Ad Library Change Monitor](https://apify.com/monkey.d.scraping/linkedin-ad-library-change-monitor)
- [Hiring Intelligence: Jobs, Tech Mentions & Sales Leads](https://apify.com/monkey.d.scraping/hiring-signal-intelligence)

### More tools for marketers

- [Google SERP Scraper | $0.10/1K](https://apify.com/monkey.d.scraping/google-serp-fast) — titles, snippets and thumbnails for up to 1,000 keywords per run.
- [Facebook Page Posts Scraper & Monitor](https://apify.com/monkey.d.scraping/facebook-page-posts-scraper)
- [Instagram Profile, Reels & Keyword Search Scraper](https://apify.com/monkey.d.scraping/instagram-profile-scraper)
- [YouTube Scraper | Transcripts, Comments, Shorts](https://apify.com/monkey.d.scraping/youtube-scraper)
- [Reddit Scraper | Posts, Search, Comments](https://apify.com/monkey.d.scraping/reddit-scraper)

***

### Italiano

**Cerca post pubblici di LinkedIn per parola chiave**, senza account né cookie. Per ogni post ottieni testo completo, autore con headline e follower, data, reazioni, numero di commenti, **fino a 10 commenti inclusi**, hashtag, menzioni, immagini e **link ai video con trascrizione** quando disponibile. Filtri per paese e periodo, ordinamento per pertinenza o dal più recente, fino a 3.000 post per keyword. Ogni riga indica dove compare la keyword (testo, hashtag, autore, commenti). **Da $0,29 ogni 1.000 post**, uso della piattaforma e commenti inclusi. Esempio: `{"keywords": ["energia rinnovabile"], "country": "it", "sortBy": "recent"}`. Ideale per **lead generation e recruiting**: trovi le persone da ciò che scrivono (chi cerca un fornitore, chi assume con `#hiring`, chi è `open to work`), con profilo, headline e fino a 10 commentatori. Utile anche per monitorare brand e concorrenti, fiere ed eventi e social listening.

### Español

**Busca publicaciones públicas de LinkedIn por palabra clave**, sin cuenta ni cookies. Cada publicación incluye texto completo, autor con titular y seguidores, fecha, reacciones, número de comentarios, **hasta 10 comentarios incluidos**, hashtags, menciones, imágenes y **enlaces de vídeo con transcripción** cuando existe. Filtra por país y fechas, ordena por relevancia o por lo más reciente, hasta 3.000 publicaciones por palabra clave. Cada fila indica dónde aparece la palabra clave. **Desde $0,29 por 1.000 publicaciones**, uso de la plataforma y comentarios incluidos. Ejemplo: `{"keywords": ["energía renovable"], "country": "es", "sortBy": "recent"}`. Ideal para **generación de leads y reclutamiento**: encuentra personas por lo que publican (`#hiring`, `open to work`, quien busca un proveedor), con perfil, titular y hasta 10 comentaristas.

### Français

**Recherchez des publications LinkedIn publiques par mot-clé**, sans compte ni cookies. Chaque publication contient le texte complet, l'auteur avec son titre et ses abonnés, la date, les réactions, le nombre de commentaires, **jusqu'à 10 commentaires inclus**, hashtags, mentions, images et **liens vidéo avec transcription** lorsqu'elle existe. Filtres par pays et par dates, tri par pertinence ou par date, jusqu'à 3 000 publications par mot-clé. **À partir de 0,29 $ pour 1 000 publications**, utilisation de la plateforme et commentaires compris. Exemple : `{"keywords": ["énergie renouvelable"], "country": "fr", "sortBy": "recent"}`. Idéal pour la **génération de leads et le recrutement** : trouvez des personnes par ce qu'elles publient (`#hiring`, `open to work`, recherche d'un prestataire), avec profil, titre et jusqu'à 10 commentateurs.

### Deutsch

**Öffentliche LinkedIn-Beiträge nach Stichwort suchen** – ohne Konto und ohne Cookies. Jeder Beitrag enthält den vollständigen Text, Autor mit Headline und Followern, Datum, Reaktionen, Anzahl der Kommentare, **bis zu 10 Kommentare inklusive**, Hashtags, Erwähnungen, Bilder und **Video-Links mit Transkript**, wenn vorhanden. Filter nach Land und Zeitraum, Sortierung nach Relevanz oder Aktualität, bis zu 3.000 Beiträge pro Stichwort. **Ab 0,29 $ pro 1.000 Beiträge**, Plattformnutzung und Kommentare inklusive. Beispiel: `{"keywords": ["erneuerbare Energie"], "country": "de", "sortBy": "recent"}`. Ideal für **Leadgenerierung und Recruiting**: Personen über ihre Beiträge finden (`#hiring`, `open to work`, Suche nach einem Anbieter), mit Profil, Headline und bis zu 10 Kommentierenden.

### Português

**Pesquise publicações públicas do LinkedIn por palavra-chave**, sem conta nem cookies. Cada publicação traz texto completo, autor com título e seguidores, data, reações, número de comentários, **até 10 comentários incluídos**, hashtags, menções, imagens e **links de vídeo com transcrição** quando disponível. Filtre por país e período, ordene por relevância ou pelas mais recentes, até 3.000 publicações por palavra-chave. **A partir de US$ 0,29 por 1.000 publicações**, uso da plataforma e comentários incluídos. Exemplo: `{"keywords": ["energia renovável"], "country": "br", "sortBy": "recent"}`. Ideal para **geração de leads e recrutamento**: encontre pessoas pelo que publicam (`#hiring`, `open to work`, quem procura um fornecedor), com perfil, título e até 10 comentaristas.

***

### 领英帖子搜索采集器（简体中文）

**按关键词搜索领英（LinkedIn）公开帖子**，无需登录、无需 Cookie。每条帖子一行数据：完整正文、作者（姓名、链接、个人/公司、职位头衔、粉丝数、头像）、发布时间、互动数、评论数、**最多 10 条评论（免费附带）**、话题标签、提及、图片，以及**视频链接、时长和字幕文本**（如有）。支持按国家和日期筛选，按相关度或最新排序，每个关键词最多 3,000 条帖子。每行都会标明关键词出现的位置（正文、标签、作者、提及、评论、字幕）。

**价格：付费套餐每 1,000 条帖子最低 $0.29**，已包含平台用量和评论。一条帖子 = 一行数据，只为收到的帖子付费。

#### 适用场景

- **外贸获客**：找到在领英上讨论你所在行业的海外采购商、经销商和决策者，附带职位头衔和粉丝数。
- **招聘与人才搜寻**：搜索 `#hiring`、`open to work` 等帖子，找到正在招聘的公司和求职者，附带个人主页链接和职位头衔。
- **品牌与竞品监测**：收集所有提及品牌、产品或竞争对手的公开帖子及评论。
- **展会与活动追踪**：搜索展会名称并设置日期，获取所有相关发帖。
- **行业研究与 AI 数据**：干净的 JSON，含正文、评论和视频字幕，可直接用于 RAG 和大模型分析。

#### 输入参数

| 参数 | 说明 |
|---|---|
| `keywords` | 关键词或短语，每行一个，每次最多 100 个；用英文引号搜索精确短语 |
| `maxPostsPerKeyword` | 每个关键词的帖子数量（默认 50，最多 3,000） |
| `country` | `any`（全球）或国家代码，如 `us`、`gb`、`de`、`ae`、`sg` |
| `sortBy` | `relevance`（相关度）或 `recent`（最新） |
| `publishedAfter` / `publishedBefore` | 发布日期范围，例如 `2026-01-01` |
| `postUrls` | 可选：直接读取指定的帖子链接 |
| `exactMatch` | 默认开启：只保留包含关键词的帖子 |

示例：`{"keywords": ["solar panel distributor"], "maxPostsPerKeyword": 200, "country": "any", "sortBy": "recent"}`

#### 价格

| 套餐 | 每 1,000 条帖子 |
|---|---|
| Free | $0.49 |
| Starter | $0.39 |
| Scale | $0.33 |
| Business 及以上 | $0.29 |

#### 实时 API

在 **Server** 标签页复制服务器地址，向 `POST /search` 发送与普通运行相同的 JSON，即可在 HTTP 响应中直接获得帖子，适合应用和 AI 智能体。价格与普通运行相同，未返回帖子的请求不收费。支持 single-tenant 与 multi-tenant 两种模式。

#### 常见问题

**需要领英账号吗？** 不需要，只采集公开帖子。
**评论另外收费吗？** 不收费，每条帖子最多 10 条评论已包含在价格内。
**可以监测新帖子吗？** 可以：选择 `recent` 排序并设置 `publishedAfter`，再定时运行。

### 領英貼文搜尋擷取器（繁體中文）

**依關鍵字搜尋 LinkedIn 公開貼文**，免登入、免 Cookie。每則貼文一列資料：完整內文、作者（姓名、連結、職稱、追蹤人數）、發布時間、心情數、留言數、**最多 10 則留言（免費附帶）**、主題標籤、標註、圖片，以及**影片連結與字幕**（如有）。可依國家與日期篩選，依相關度或最新排序，每個關鍵字最多 3,000 則。

**價格：付費方案每 1,000 則貼文最低 $0.29**，已包含平台用量與留言。

- 參數、輸出欄位與價格請參考上方 [简体中文说明](#领英帖子搜索采集器简体中文)；欄位名稱與英文版相同。
- 範例：`{"keywords": ["半導體 供應鏈"], "country": "any", "sortBy": "recent"}`
- 適合外銷開發客戶、招聘與人才搜尋（`#hiring`、`open to work`）、品牌與競品監測、展會追蹤與產業研究。

# Actor input Schema

## `keywords` (type: `array`):

What the people you want would write in a public LinkedIn post: topics, problems, brands, job titles or phrases. One per line, up to 100 per run. To find leads, describe their need, for example "looking for a CRM" or "lab automation". To find candidates or companies hiring, use "#hiring data engineer" or "open to work UX designer". Put a phrase in quotes for an exact match. Each post returns the author (name, profile URL, headline, followers) and up to 10 commenters.

## `maxPostsPerKeyword` (type: `integer`):

Maximum number of posts to collect for each keyword. Each post is one dataset row and one charge. 20–50 is enough for a quick lead list; up to 3,000 for full monitoring.

## `country` (type: `string`):

Search market. Worldwide searches every LinkedIn country site. A country focuses on posts published from that market, useful to find leads or candidates in one region; it does not verify where the author lives.

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

Relevance returns the best matching posts first. Most recent starts from the newest posts: use it to catch people who need something right now.

## `publishedAfter` (type: `string`):

Only posts published on or after this day (UTC). Leave empty for no lower limit.

## `publishedBefore` (type: `string`):

Only posts published on or before this day (UTC). Leave empty for today.

## `postUrls` (type: `array`):

Optional. Read specific posts instead of, or in addition to, searching by keyword. Accepts linkedin.com/posts/... and linkedin.com/feed/update/urn:li:activity:... links.

## `exactMatch` (type: `boolean`):

When on, a post is saved only if the keyword appears in its text, hashtags, author, mentions or comments. The keywordFoundIn field tells you where.

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

Add up to 10 public comments to each post, with commenter name, profile URL, date and likes. Commenters on a topic are often good leads too. No extra cost.

## `includeAuthorHeadline` (type: `boolean`):

Add the job headline of personal authors (for example "Lab Manager at …"), to qualify leads and candidates. Turn off for slightly faster runs.

## Actor input object example

```json
{
  "keywords": [
    "renewable energy"
  ],
  "maxPostsPerKeyword": 50,
  "country": "any",
  "sortBy": "relevance",
  "exactMatch": true,
  "includeComments": true,
  "includeAuthorHeadline": true
}
```

# Actor output Schema

## `posts` (type: `string`):

One row per public LinkedIn post.

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

Coverage and counts for each keyword.

# 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 = {
    "keywords": [
        "renewable energy"
    ],
    "maxPostsPerKeyword": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("monkey.d.scraping/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 = {
    "keywords": ["renewable energy"],
    "maxPostsPerKeyword": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("monkey.d.scraping/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 '{
  "keywords": [
    "renewable energy"
  ],
  "maxPostsPerKeyword": 50
}' |
apify call monkey.d.scraping/linkedin-post-search-scraper --silent --output-dataset

```

## MCP server setup

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