@cristiano
{"url": "https://www.tiktok.com/@cristiano/video/7375000000000000000","language": "en","transcript": "Today is matchday and we are ready to give everything for the win.","id": string}
价格与服务商
TikTok 视频转录文本 API 价格:一个 API,4 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
调用方式
一个请求获取 TikTok 视频转录文本
import os, requests res = requests.post( "https://api.getanyapi.com/v1/run/tiktok.video_transcript", headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"}, json={ "url": "https://www.tiktok.com/@washingtonpost/video/7609177768793787679" }, ) print(res.json())
这个示例展示了 7 个字段中的 5 个。查看全部字段
{
"found": true,
"data": {
"url": "https://www.tiktok.com/@cristiano/video/7375000000000000000",
"language": "en",
"transcript": "Today is matchday and we are ready to give everything for the win."
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- urlstring
https://www.tiktok.com/@cristiano/video/7375000000000000000
TikTok video URL on tiktok.com: a video or photo post (https://www.tiktok.com/@<user>/video/<id> or /photo/<id>) or a vm.tiktok.com, vt.tiktok.com or tiktok.com/t/ share link. A profile link (https://www.tiktok.com/@<user>), a /@<user>/<id> link without /video/ (TikTok sends it to the For You feed, not a video), a video file link (tiktokcdn.com) or a link to any other site is refused as invalid input, with no charge.
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `language`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
响应
JSON,每个字段一个示例值。
- idstring
TikTok video id the transcript belongs to.
- languagestring可设为必填
en
Language of the caption track, or null when the serving source does not report it.
- transcriptstring
Today is matchday and we are ready to give everything for the win.
Populated whenever the provider has data for the entity.
- urlstring
https://www.tiktok.com/@cristiano/video/7375000000000000000
Canonical TikTok URL of the video.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 TikTok 视频转录文本 API
AnyAPI 的 TikTok 视频转录文本 API 只需一次 POST 请求 /v1/run/tiktok.video_transcript,就以统一格式的 JSON 返回 TikTok 数据。按 URL 获取单条视频的语音转录文本,有时间戳时一并返回。AnyAPI 会在 4 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.10 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 TikTok 视频转录文本 API 调用中有 100.0% 成功,响应时间中位数为 1.3 秒,共测量 35,953 次调用。