Languages
lang and available_languages.
Draft notice
Owner check needed: endpoint, parameter, limit and error names here come from the planning spec, not from the live service. Confirm them against the real API before launch.
Overview
A TikTok video can expose one or more caption tracks. You ask for a language; the API tells you which exist.
- Send lang; default is en.
- available_languages lists the tracks.
- Missing language: typed error, 0 credits.
srt: language_unavailable: Languages available: eng-US, spa-ESAsk for a language
Send lang=en (the default) or another two-letter code. The response carries language_code for what you received and available_languages for what exists, for example eng-US.
When it is missing
If the language you asked for is not available, you get language_unavailable and 0 credits. The message lists the languages that are. Try again with one of them.
Speech-to-text and language
The owner’s scraper can translate a speech-to-text result into English. Whether the public API exposes that is to be confirmed, so do not depend on it.
Language lists are per video. TikTok decides which tracks exist; the API does not add tracks.
Ready to call it from your code?
Get API key