Skip to content

GET/v1/tiktok/posts/{post}/transcript

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.

GEThttps://api.handlehaul.com/v1/tiktok/posts/{post}/transcript
GEThttps://api.handlehaul.com/v1/tiktok/post/transcript?url=
  • GET /v1/tiktok/posts/{post}/transcript: by post id or URL-encoded link
  • GET /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

postpathrequired
Post id or URL-encoded tiktok.com video link.
url / idqueryoptional
Alias route only: the video link, or its id.
langqueryoptional
Optional caption language code (en, es…). Default: the video's original language.
freshqueryoptional
true skips the cache.

Response

  • start and end are seconds from the start of the video.
  • languages lists every caption language the video has; ask for one with lang. If that language is missing, available is false and languages shows what exists.
  • Photo posts and videos without speech usually have no captions. has_captions on 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.

↑↓ to move↵ to open