你的产品或对手产品的一条测评视频下,可能有成千上万条评论,真正有用的却被埋在里面:提出缺失功能的人,解释自己为什么退货的人。一条条翻下去根本做不到规模化。Lovely Router 替你读取评论:传入视频链接,每条评论返回一个 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>工作原理
选择视频
选出你的受众会发表看法的测评视频、教程、发布视频或竞品视频。Shorts 链接同样可用。
设置上限后运行工具
把链接发送到
POST /v1/tools/youtube-comments/run,用sort设为top或latest,用maxItems指定评论数量,并用max_results作为运行上限。运行会从你的余额中预留它的最高费用,并以 JSON 返回评论。打标签并统计
让模型给每条评论打上标签(提问、投诉、功能需求、好评),然后按标签统计,并按点赞数排序,看清最重要的是什么。
一次请求获取视频评论
列出 YouTube 评论在 startUrls 中接受视频或 Shorts 链接。用 sort: "top" 获取大家认同的评论,用 "latest" 获取最新的反应:
curl https://lovelyrouter.com/v1/tools/youtube-comments/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"startUrls": ["https://www.youtube.com/watch?v=xObhZ0Ga7EQ"],
"sort": "top",
"maxItems": 20
},
"max_results": 20
}'运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。一次运行最多可返回 500 条评论。不包含回复,但每条评论都带有它的回复数。
每条评论包含什么
| Field group | What you get |
|---|---|
| 内容 | 评论正文 |
| 触达 | 点赞数 |
| 互动 | 回复数 |
| 作者 | 评论者的名称 |
| 时间 | 评论日期 |
使用方案
拉取对手测评视频的前 300 条评论,让模型提取所有需求和投诉,并按评论的点赞数排序。
取自己教程下的评论,保留带提问的,把点赞最多的整理成 FAQ 条目或下一期视频的选题。
在发布后的一天里,每隔几小时对你的发布视频运行一次 sort: "latest",标出情绪变化,或多人反馈的同一个 bug。
拉取两者测评视频的评论,对比观众夸什么、抱怨什么。
在多个视频里,找出评论获得最多点赞和回复的作者。
更想用自然语言?连接 MCP 服务器,然后告诉 Claude Code 或 Cursor:"获取这个 YouTube 视频的前 100 条热门评论,分成提问、投诉和功能需求三组,并列出每组点赞最多的五条。把 max_results 设为 100。"
与其他 YouTube 数据源搭配
评论是观众的反应。要把它们放到上下文里:
YouTube 视频或 Shorts 的评论:内容、点赞、回复数、作者、日期。按热门或最新排序。
按关键词搜索 YouTube 视频,或从 YouTube 链接(搜索结果、频道、播放列表或视频 URL)获取:标题、播放、点赞、评论数、时长、频道、日期。
YouTube 频道的视频(频道名如 @MrBeast 或频道 URL):标题、播放、点赞、评论数、时长、日期。
YouTube 视频的完整字幕文本,带时间戳:每个视频链接一份,视频有该语言时按你指定的语言返回。
按 URL 获取 Reddit 帖子及其评论。
youtube-search按关键词找出值得阅读的测评视频。youtube-channel列出频道的视频及播放量,帮你挑出讨论最多的。youtube-transcript提供视频说了什么,用来把评论和具体说法对应起来。reddit-comments补充来自另一群人的同类反馈。
更完整的流程,请参阅社交聆听。
费用说明
按评论计费:开始运行时会预留最高费用,即单次调用费加上单条评论费乘以 max_results,运行结束后按实际返回的数量结算,其余预留金额退回你的余额。失败或超时的运行只为已交付的评论付费,开始时就被拒绝的运行不收费。
读取 500 条评论,按 500 条评论计费。没有订阅,也没有每月最低消费:从 $5 起充值,一份余额同时支付工具和模型。上方卡片显示今日价格;价格页列出了每个工具。
常见问题
可以获取 Shorts 的评论吗?+
可以。该工具在 startUrls 中接受 YouTube 视频或 Shorts 链接。
可以按最新或最多点赞排序吗?+
可以。sort 接受 top 或 latest。
包含回复吗?+
不包含。该工具返回的是一级评论,每条评论会显示它有多少条回复。
最多能获取多少条评论?+
用 maxItems 设置每次运行的数量。运行上限 max_results 每次运行最高 500 条评论。
需要 YouTube 账号或 API 配额吗?+
不需要。你只需传入链接和 API 密钥。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的结果付费,也不会自动续费。