GroundsocialDocs

API · TikTok

GET /tiktok/videos/{id}/transcript

What is said in a TikTok video, from its caption track: WebVTT, text and timed segments.

RequestGET /v1/tiktok/videos/{id}/transcript
Operation idtiktok.video.transcript
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

What is said in a TikTok video, from its caption track: WebVTT, text and timed segments.

Path parameters

NameTypeRequiredDescription
idstringyesA video (or photo post) id, or its URL (www.tiktok.com/@user/video/<id>). Example: 7707446852798549279.

Query parameters

NameTypeRequiredDescription
languagestringnoLanguage code, e.g. en, es, pt-BR.

Responses

StatusMeaningSchema
200The transcript.TikTokTranscriptResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The account, video, comment, hashtag or sound does not exist on TikTok, or was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503TikTok is temporarily unavailable. Retryable; nothing was charged.Error

TikTokTranscriptResponse fields

FieldTypeDescription
itemIdstringVideo id, as a decimal string.
languagestringThe track’s language code, e.g. eng-US.
sourcestringWho made the track: ASR (TikTok’s auto captions), MT (machine translation) or the creator.
webvttstringThe track as TikTok serves it (WebVTT).
textstringThe cues joined into plain text.
segmentsobject[]
subtitleInfosobject[]Every track TikTok lists for the video (languages, formats).

Errors use one shape everywhere; see Errors for every code and what to do.