LinkedIn Posts Search
Search LinkedIn posts via Apify actor harvestapi~linkedin-post-search.
Prerequisites
Env variable APIFY_API_TOKEN must be set (configured in openclaw.json under skills.entries.linkedin-search-posts.env).
Input schema
Requis
- -
searchQueries: array of strings — liste des requêtes de recherche (max 85 caractères par requête). Supporte les opérateurs booléens LinkedIn. Ex : INLINECODE5
Optionnels — filtres auteurs
- -
targetUrls: liste d'URLs de profils/pages LinkedIn dont on veut les posts - INLINECODE7 : liste d'identifiants publics LinkedIn (ex:
["williamhgates"]) - INLINECODE9 : liste d'IDs LinkedIn (ex:
["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"]) - INLINECODE11 : liste d'identifiants de sociétés LinkedIn (ex:
["google", "microsoft"])
Optionnels — pagination / volume
- -
maxPosts: nombre max de posts par requête (0 = tout scraper). Prioritaire sur scrapePages. - INLINECODE15 : nombre de pages à scraper si
maxPosts non défini (~50 posts/page avec keywords, ~90-100 sans) - INLINECODE17 : page de départ (défaut: 1)
Optionnels — contenu enrichi
- -
scrapeReactions: scraper les réactions (défaut: false). Chaque réaction est comptée comme un post séparé (facturation). - INLINECODE20 : nombre max de réactions par post (0 = toutes)
- INLINECODE21 : scraper les commentaires (défaut:
false). Chaque commentaire est compté comme un post séparé (facturation). - INLINECODE23 : nombre max de commentaires par post (0 = tous)
Optionnels — tri / date
- -
sortBy: "relevance" (par pertinence, défaut) ou "date" (plus récents en premier) - INLINECODE27 : ancienneté max des posts. Valeurs acceptées :
'1h', '24h', 'week', 'month', '3months', '6months', INLINECODE34
Run the actor
CODEBLOCK0
La réponse contient :
- -
data.id — run ID - INLINECODE36 — dataset ID pour récupérer les résultats
- INLINECODE37 — statut initial (
READY → RUNNING → SUCCEEDED)
Poll until complete
CODEBLOCK1
Vérifier data.status == SUCCEEDED.
Fetch results
CODEBLOCK2
Retourne un tableau JSON. Chaque item contient :
- -
type — "post" (ou "reaction" / "comment" si activés) - INLINECODE47 — ID du post
- INLINECODE48 — URL du post
- INLINECODE49 — texte du post
- INLINECODE50 ,
author.publicIdentifier, author.linkedinUrl, INLINECODE53 - INLINECODE54 ,
postedAt.timestamp, INLINECODE56 - INLINECODE57 — images du post
- INLINECODE58 ,
engagement.comments, engagement.shares, INLINECODE61 - INLINECODE62 — détail des réactions (si
scrapeReactions: true) - INLINECODE64 — détail des commentaires (si
scrapeComments: true)
Pricing
$2 per 1000 posts (PAYPEREVENT). Réactions et commentaires comptent chacun comme un post séparé.
Known limitations
- - Chaque requête est limitée à 85 caractères par LinkedIn
- Les réactions et commentaires doublent/triplent le coût si activés
- Les résultats LinkedIn ne sont pas exhaustifs
LinkedIn 帖子搜索
通过 Apify actor harvestapi~linkedin-post-search 搜索 LinkedIn 帖子。
前提条件
必须设置环境变量 APIFYAPITOKEN(在 openclaw.json 的 skills.entries.linkedin-search-posts.env 中配置)。
输入模式
必需参数
- - searchQueries:字符串数组 — 搜索查询列表(每个查询最多 85 个字符)。支持 LinkedIn 布尔运算符。例如:[La Base Programme idéation Nantes]
可选参数 — 作者筛选
- - targetUrls:要获取帖子的 LinkedIn 个人资料/页面 URL 列表
- authorsPublicIdentifiers:LinkedIn 公开标识符列表(例如:[williamhgates])
- authorsIds:LinkedIn ID 列表(例如:[ACoAAA8BYqEBCGLgvTca6mMEqkpp9nVffJ3hc])
- authorsCompanyPublicIdentifiers:LinkedIn 公司标识符列表(例如:[google, microsoft])
可选参数 — 分页/数量
- - maxPosts:每个查询的最大帖子数(0 = 抓取全部)。优先级高于 scrapePages。
- scrapePages:如果未设置 maxPosts,则抓取的页数(带关键词约 50 条帖子/页,不带关键词约 90-100 条)
- startPage:起始页(默认:1)
可选参数 — 丰富内容
- - scrapeReactions:抓取反应(默认:false)。每条反应计为一条独立帖子(计费)。
- maxReactions:每条帖子的最大反应数(0 = 全部)
- scrapeComments:抓取评论(默认:false)。每条评论计为一条独立帖子(计费)。
- maxComments:每条帖子的最大评论数(0 = 全部)
可选参数 — 排序/日期
- - sortBy:relevance(按相关性,默认)或 date(最新优先)
- postedLimit:帖子的最大时效。可接受的值:1h、24h、week、month、3months、6months、year
运行 actor
bash
curl --request POST \
--url https://api.apify.com/v2/acts/harvestapi~linkedin-post-search/runs?token=$APIFYAPITOKEN \
--header Content-Type: application/json \
--data {
searchQueries: [<搜索查询>],
maxPosts: 50,
sortBy: date,
postedLimit: month
}
响应包含:
- - data.id — 运行 ID
- data.defaultDatasetId — 用于获取结果的数据集 ID
- data.status — 初始状态(READY → RUNNING → SUCCEEDED)
轮询直至完成
bash
curl https://api.apify.com/v2/acts/harvestapi~linkedin-post-search/runs/ID>?token=$APIFYAPI_TOKEN
检查 data.status == SUCCEEDED。
获取结果
bash
curl https://api.apify.com/v2/datasets/ID>/items?token=$APIFYAPI_TOKEN
返回 JSON 数组。每个项目包含:
- - type — post(如果启用,也可能是 reaction / comment)
- id — 帖子 ID
- linkedinUrl — 帖子 URL
- content — 帖子文本
- author.name、author.publicIdentifier、author.linkedinUrl、author.avatar.url
- postedAt.date、postedAt.timestamp、postedAt.postedAgoText
- postImages[] — 帖子图片
- engagement.likes、engagement.comments、engagement.shares、engagement.reactions[]
- reactions[] — 反应详情(如果 scrapeReactions: true)
- comments[] — 评论详情(如果 scrapeComments: true)
定价
每 1000 条帖子 2 美元(PAYPEREVENT)。反应和评论各计为一条独立帖子。
已知限制
- - 每个查询限制为 85 个字符(LinkedIn 限制)
- 如果启用反应和评论,成本将翻倍/三倍
- LinkedIn 结果并非详尽无遗