使用场景

在投放 B2B 广告前先研究竞品的 LinkedIn 广告

以 JSON 获取竞品在 LinkedIn 广告库中的广告文案、形式和日期,在规划自己的投放之前,先研究对方的信息策略和投放时长。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
LinkedInLinkedIn Ad Li…lovelyjsonitems[0]"copy": "Close your books in 3…"format": "Single image""start_date": "2026-08-14""end_date": "2026-10-01""source": "LinkedIn Ad Library"

在投放 B2B 广告之前,你想知道竞品已经对你的买家说了什么、用的是什么广告形式,以及一条广告会持续投放多久。LinkedIn 广告库里有答案,但它是一个只能逐条阅读的搜索页面。Lovely Router 替你来读:发送广告库搜索 URL,每条广告返回一个 JSON 对象,按广告条数从预付费余额中计费。用一个 API 密钥,就能从脚本、表格任务或 AI 智能体中调用。

交给你的 AI 智能体

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

在投放 B2B 广告前先研究竞品的 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 放在 startUrls 中发送到 POST /v1/tools/linkedin-ads/run,用 resultsLimit 限制每个 URL 的广告数,用 max_results 限制整次运行。运行会从你的余额中预留它的最高费用。

  3. 解读文案和时间线

    按文案和形式给广告分组,再用日期看出哪些广告投放了数周,哪些很快就被撤下。

02

一次请求获取竞品的 LinkedIn 广告

LinkedIn 广告库广告在 startUrls 中接受一组广告库 URL。resultsLimit 限制每个 URL 的广告数,一次运行最多返回 500 条广告。该工具也接受公司主页 URL,但搜索 URL 是更好的输入,因为公司主页无法让你控制筛选条件:

curl https://lovelyrouter.com/v1/tools/linkedin-ads/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
        "startUrls": [
            {
                "url": "https://www.linkedin.com/ad-library/search?accountOwner=northwind"
            }
        ],
        "resultsLimit": 20
    },
    "max_results": 20
}'

结果中的每条广告都包含文案、形式和日期。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每条广告包含什么

字段组你会得到
文案广告的文字内容
形式广告的构成方式,例如单图或视频
日期广告投放的时间

工具返回的是广告库为每条广告展示的内容。你可以让模型给每条广告标注切入角度(痛点、证明、优惠、活动),这样就能统计竞品主要依赖哪些角度。

04

实用配方

梳理竞品的信息策略。

对五个竞品各自的广告库 URL 运行,上限设为 50,然后让模型按诉求给文案分组:价格、速度、安全、集成。你就能看出哪些诉求已经拥挤,哪些还是空白。

找出投放持久的广告。

对比开始和结束日期。持续数月的广告大概率在持续带来回报,一周就停掉的则不然。把你的测试创意从长期投放的广告出发。

发现新品发布。

每周一重新运行同一个搜索,与上周的结果对比。出现新形式或新主题的新广告,通常意味着新产品或新一轮推广。

给创意团队写 brief。

把你所在品类最近 100 条广告的文案和形式导出到一张表里,让 brief 从买家已经看到的内容出发。

查看活动或优惠的时间窗口。

搜索会议名称之类的关键词,读取日期,看广告主从什么时候开始围绕它做推广。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"打开这三个竞品的 LinkedIn 广告库搜索,对每个 URL 用 linkedin-ads 工具运行,resultsLimit 设为 40,然后给我一张包含广告文案、形式和开始日期的表格。max_results 设为 120。"

06

费用说明

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

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

07

常见问题

?
在广告库中可以搜索什么?+

任何可以构造成广告库搜索 URL 的内容:某个广告主,或一次关键词搜索。把浏览器中的 URL 粘贴到 startUrls 即可。

一次运行最多能返回多少条广告?+

每次运行最多 500 条。resultsLimit 设置每个 URL 的上限,max_results 限制整次运行。

可以传公司主页而不是广告库链接吗?+

可以,该工具也接受公司 URL。搜索 URL 是更好的输入,因为它让你自己设置筛选条件,而公司 URL 不行。

能告诉我一条广告花了多少钱、有多少人看过吗?+

工具返回广告文案、形式和日期,不列出花费或触达人数。

需要订阅吗?+

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

想研究一整组竞品?请看广告情报,以及其余的工具目录。运行设置见运行工具。

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

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