Skip to Content

TikTok LIVE Transcription

Start transcribing what is said in a TikTok LIVE room, as it is said. Identify the room by room_id, by streamer (username) or by LIVE URL: send exactly one of the three. The room must be on air.

The call starts a session and answers at once with its id. From then on the room's sound is transcribed continuously, until the LIVE ends, you stop the session (DELETE), or max_duration_minutes is reached. A session must be followed: closing your connection does not stop it, but a session nobody follows for a while (no event stream open on it, no read of it, no webhook delivering) stops by itself with end_reason: "no_reader".

Reading the transcript. Three ways, which can be combined:

HowCallBest for
Event streamGET /tiktok/live/transcribe/eventsReceiving each sentence as it is said, over one HTTP connection for all your sessions
PollingGET /tiktok/live/transcribe/{session_id}?after_seq=NSimple integrations, and catching up after an interruption
Webhookwebhook_url in this requestServers that prefer to be called

Final and partial text. A final sentence is delivered once, typically one to two seconds after it was said, and never changes: it has a number (seq), its start and end in the session, its language and, with include_speakers, a speaker label. With include_partials, the event stream also carries the sentence being said (partial), updated several times a second; a partial can still change, and is replaced by the final sentence.

One session per room. Starting a session on a room your organization already transcribes returns the running session (200) instead of a second one.

A session and its sentences stay readable for 24 hours after it ends.

An organization can transcribe a limited number of rooms at the same time, depending on its plan; past it the call answers 429 too_many_active_sessions. When the service cannot take one more room at that moment, the call answers 503 system_overload with retry_after_seconds: nothing was started, retry later. See https://docs.vidnavigator.com/api-reference/rate-limiting

Usually answers in 1-5 s, sometimes up to ~30 s; allow a client timeout of 120 s.

POST
/tiktok/live/transcribe

Start transcribing what is said in a TikTok LIVE room, as it is said, and get a session id back at once.

Overview

This endpoint starts a session on one LIVE room. From then on the sound of the room is transcribed continuously, until the LIVE ends, you stop the session, or max_duration_minutes is reached.

  • The room is given by room_id, by streamer (username) or by LIVE URL, like on TikTok LIVE Room. It must be on air.
  • A final sentence is delivered typically one to two seconds after it was said, and never changes.
  • The language is detected sentence by sentence, so a LIVE can mix languages. Pass language when you know it.
  • With include_speakers, each sentence carries a label (A, B...). Labels tell voices apart: they do not identify people.
  • One session per room and organization: starting it a second time returns the running session (200), not a second one.
  • A session and its sentences stay readable for 24 hours after it ends.
  • The call usually answers in 1 to 5 seconds, sometimes up to ~30 seconds. Allow a client timeout of 120 seconds.

Availability: every plan. How many rooms an organization can transcribe at the same time depends on its plan: see the limits.

Reading the transcript

Three ways, which can be combined:

HowCallBest for
Event streamGET /tiktok/live/transcribe/eventsReceiving each sentence as it is said, over one HTTP connection for all your sessions
PollingGET /tiktok/live/transcribe/{session_id} with after_seqSimple integrations, and catching up after an interruption
Webhookwebhook_url in this requestServers that prefer to be called. See Webhooks

The guide Transcribing a TikTok LIVE in Real Time walks through the three, with code.

Billing

A session is billed for the time actually transcribed (live_transcription_hour), plus one TikTok request (residential_request) when it starts. Reading the transcript, listing and stopping sessions cost nothing. A call that starts nothing is not billed.

Rates and rules: Usage Costs.

Request Parameters

Send exactly one of room_id, username or url.

ParameterTypeRequiredDescription
room_idstringOne of threeA LIVE room ID, e.g. the id of a LIVE search room. Send it as a string: room IDs have more digits than a JavaScript number holds.
usernamestringOne of threeThe streamer's TikTok username, with or without @: their current LIVE.
urlstringOne of threeA LIVE URL (https://www.tiktok.com/@username/live), a profile URL (https://www.tiktok.com/@username), or a room's share_url (https://m.tiktok.com/share/live/<room_id>). Short vm.tiktok.com links are not accepted.
languagestringNoThe language spoken, as a two-letter code (en, fr, ar...), when you know it: the transcript is more accurate. Leave it out for a LIVE in several languages or in an unknown one.
max_duration_minutesintegerNoThe session stops by itself once this many minutes were transcribed, from 1 to 1440 (24 hours). Default 60.
include_partialsbooleanNoDefault false. Also deliver the sentence being said, before it is final: partial events on the event stream, and partial on the session's GET.
include_speakersbooleanNoDefault false. Add a speaker label (A, B...) to each final sentence.
webhook_urlstringNoWhere to POST the final sentences as they come, and the end of the session. Must be a public https URL. The account default webhook set in Studio is not used for LIVE transcription: only this parameter is. See Webhooks.

Example Usage

curl -X POST "https://api.vidnavigator.com/v1/tiktok/live/transcribe" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "creator",
    "language": "en",
    "max_duration_minutes": 120
  }'

Success Response (201 Created)

{
  "status": "success",
  "data": {
    "session": {
      "id": "3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55",
      "status": "starting",
      "end_reason": null,
      "error": null,
      "room": {
        "id": "7705498471838665494",
        "title": "Late night Q&A",
        "url": "https://www.tiktok.com/@creator/live",
        "author": { "unique_id": "creator", "nickname": "Creator" }
      },
      "language": "en",
      "include_partials": false,
      "include_speakers": false,
      "max_duration_minutes": 120,
      "created_at": "2026-12-03T11:18:19.412Z",
      "started_at": null,
      "ended_at": null,
      "duration_seconds": 0.0,
      "segments_count": 0,
      "stop_requested": false
    },
    "events_url": "/v1/tiktok/live/transcribe/events?session_id=3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55",
    "check_status_url": "/v1/tiktok/live/transcribe/3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55"
  }
}

The answer is 200 with the same shape when your organization already transcribes this room: session is then the running session, and nothing new is started or billed.

The Session

Every LIVE transcription endpoint returns the session in the same shape.

FieldDescription
idThe session ID (a UUID). Keep it: it reads, streams and stops the session.
statusstarting, listening, ended or failed. See below.
end_reasonWhy an ended session ended. null otherwise.
errorWhy a failed session failed: code and message. null otherwise.
roomThe room being transcribed: id, title, url, author.unique_id, author.nickname.
languageThe language given at the start, or null.
include_partials, include_speakers, max_duration_minutesThe options of the session.
created_atWhen the session was started (UTC, ISO 8601).
started_atWhen it started listening, or null.
ended_atWhen it ended, or null.
duration_secondsSeconds of the LIVE transcribed so far.
segments_countFinal sentences so far: the seq of the last one.
stop_requestedtrue once a stop was asked with DELETE, until the session has ended.

status

statusMeaning
startingAccepted, not listening yet. It lasts a second or two.
listeningThe room is being transcribed.
endedOver. end_reason says why.
failedThe session could not go on. error says why. What was transcribed until then stays readable.

end_reason

end_reasonMeaning
live_endedThe LIVE ended.
stoppedYou stopped the session.
max_duration_reachedmax_duration_minutes of the LIVE were transcribed.
insufficient_creditsYour organization ran out of credits.
no_readerNobody followed the session for 2 minutes: no event stream open on it, no read of it, no webhook delivering. Closing your connection does not stop a session: how a session ends.

error.code

error.codeMeaning
transcription_unavailableThe transcription could not go on.
stream_unavailableThe sound of the LIVE could not be read.
internal_errorAn unexpected error.

A failed session is not restarted for you: start a new one on the room if the LIVE is still on air.

Error Cases

StatuserrorWhen
400request_body_requiredNo JSON body
400invalid_parameterNone, or more than one, of room_id, username, url; or a webhook_url that is not a public https URL
400invalid_room_id / invalid_username / invalid_urlThe room ID, username or URL is malformed
400invalid_language / invalid_max_duration_minutes / invalid_include_partials / invalid_include_speakersWrong type, a language that is not a two-letter code, or max_duration_minutes outside 1-1440
402insufficient_creditsNot enough credits to start a session
403access_deniedLIVE transcription is not enabled for your organization
404live_not_foundThe room ID does not exist, or the account does not exist or has never gone LIVE. Not billed.
409live_endedThe LIVE is not on air: it has ended, or the streamer is offline. Not billed.
429too_many_active_sessionsYour organization transcribes as many rooms at once as its plan allows (see the limits). Stop a session or wait for one to end.
502live_room_unavailableTikTok did not serve the room. Retry in a moment. Not billed.
503system_overloadThe service cannot take one more room right now. Nothing was started or billed. Retry after retry_after_seconds, given in the answer and in the Retry-After header.
{
  "status": "error",
  "error": "system_overload",
  "error_code": "system_overload",
  "message": "LIVE transcription is at full capacity right now. Please retry in a minute. You were not charged.",
  "retry_after_seconds": 60,
  "charge_user": false
}

Tips

  • Find rooms to transcribe with TikTok LIVE Search (by keyword and country), and pass a room's id as room_id.
  • To know whether a streamer is on air before starting, call TikTok LIVE Room with their username: status is live or ended. Starting a session on a LIVE that is not on air answers 409 live_ended.
  • A LIVE can last many hours and every minute transcribed is billed: set max_duration_minutes to what you need, and stop the sessions you no longer read.
  • Starting a session is safe to repeat: a second call on the same room returns the running session.

API reference

Authorization

ApiKeyAuth
headerX-API-Key<token>

API key authentication. Include your VidNavigator API key in the X-API-Key header.

Request Body

application/json
  1. body

Exactly one of room_id, username or url.

room_id?string

A LIVE room ID, as a string (it has more digits than a JavaScript number holds), e.g. the id of a POST /tiktok/live/search result.

Match^[0-9]{1,25}$
username?string

The streamer's TikTok username, with or without @: their current LIVE.

url?string

A LIVE URL (https://www.tiktok.com/@username/live), a profile URL (https://www.tiktok.com/@username), or a room's share_url (https://m.tiktok.com/share/live/<room_id>). Short vm.tiktok.com links are not accepted.

language?string

The language spoken in the LIVE, as a two-letter code (en, fr, ar...), when you know it: it makes the transcript more accurate. Leave it out for a LIVE in several languages or in an unknown one: the language is then detected, sentence by sentence.

Match^[a-z]{2}$
max_duration_minutes?integer

The session stops by itself once this many minutes of the LIVE were transcribed (end_reason: "max_duration_reached"). A LIVE can last many hours: set what you need.

Range1 <= value <= 1440
Default60
include_partials?boolean

Also deliver the sentence being said, as partial events on the event stream and as partial on the session's GET.

Defaultfalse
include_speakers?boolean

Add a speaker label (A, B...) to each final sentence, to tell the voices of the LIVE apart.

Defaultfalse
webhook_url?string

Where to POST the final sentences as they come, and the end of the session (LiveTranscriptionWebhookEvent). Must be a publicly reachable https URL. The account-level default webhook is not used for LIVE transcription. See https://docs.vidnavigator.com/webhooks

Formaturi

Response Body

Your organization already transcribes this room: the running session is returned, no second one is started.

application/json
  1. response
status?"success"
Value in"success"
data?
Example Request
curl -X POST 'https://api.vidnavigator.com/v1/tiktok/live/transcribe' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "status": "success",  "data": {    "session": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "status": "starting",      "end_reason": "live_ended",      "error": {        "code": "transcription_unavailable",        "message": "string"      },      "room": {        "id": "7705498471838665494",        "title": "string",        "url": "https://www.tiktok.com/@tiktok/live",        "author": {          "unique_id": "string",          "nickname": "string"        }      },      "language": "string",      "include_partials": true,      "include_speakers": true,      "max_duration_minutes": 0,      "created_at": "2019-08-24T14:15:22Z",      "started_at": "2019-08-24T14:15:22Z",      "ended_at": "2019-08-24T14:15:22Z",      "duration_seconds": 0,      "segments_count": 0,      "stop_requested": true    },    "events_url": "/v1/tiktok/live/transcribe/events?session_id=3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55",    "check_status_url": "/v1/tiktok/live/transcribe/3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55"  }}

On this page