使用场景

按播放、点赞和更新频率追踪竞品 YouTube 频道

以 JSON 获取竞品 YouTube 频道的最新视频,含播放量、点赞、评论数、时长和日期,用来对标哪些内容有效、他们多久更新一次。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
YouTubelovelyjsonitems[0]"title": "Home espresso: 5 mist…"views": 184200"likes": 7310"comments": 412"duration": "12:48""date": "2026-10-21"

竞品每周都在 YouTube 上发新视频,而你往往要等别人转发才知道哪条火了。靠手动翻频道,既看不出哪种形式的视频播放高,也看不出时长和更新频率。Lovely Router 替你读取频道:传入频道 handle,每个视频返回一个 JSON 对象,按视频数量从预付费余额中计费。用一个 API 密钥,就能每周从脚本、表格任务或 AI 智能体中运行。

交给你的 AI 智能体

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

按播放、点赞和更新频率追踪竞品 YouTube 频道. 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. 列出频道

    写下你关注的竞品、创作者和合作方的 handle(例如 @MrBeast)或频道 URL。

  2. 设置上限后运行工具

    发送到 POST /v1/tools/youtube-channel/run,在输入中用 maxItems 指定想要的视频数量,并用 max_results 作为运行上限。运行会从你的余额中预留它的最高费用,并以 JSON 返回视频。

  3. 存储并对比

    每次运行都带上日期保存。按播放量排序,比较每次播放对应的点赞和评论,并统计每个频道每周发了多少视频。

02

一次请求获取频道视频

获取 YouTube 频道视频在 youtubeHandles 中接受频道 handle,或在 startUrls 中接受频道 URL。maxItems 是你想要返回的视频数量:

curl https://lovelyrouter.com/v1/tools/youtube-channel/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "input": {
      "youtubeHandles": ["@MrBeast"],
      "maxItems": 3
    },
    "max_results": 3
  }'

运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。一次运行最多可返回 500 个视频。

03

每个视频包含什么

Field groupWhat you get
标识视频标题
触达播放量
互动点赞数和评论数
形式时长
时间发布日期

该工具默认跳过 Shorts。若要对标某个频道的 Shorts,请使用 youtube-shorts。

04

使用方案

每周竞品摘要。

每周一拉取每个对手最新的 20 个视频,与上周对比,把新发布的视频连同播放量和点赞数发到团队聊天里。

找出有效的内容形式。

拉取一个频道的 100 个视频,按播放量排序,让模型把标题归为不同形式(教程、测评、清单、故事),并按平均播放量排名。

衡量发布节奏。

根据日期统计每月视频数,比较各竞品的发布频率和视频时长。

合作前审查创作者。

拉取某位创作者最近的 30 个视频,检查播放量是否稳定,点赞和评论相对播放量是否处于正常范围。

向客户汇报。

为每个频道维护一张每周表格,并接入仪表盘。

更想用自然语言?连接 MCP 服务器,然后告诉 Claude Code 或 Cursor:"获取 @MrBeast 和 @MarkRober 最新的 25 个视频,然后按播放量排序,展示标题、播放量、点赞和日期的表格。把 max_results 设为 50。"

06

费用说明

按视频计费:开始运行时会预留最高费用,即单次调用费加上单视频费乘以 max_results,运行结束后按实际返回的数量结算,其余预留金额退回你的余额。失败或超时的运行只为已交付的视频付费,开始时就被拒绝的运行不收费。

检查 20 个频道、每个 25 个视频,按 500 个视频计费。没有订阅,也没有每月最低消费:从 $5 起充值,一份余额同时支付工具和模型。上方卡片显示今日价格;价格页列出了每个工具。

07

常见问题

?
可以用频道 URL 代替 handle 吗?+

可以。把频道 URL(例如 youtube.com/@name 链接或 youtube.com/channel/UC... 链接)放进 startUrls。handle 则放进 youtubeHandles。

每个频道最多能获取多少视频?+

由 maxItems 决定。运行上限 max_results 每次运行最高 500 个视频。需要更多时,请发起多次运行。

包含 Shorts 吗?+

不包含,本工具不返回 Shorts。需要的话请使用 YouTube Shorts。

每个视频会返回什么?+

标题、播放量、点赞数、评论数、时长和日期,与工具说明中列出的一致。

需要 YouTube 账号或 API 配额吗?+

不需要。你只需传入 handle 和 API 密钥,你这边不涉及任何 YouTube 登录。

需要订阅吗?+

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

正在为一次营销活动比较创作者?请参阅达人调研、社交聆听和工具目录。

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

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