TikTok API

TikTok 视频转录文本(完整版) API

用 AnyAPI 自有的语音转文字转录 TikTok 视频中的语音:带时间的句子级片段、说话人标签、检测到的语言,以及可选的逐词时间,适用于 TikTok 没有发布字幕轨的视频,以及字幕轨识别错词的视频。AnyAPI 会下载视频并用 MAI-Transcribe-2 处理音频,而不是读取 TikTok 写好的任何内容,因此它能处理非英语语音,也能听准原生字幕听错的词。结果还包含视频的 ID、URL、创作者用户名和封面图。开启 hostVideo 还能拿到托管链接上的 MP4,不必担心 TikTok 带签名的短期 CDN URL 过期。如果你只需要 TikTok 自己发布的内容,并希望价格只有十分之一,请用 tiktok.video_transcript。

US$5.94/千分钟音频,按请求付费,无需订阅。

@theodorekitchen on TikTok
tiktok.com/@theodorekitchen/video/7458219903341129744

@theodorekitchen

Follow
Video transcript
0:00

Okay so this is the three ingredient dinner that saved my week.

API 返回的内容segments[0]
{
"text": "Okay so this is the three ingredient dinner that saved my week.",
"startSeconds": 0,
"endSeconds": 3.8,
"language": "en",
"speaker": "speaker_1",
"words": object[]
}
可用率
98.79%
30d · 7,122 次调用
请求数
7,179
30d · 按周,近 12 周
响应时间
6.7s
中位数 · 30d

试一试

一个请求获取 TikTok 视频转录文本(完整版)

打开于
获取免费密钥
示例响应
免费运行只返回前 3 条结果。为密钥充值即可获得完整响应。

这个示例展示了 24 个字段中的 16 个。查看全部字段

{
  "found": true,
  "data": {
    "id": "7458219903341129744",
    "url": "https://www.tiktok.com/@theodorekitchen/video/7458219903341129744",
    "ownerUsername": "theodorekitchen",
    "thumbnailUrl": "https://p16-sign-va.tiktokcdn.com/obj/tos-useast5-p-0068-tx/theodorekitchen-cover-7458219903341129744~tplv-obj.jpeg?x-signature=Xa4bDe6f",
    "transcript": "Okay so this is the three ingredient dinner that saved my week. You just need butter, garlic, and a rotisserie chicken. Shred it up, melt the butter with the garlic until it smells amazing, toss it all together, and that is it. Fifteen minutes, done.",
    "language": "en",
    "source": "audio_asr",
    "durationSeconds": 41.9,
    "segments": [
      {
        "text": "Okay so this is the three ingredient dinner that saved my week.",
        "startSeconds": 0,
        "endSeconds": 3.8,
        "language": "en",
        "speaker": "speaker_1"
      },
      {
        "text": "You just need butter, garlic, and a rotisserie chicken.",
        "startSeconds": 3.9,
        "endSeconds": 7.2,
        "language": "en",
        "speaker": "speaker_1"
      },
      {
        "text": "Shred it up, melt the butter with the garlic until it smells amazing, toss it all together, and that is it.",
        "startSeconds": 7.3,
        "endSeconds": 13.6,
        "language": "en",
        "speaker": "speaker_1"
      },
      {
        "text": "Fifteen minutes, done.",
        "startSeconds": 13.7,
        "endSeconds": 15.1,
        "language": "en",
        "speaker": "speaker_1"
      }
    ]
  }
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

一个请求,一种响应结构。

你发送的每个字段和收到的每个字段,都附有真实示例。

最近验证于 2026-11-14 · 可用率和延迟按 30d 统计

请求体

JSON,POST 到这个接口。

  • urlstring

    https://www.tiktok.com/@theodorekitchen/video/7458219903341129744

    TikTok 视频 URL(例如 "https://www.tiktok.com/@user/video/1234567890")。

  • hostVideoboolean

    同时存储视频,并返回一个无需 TikTok 签名 CDN URL 即可播放的托管 MP4 链接。在转录费用之外作为附加项扣费。

  • wordTimestampsboolean

    在每个片段内返回逐词时间。词只带时间;识别器给短语而不是单词打分,所以没有逐词置信度可返回。

你发送。 一个简短的 JSON 请求体。显示的值只是示例,请换成你自己的。

响应

JSON,每个字段一个示例值。

datadata
  • bytesinteger

    Size of the hosted MP4 in bytes.

  • durationSecondsnumber

    41.9

    Video duration in seconds.

  • expiresUtcnumber

    When the hosted link stops working. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • hostedUrlstring

    Hosted MP4 link, returned only when the request set hostVideo. It plays without TikTok's signed CDN URL and without any cookie, and it stops working at expiresUtc.

  • idstring

    7458219903341129744

    TikTok video id.

  • languagestring

    en

    Detected spoken language of the audio (BCP-47 style code, e.g. "en").

  • ownerUsernamestring

    theodorekitchen

    Creator handle, without the leading @.

  • source"audio_asr" | "no_audio" | "transcript_unavailable"

    audio_asr

    How the text was produced. "audio_asr" means the words come from speech recognition over the video's audio, never from a caption track TikTok published - for TikTok's own captions, use tiktok.video_transcript. "transcript_unavailable" means recognition did not complete for this video, so the transcript is empty for that reason rather than because the video has no speech in it; the rest of the record is still what we resolved, and no audio time is charged. "no_audio" means there was nothing to listen to: the video has no audio track, or the post has no video. The transcript is empty because that is the answer, the rest of the record is still what we resolved, and only the request price is charged, with no audio time. Populated whenever the provider has data for the entity.

  • thumbnailUrlstring

    https://p16-sign-va.tiktokcdn.com/obj/tos-useast5-p-0068-tx/theodorekitchen-cover-7458219903341129744~tplv-obj.jpeg?x-signature=Xa4bDe6f

    Cover image for the video. A signed, short-lived TikTok CDN URL, often served as HEIC rather than JPEG, so fetch it promptly and transcode if you need broad browser support.

  • transcriptstring

    Okay so this is the three ingredient dinner that saved my week. You just need butter, garlic, and a rotisserie chicken. Shred it up, melt the butter with the garlic until it smells amazing, toss it all together, and that is it. Fifteen minutes, done.

    Full spoken-word transcript, recognized from the video's audio track. Populated whenever the provider has data for the entity.

  • urlstring

    https://www.tiktok.com/@theodorekitchen/video/7458219903341129744

    Canonical URL of the video this transcript came from.

each segmentdata.segments[]

Timed transcript segments in playback order, one per sentence, so a segment locates a specific line in the video rather than a whole speaker turn. Populated whenever the provider has data for the entity.

  • endSecondsnumber

    3.8

    Segment end offset in seconds, taken from the last word it contains.

  • languagestring

    en

    Detected language for this segment.

  • speakerstring

    speaker_1

    Speaker label for this segment, stable within one response and meaningless across responses. Telling voices apart is a guess, not an identification, and the label is not a name.

  • startSecondsnumber

    0

    Segment start offset in seconds, taken from the first word it contains.

  • textstring

    Okay so this is the three ingredient dinner that saved my week.

    Text of this segment.

each worddata.segments[].words[]

Per-word timings for this segment, returned only when the request set wordTimestamps. Words carry no confidence score: the recognizer scores a phrase rather than a word.

  • endSecondsnumber

    Word end offset in seconds.

  • startSecondsnumber

    Word start offset in seconds.

  • textstring

    The recognized word, in display form with its own punctuation.

top level
  • 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_full,就以统一格式的 JSON 返回 TikTok 数据。用 AnyAPI 自有的语音转文字转录 TikTok 视频中的语音:带时间的句子级片段、说话人标签、检测到的语言,以及可选的逐词时间,适用于 TikTok 没有发布字幕轨的视频,以及字幕轨识别错词的视频。AnyAPI 会下载视频并用 MAI-Transcribe-2 处理音频,而不是读取 TikTok 写好的任何内容,因此它能处理非英语语音,也能听准原生字幕听错的词。结果还包含视频的 ID、URL、创作者用户名和封面图。开启 hostVideo 还能拿到托管链接上的 MP4,不必担心 TikTok 带签名的短期 CDN URL 过期。如果你只需要 TikTok 自己发布的内容,并希望价格只有十分之一,请用 tiktok.video_transcript。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千分钟音频 US$5.94,单次请求最多 US$0.095,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 TikTok 视频转录文本(完整版) API 调用中有 98.8% 成功,响应时间中位数为 6.7 秒,共测量 7,122 次调用。

费用:每千分钟音频 US$5.94,单次请求最多 US$0.095,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

用 AnyAPI 自有的语音转文字转录 TikTok 视频中的语音:带时间的句子级片段、说话人标签、检测到的语言,以及可选的逐词时间,适用于 TikTok 没有发布字幕轨的视频,以及字幕轨识别错词的视频。AnyAPI 会下载视频并用 MAI-Transcribe-2 处理音频,而不是读取 TikTok 写好的任何内容,因此它能处理非英语语音,也能听准原生字幕听错的词。结果还包含视频的 ID、URL、创作者用户名和封面图。开启 hostVideo 还能拿到托管链接上的 MP4,不必担心 TikTok 带签名的短期 CDN URL 过期。如果你只需要 TikTok 自己发布的内容,并希望价格只有十分之一,请用 tiktok.video_transcript。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 TikTok 视频转录文本(完整版) API 调用中有 98.8% 成功,响应时间中位数为 6.7 秒,共测量 7,122 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。

可以。新的 AnyAPI 账户自带 US$0.10 免费余额,无需绑卡,至少足够调用 1 次 TikTok 视频转录文本(完整版),每次最多 US$0.095。

向 https://api.getanyapi.com/v1/run/tiktok.video_transcript_full 发送 POST 请求,在 “Authorization: Bearer” 请求头中放入你的 AnyAPI 密钥,并以 JSON 请求体传入参数。同一个密钥和同一个钱包适用于所有 AnyAPI 接口。

不需要。你向一个预付费的 AnyAPI 余额充值美元,每个请求从中扣费。没有月度套餐,也没有最低消费,同一个余额可用于所有 AnyAPI 接口。

有。TypeScript 用 npm 安装 @getanyapi/sdk,Python 用 pip 安装 getanyapi。两者都用同一个密钥调用所有 AnyAPI 接口,任何 HTTP 客户端也都可以。

可以。智能体可以连接 https://api.getanyapi.com/mcp 上的 AnyAPI MCP 服务器,或者向 https://api.getanyapi.com/agent/signup 发送一次无需认证的 POST 来创建自己的免费试用密钥,再通过 HTTP 调用这个接口。