在策划一条 TikTok 视频、一次营销活动或一次产品测试之前,你需要知道你的领域里什么已经有效。TikTok 搜索一次只展示寥寥几条视频,也无法导出或排序。Lovely Router 替你执行搜索。发送关键词或话题标签,每条视频返回一个包含文案、播放量、点赞、分享、作者和音乐的 JSON 对象,按视频条数从预付费余额中计费。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
按关键词或话题标签查找 TikTok 爆款视频. 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>工作原理
选好关键词
列出你的买家会用的词,以及围绕你产品的话题标签,每个条目一个关键词。
设置上限后运行工具
把它们发送到
POST /v1/tools/tiktok-search/run,在输入中带上maxItems,在请求上带上max_results。选择sortType、dateRange和location来缩小范围。排序并研究赢家
按播放量、点赞或分享排序。读一读前十名的文案,记下音乐和作者,看看它们有什么共同点。
一次请求搜索 TikTok 视频
搜索 TikTok 视频接受 keywords,也可以在 startUrls 中接受 TikTok 链接。sortType 可取 RELEVANCE、MOST_LIKED 或 DATE_POSTED,maxItems 限制结果数量:
curl https://lovelyrouter.com/v1/tools/tiktok-search/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"keywords": [
"espresso"
],
"maxItems": 10,
"sortType": "RELEVANCE"
},
"max_results": 10
}'排序只对关键词搜索生效,对 startUrls 不生效。先用较小的上限运行,看看结果长什么样。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每条视频包含什么
| 字段组 | 你得到的内容 |
|---|---|
| 内容 | 视频文案 |
| 互动 | 播放量、点赞和分享 |
| 作者 | 发布视频的账号 |
| 音频 | 使用的音乐 |
dateRange 可取 YESTERDAY、THIS_WEEK、THIS_MONTH、LAST_THREE_MONTHS、LAST_SIX_MONTHS、ALL_TIME 或 DEFAULT。location 接受两位字母的国家代码。
实用配方
搜索你的品类,把 dateRange 设为 THIS_WEEK,sortType 设为 MOST_LIKED。保留前 20 条文案和音乐,每周一发给你的内容团队。
运行五个关键词,按音乐对结果分组,统计哪些音乐出现在最多的视频中。
对每个话题标签用相同上限运行,比较播放量和分享的中位数。分享更高的那个更有可能被传播开。
用 location 在两个国家运行同一个关键词,看看排名靠前的视频有什么不同。
按作者对视频分组,保留出现不止一次的账号,再用 tiktok-profile 逐个查看。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"在 TikTok 上搜索 espresso,按本月最多点赞排序,列出前 25 条,包含文案、播放量、分享数和使用的音乐。把 max_results 设为 25。"
搭配其他 TikTok 工具
搜索负责找到视频,下面这些工具解释它们为什么有效:
按关键词或话题标签搜索 TikTok 视频:文案、播放、点赞、分享、作者、音乐。
某个 TikTok 账号的视频,附带作者的粉丝数和获赞数。
按 URL 获取 TikTok 视频的评论。
按 URL 获取 TikTok 视频的语音文字稿。
YouTube 频道的 Shorts:标题、播放、点赞、评论、日期。
tiktok-profile列出你在结果中发现的账号的视频。tiktok-comments显示观众在排名最高的视频下说了什么。tiktok-transcript给出一条爆款视频背后的脚本。youtube-shorts让你和 YouTube 上的短视频做对比。
如需根据发现的结果挑选创作者,请看网红研究。
费用说明
按条视频付费:启动运行时会预留它的最高费用,即每次调用费加上每条视频费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的条视频付费,在开始时就被拒绝的运行不收费。
读取 100 条视频就按 100 条视频计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。
常见问题
可以按话题标签搜索吗?+
可以。把话题标签当作关键词传入,或把 TikTok 标签链接粘贴到 startUrls。那里支持标签、用户、音乐、地点和搜索链接。
怎样只获取近期的视频?+
设置 dateRange。它只对关键词搜索生效,取值范围从 YESTERDAY 到 LAST_SIX_MONTHS。
可以指定国家来搜索吗?+
输入中有 location 字段,接受两位字母的国家代码,结果会来自该地区。
一次运行最多能返回多少条视频?+
上限由 maxItems 设置,该工具单次运行最多 500 条视频。
需要订阅吗?+
不需要。你向预付费余额充值,每次运行从中扣费。失败的运行只为已交付的条视频付费,不会自动续费。