你和抖音创作者做了一次推广,现在有人要数据:每条视频的播放、点赞、评论和分享,放在同一张表里。创作者发来的是截图,数字每天都在变,从 App 里一条条抄又很慢。Lovely Router 按链接读取每条视频:发送链接,每条视频返回一个 JSON 对象,按视频条数从预付费余额中计费。用一个 API 密钥,就能从报表脚本、表格任务或 AI 智能体中调用。
交给你的 AI 智能体
把这段提示词复制到 Claude Code、Cursor、Codex 或任何编程智能体中。它会告诉智能体文档在哪里,以及如何使用你的 API 密钥。
根据视频链接清单生成抖音推广活动报告. 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>工作原理
收集视频链接
向每位创作者索要其作品的链接,或从 App 里复制分享链接。
运行工具
把链接发送到
POST /v1/tools/douyin-video/run,并将max_results设为链接的数量。运行会从你的余额中预留它的最高费用,并以 JSON 返回视频。生成报告
把统计数据连同运行日期放进表格。在第 3 天、第 7 天和第 14 天再运行一次,就能绘制出每条视频的增长曲线。
一次请求获取视频数据
获取抖音视频详情在 videoUrls 中接受链接或视频 ID。一个链接对应一条视频,一次运行最多读取 50 条:
curl https://lovelyrouter.com/v1/tools/douyin-video/run \
-H "Authorization: Bearer $LOVELY_API_KEY" \
-H "content-type: application/json" \
-d '{
"input": {
"videoUrls": ["https://www.douyin.com/video/7577614489533680959"]
},
"max_results": 1
}'运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。
每条视频包含什么
| 字段组 | 你会得到 |
|---|---|
| 内容 | 文案、标题和日期 |
| 互动 | 播放、点赞、评论和分享 |
| 标签 | 话题标签 |
| 声音 | 使用的配乐 |
| 作者 | 发布该视频的创作者 |
| 媒体 | 视频流和音频流的链接 |
文本按发布时的原样返回,即中文。
实用配方
保存推广活动的链接清单,每周一运行一次,把播放、点赞、评论和分享连同运行日期写入表格。
把每条视频的播放量与你付给该创作者的费用关联起来并排名。
把每条视频上的话题标签与你的需求说明对照,列出漏掉标签的创作者。
在第 1、3、7 天对同样的链接运行,绘制每天的播放量,看看视频是否还在传播。
把表格发给模型,请它写一份简短的英文总结说明哪些做法有效,并翻译中文文案。
更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"读取 campaign.txt 中的抖音链接,获取每条视频的数据,并制作一张包含创作者、播放、点赞、评论和分享的表格。把 max_results 设为 30。"
搭配其他抖音数据源
按链接获取抖音视频:文案、标题、日期、播放、点赞、评论、分享、话题、音乐、作者,以及视频和音频链接。
抖音创作者主页的最新作品(视频和图文):文案、日期、播放、点赞、评论、分享、音乐、作者数据。
按关键词获取抖音视频。
某个 TikTok 账号的视频,附带作者的粉丝数和获赞数。
按关键词获取小红书笔记。
douyin-profile展示创作者的其他近期作品,用来判断这条推广视频是否具有代表性。douyin-search找出与你的推广话题标签相关、但没有人发给你的视频。tiktok-profile覆盖同时在 TikTok 上发布内容的创作者。xiaohongshu-search覆盖同一场推广在小红书上的情况。
费用说明
按视频付费:启动运行时会预留它的最高费用,即每次调用费加上每条视频费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的视频付费,在开始时就被拒绝的运行不收费。
每周检查 30 条推广视频,就按每周 30 条视频计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。