竞品每周都在 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>工作原理
列出频道
写下你关注的竞品、创作者和合作方的 handle(例如
@MrBeast)或频道 URL。设置上限后运行工具
发送到
POST /v1/tools/youtube-channel/run,在输入中用maxItems指定想要的视频数量,并用max_results作为运行上限。运行会从你的余额中预留它的最高费用,并以 JSON 返回视频。存储并对比
每次运行都带上日期保存。按播放量排序,比较每次播放对应的点赞和评论,并统计每个频道每周发了多少视频。
一次请求获取频道视频
获取 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 个视频。
每个视频包含什么
| Field group | What you get |
|---|---|
| 标识 | 视频标题 |
| 触达 | 播放量 |
| 互动 | 点赞数和评论数 |
| 形式 | 时长 |
| 时间 | 发布日期 |
该工具默认跳过 Shorts。若要对标某个频道的 Shorts,请使用 youtube-shorts。
使用方案
每周一拉取每个对手最新的 20 个视频,与上周对比,把新发布的视频连同播放量和点赞数发到团队聊天里。
拉取一个频道的 100 个视频,按播放量排序,让模型把标题归为不同形式(教程、测评、清单、故事),并按平均播放量排名。
根据日期统计每月视频数,比较各竞品的发布频率和视频时长。
拉取某位创作者最近的 30 个视频,检查播放量是否稳定,点赞和评论相对播放量是否处于正常范围。
为每个频道维护一张每周表格,并接入仪表盘。
更想用自然语言?连接 MCP 服务器,然后告诉 Claude Code 或 Cursor:"获取 @MrBeast 和 @MarkRober 最新的 25 个视频,然后按播放量排序,展示标题、播放量、点赞和日期的表格。把 max_results 设为 50。"
与其他 YouTube 数据源搭配
频道列表告诉你发布了什么,下面这些工具补全其余部分:
YouTube 频道的视频(频道名如 @MrBeast 或频道 URL):标题、播放、点赞、评论数、时长、日期。
YouTube 频道的 Shorts:标题、播放、点赞、评论、日期。
按关键词搜索 YouTube 视频,或从 YouTube 链接(搜索结果、频道、播放列表或视频 URL)获取:标题、播放、点赞、评论数、时长、频道、日期。
YouTube 视频或 Shorts 的评论:内容、点赞、回复数、作者、日期。按热门或最新排序。
YouTube 视频的完整字幕文本,带时间戳:每个视频链接一份,视频有该语言时按你指定的语言返回。
youtube-shorts覆盖频道的 Shorts,而本工具会跳过它们。youtube-search按关键词查找视频,发现你还没关注的频道。youtube-comments读取观众在竞品最佳视频下的留言。youtube-transcript提供视频的完整口述文本,用来研究爆款的结构。
如需挑选合作的创作者,请参阅达人调研。
费用说明
按视频计费:开始运行时会预留最高费用,即单次调用费加上单视频费乘以 max_results,运行结束后按实际返回的数量结算,其余预留金额退回你的余额。失败或超时的运行只为已交付的视频付费,开始时就被拒绝的运行不收费。
检查 20 个频道、每个 25 个视频,按 500 个视频计费。没有订阅,也没有每月最低消费:从 $5 起充值,一份余额同时支付工具和模型。上方卡片显示今日价格;价格页列出了每个工具。
常见问题
可以用频道 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 登录。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,也不会自动续费。