TikTok Transcript API
Get the transcript of a TikTok video from its captions (most of them auto-generated by TikTok): the full text, timed segments and the caption languages available.
GET /v1/tiktok/posts/{post}/transcript: by post id or URL-encoded linkGET /v1/tiktok/post/transcript?url=(or?id=): the same, with the link in the query
Cost: 1 credit per successful call. A video without captions still costs 1 credit (we had to fetch the post to find out) and answers available: false. A transcript is kept 24 hours (1 hour when there were no captions yet, since TikTok can add them shortly after upload); repeats from cache are free.
Parameters
postpathrequiredPost id or URL-encoded tiktok.com video link.
url / idqueryoptionalAlias route only: the video link, or its id.
langqueryoptionalOptional caption language code (
en, es…). Default: the video's original language.freshqueryoptionaltrue skips the cache.Response
startandendare seconds from the start of the video.languageslists every caption language the video has; ask for one withlang. If that language is missing,availableisfalseandlanguagesshows what exists.- Photo posts and videos without speech usually have no captions.
has_captionson any post tells you in advance.
FAQ
How do I get the text of a TikTok video?
Call GET /v1/tiktok/post/transcript?url=<the TikTok link>. data.text is the full transcript and data.segments the timed lines.
Is this speech recognition?
No: we read the captions TikTok publishes for the video. When TikTok has none, available is false.