使用场景

把 TikTok 视频转成文字,分析脚本与开头钩子

按 URL 以 JSON 获取 TikTok 视频的口播文字稿,不必逐条观看,就能研究开头钩子、脚本结构和视频中的说法。

预付费,无订阅REST 或 MCP一个密钥搞定模型、数据和智能体
TikToklovelyjsonitems[0]"video_url": "tiktok.com/@stoolpres…"transcript": "Okay, so here is the …"language": "en"

视频很难搜索、引用或对比。如果你想研究所在领域最佳视频的前三秒,核实某位创作者是怎么说你的产品的,或复用一份脚本,你就需要文字形式的台词。Lovely Router 替你获取。发送视频链接,每份文字稿返回一个 JSON 对象,按文字稿份数从预付费余额中计费。可以从脚本、内容流水线或 AI 智能体中调用。

交给你的 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>
01

工作原理

010203
  1. 汇总你想转成文字的视频:搜索得到的高表现视频、竞品的新品发布视频、某位创作者的赞助帖子。

  2. 设置上限后运行工具

    把链接放进 videos,发送到 POST /v1/tools/tiktok-transcript/run,并带上 max_results。一个链接对应一份文字稿,一次运行最多可以包含 50 个。

  3. 分析文字

    把文字稿交给模型,让它给出每条视频的开场白、提出的说法、行动号召,以及反复出现的结构。

02

一次请求获取 TikTok 文字稿

{}

获取 TikTok 文字稿在 videos 中接受一组视频链接。请求体中的 max_results 就是上限:

curl https://lovelyrouter.com/v1/tools/tiktok-transcript/run \
  -H "Authorization: Bearer $LOVELY_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "input": {
    "videos": [
      "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402"
    ]
  },
  "max_results": 1
}'

该工具的 input 中没有数量限制字段。你发送的链接数量和 max_results 决定了你为多少份文字稿付费。运行超过 60 秒仍未结束时会返回 202;轮询方法见运行工具。

03

每份文字稿包含什么

{}
字段组你得到的内容
文字稿视频的口播文字
来源它所来自的视频链接

该工具只返回口播文字稿,不包含画面上的文字。先运行一个链接,检查你关心的那类视频的输出。

04

实用配方

研究前 20 条视频的开头钩子。

取 tiktok-search 的靠前结果,获取它们的文字稿,让模型列出每条的第一句话,并按类型分类:提问、断言、故事、警告。

复用爆款脚本的结构。

转写你自己表现最好的三条视频,让模型写出它们共同的大纲,这样下一份脚本就从已被验证的结构出发。

查看创作者是怎么说你的。

转写某位创作者的赞助帖子,标出关于你产品的、需要法务或客服关注的说法。

让视频可搜索。

把每份文字稿和链接一起存进你自己的数据库,再在文本中搜索产品名或某个投诉。

翻译一个市场。

转写来自另一个国家的视频,让模型翻译,看看哪些点子可以跨市场通用。

更想直接用自然语言提问?连接 MCP 服务器,然后对 Claude Code 或 Cursor 说:"获取 links.txt 中 15 个 TikTok 链接的文字稿,写下每条的第一句话,并按钩子类型分组。把 max_results 设为 15。"

06

费用说明

按份文字稿付费:启动运行时会预留它的最高费用,即每次调用费加上每份文字稿费乘以 max_results,结束后按实际返回的结果结算,预留的剩余部分退回你的余额。失败或超时的运行只为已交付的份文字稿付费,在开始时就被拒绝的运行不收费。

读取 100 份文字稿就按 100 份文字稿计费。没有订阅,也没有每月最低消费:最低充值 $5,工具和模型共用一个余额。上方卡片显示的是当前价格;价格页面列出了所有工具。

07

常见问题

?
一次运行最多能获取多少份文字稿?+

最多 50 份,videos 中每个视频链接对应一份。需要更长的列表,就启动多次运行。

对任何 TikTok 视频都有效吗?+

你发送视频链接,它返回口播文字。该工具不保证每条视频都有文字稿,所以请先拿几条你需要的视频测试一下。

会返回画面上的文字吗?+

不会。该工具的说明是返回口播文字稿。

可以选择语言吗?+

输入中只有 videos 这一个字段,所以没有语言设置。如有需要,之后可以用模型翻译。

需要订阅吗?+

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

想了解更多?请看其余的工具目录和价格页面。

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

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