使用场景

追踪竞品在 LinkedIn 公司主页上发布的内容

读取 LinkedIn 公司主页的近期帖子及互动数据,了解竞品都在宣布什么,以及哪些话题最能引发互动和反应。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
LinkedInlovelyjsonitems[0]"text": "We just opened our se…"engagement": 470

竞品的 LinkedIn 主页就是一份持续更新的日志:产品发布、招聘、客户案例和营销活动都在里面,同时也免费显示出受众关心其中的哪些内容。没有人会每周翻五页。Lovely Router 替你来做:发送公司主页 URL,每条帖子返回一个 JSON 对象,按帖子数从预付费余额中计费。每周用脚本或 AI 智能体运行一次,你就拥有了一份关于所在市场的动态信息流。

交给你的 AI 智能体

把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。

追踪竞品在 LinkedIn 公司主页上发布的内容. Use the Lovely Router data tools: each returns JSON and is billed per result.

- Docs (read first): https://lovelyrouter.com/docs/tools/find.md and https://lovelyrouter.com/docs/tools/run.md
- Plan first: POST https://lovelyrouter.com/v1/tools/suggest with `{"task": "<my task in plain words>"}` (free). It returns the tools to run in order, each with an example `input`, the `input_required` fields, an estimated cost and a ready-made `run` request. Replace the example values with my task's; if a field is unclear, read the tool with GET https://lovelyrouter.com/v1/tools/<id>. To browse instead, POST https://lovelyrouter.com/v1/tools/discover searches the catalog.
- Show me the plan and its estimated cost (`total_est_cost_usd`) before running anything large.
- Run: POST https://lovelyrouter.com/v1/tools/<id>/run with `{"input": {...}, "max_results": N}`. A 200 has the finished run with `items`; a 202 means it is still running, so poll the `poll` path until `status` is `succeeded`, `failed`, `timed_out` or `stopped`.
- Only delivered results are billed. Keep max_results small on the first run, check the output, then scale up.
- If you support MCP, connect https://lovelyrouter.com/mcp instead (Streamable HTTP, same key; https://lovelyrouter.com/docs/tools/mcp.md) and use suggest_tools, get_tool and run_tool.
- Auth: read my API key from the LOVELY_API_KEY environment variable and send it as `Authorization: Bearer $LOVELY_API_KEY`. Never print or commit the key. If it is not set, ask me to create one at https://lovelyrouter.com/app/keys.
- Billing is prepaid: every call is charged to my balance, so test with a small request before running anything large.
- Every docs page is plain Markdown; the full index is https://lovelyrouter.com/llms.txt.

My task: <the inputs (links, keywords or accounts) and how many results you need>
01

工作原理

010203
  1. 列出主页

    取你关注的每个竞品、合作伙伴或客户的 LinkedIn 主页。

  2. 设置上限后运行工具

    把 URL 放在 targetUrls 中发送到 POST /v1/tools/linkedin-company-posts/run。maxPosts 限制每个主页的帖子数,postedLimit 限制帖子的发布时间范围,max_results 限制整次运行。

  3. 对比互动

    按互动数给帖子排序,阅读排名靠前的那些。保存每次运行的结果,就能观察话题的兴起与消退。

02

一次请求获取公司近期帖子

获取 LinkedIn 公司帖子在 targetUrls 中接受公司主页 URL。maxPosts 是每个主页的上限,一次运行最多返回 200 条帖子。postedLimit 接受 any、1h、24h、week、month、3months、6months 或 year,让每周任务变得很简单:

curl https://lovelyrouter.com/v1/tools/linkedin-company-posts/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "targetUrls": [
            "https://www.linkedin.com/company/nvidia/"
        ],
        "maxPosts": 10,
        "postedLimit": "week"
    },
    "max_results": 30
}'

该工具不采集评论和点赞详情;你得到的是帖子及其互动数。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每条帖子包含什么

字段组你会得到
帖子公司动态的文字内容
互动帖子上显示的互动数

如果要读取个人主页(例如创始人)的帖子,请使用 linkedin-posts。

04

实用配方

做一份每周竞品简报。

把 postedLimit 设为 week,运行五个竞品主页。让模型按主题总结其发布的动态,周一发给你的团队。

找出有效的内容。

拉取某个主页最近的 100 条帖子,按互动数排序,看前 10 条有什么共同点:形式、话题、长度。

提前发现新品发布。

在已知的行业活动之前,每天对某个竞品的主页运行,把 postedLimit 设为 24h,出现新品相关词汇时发出提醒。

关注客户或潜在客户。

关注销售管道中某个账户的主页;一条关于新办公室或新招聘的帖子,就是你写邮件的理由。

对标你自己的主页。

把你自己公司的主页加进列表,对比你的互动数与同行的差距。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"用 linkedin-company-posts 获取这四个竞品 LinkedIn 主页过去一个月的帖子,每个主页 maxPosts 设为 25,然后告诉我互动最多的五条帖子以及它们的共同点。max_results 设为 100。"

06

费用说明

按条帖子付费:启动运行时会预留它的最高费用,即每次调用费加上每条帖子费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的条帖子付费,在开始时就被拒绝的运行不收费。

每周拉取 100 条帖子,就按每周 100 条帖子计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
可以回溯多久?+

用 postedLimit 限制发布时间(24h、week、month 等,最长到 year),或保持为 any。maxPosts 限制每个主页返回多少条。

它会返回评论吗?+

不会。该工具返回帖子及其互动数,不返回评论文本。

一次运行最多能返回多少条帖子?+

每次运行最多 200 条帖子。

这里也能读取个人的帖子吗?+

输入也接受个人主页 URL,但专为个人设计的工具是 linkedin-posts。

需要订阅吗?+

不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,不会自动续费。

要关注你的整个市场?请看社交聆听,以及其余的工具目录。运行设置见运行工具。

一个预付费密钥,搞定模型、数据和智能体

无需订阅。充值后按需使用,每笔费用都能在日志中查看。