TEST SITE: not indexed, not the live website. Placeholder button URLs in use: signup, login, dashboard, playground, api_base.

TikTok Transcript API Examples and Workflows

Complete scripts with captured runs.

Draft notice

Examples verified against the documented contract; live-API verification pending. Run tools/verify-live.sh with a real key and base URL, then remove this notice.

Read the details

These TikTok transcript API examples are complete workflows: a script you can save, a captured run, and notes on errors and credits.

  • Five workflows, each with its own script.
  • Scripts read the key and base URL from environment variables.
  • Only documented parameters: url, lang, format, ai_fallback.
  • A failed request costs nothing, so loops are safe to retry.

Each script calls the one transcript endpoint documented on this site and was run against a local mock that follows the assumed contract. Pick the job you have, copy the script and change the URL.

Get an API key to run them against the real service once the contract is confirmed, or open the playground to look at one response.

The five workflows

WorkflowJob it doesOutput
Chunk a transcript for RAGGroup segments into timed chunksJSON lines
Save SRT and VTT filesWrite and check subtitle files.srt and .vtt
Find a phraseSearch, even across segmentsTime and line
Fetch many transcriptsWorkers, retries, jobs, resumeresults.jsonl
Handle missing transcriptsSort a URL list by outcomeTally

A workflow is published only after its script has run, and the page shows output from that run.

Frequently asked questions

Where can I find working TikTok transcript API examples?

Here. Each workflow has a full script, a captured output and notes on errors. Open the one that matches your task.

Do the scripts run against the real API?

Not yet. They run against a local mock that follows the assumed contract. Run them against your live API and fix any differences before launch.

Do I need Python?

Python is the main language. The API is plain HTTP, so any language works; the quickstart also shows Node.

Get API keyDocs