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:
| How | Call | Best for |
|---|---|---|
| Event stream | GET /tiktok/live/transcribe/events | Receiving each sentence as it is said, over one HTTP connection for all your sessions |
| Polling | GET /tiktok/live/transcribe/{session_id}?after_seq=N | Simple integrations, and catching up after an interruption |
| Webhook | webhook_url in this request | Servers 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.
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
languagewhen 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:
| How | Call | Best for |
|---|---|---|
| Event stream | GET /tiktok/live/transcribe/events | Receiving each sentence as it is said, over one HTTP connection for all your sessions |
| Polling | GET /tiktok/live/transcribe/{session_id} with after_seq | Simple integrations, and catching up after an interruption |
| Webhook | webhook_url in this request | Servers 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
room_id | string | One of three | A 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. |
username | string | One of three | The streamer's TikTok username, with or without @: their current LIVE. |
url | string | One of three | 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 | No | The 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_minutes | integer | No | The session stops by itself once this many minutes were transcribed, from 1 to 1440 (24 hours). Default 60. |
include_partials | boolean | No | Default 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_speakers | boolean | No | Default false. Add a speaker label (A, B...) to each final sentence. |
webhook_url | string | No | Where 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.
events_url: the event stream of this session.check_status_url: the session and its final sentences.
The Session
Every LIVE transcription endpoint returns the session in the same shape.
| Field | Description |
|---|---|
id | The session ID (a UUID). Keep it: it reads, streams and stops the session. |
status | starting, listening, ended or failed. See below. |
end_reason | Why an ended session ended. null otherwise. |
error | Why a failed session failed: code and message. null otherwise. |
room | The room being transcribed: id, title, url, author.unique_id, author.nickname. |
language | The language given at the start, or null. |
include_partials, include_speakers, max_duration_minutes | The options of the session. |
created_at | When the session was started (UTC, ISO 8601). |
started_at | When it started listening, or null. |
ended_at | When it ended, or null. |
duration_seconds | Seconds of the LIVE transcribed so far. |
segments_count | Final sentences so far: the seq of the last one. |
stop_requested | true once a stop was asked with DELETE, until the session has ended. |
status
status | Meaning |
|---|---|
starting | Accepted, not listening yet. It lasts a second or two. |
listening | The room is being transcribed. |
ended | Over. end_reason says why. |
failed | The session could not go on. error says why. What was transcribed until then stays readable. |
end_reason
end_reason | Meaning |
|---|---|
live_ended | The LIVE ended. |
stopped | You stopped the session. |
max_duration_reached | max_duration_minutes of the LIVE were transcribed. |
insufficient_credits | Your organization ran out of credits. |
no_reader | Nobody 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.code | Meaning |
|---|---|
transcription_unavailable | The transcription could not go on. |
stream_unavailable | The sound of the LIVE could not be read. |
internal_error | An 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
| Status | error | When |
|---|---|---|
400 | request_body_required | No JSON body |
400 | invalid_parameter | None, or more than one, of room_id, username, url; or a webhook_url that is not a public https URL |
400 | invalid_room_id / invalid_username / invalid_url | The room ID, username or URL is malformed |
400 | invalid_language / invalid_max_duration_minutes / invalid_include_partials / invalid_include_speakers | Wrong type, a language that is not a two-letter code, or max_duration_minutes outside 1-1440 |
402 | insufficient_credits | Not enough credits to start a session |
403 | access_denied | LIVE transcription is not enabled for your organization |
404 | live_not_found | The room ID does not exist, or the account does not exist or has never gone LIVE. Not billed. |
409 | live_ended | The LIVE is not on air: it has ended, or the streamer is offline. Not billed. |
429 | too_many_active_sessions | Your organization transcribes as many rooms at once as its plan allows (see the limits). Stop a session or wait for one to end. |
502 | live_room_unavailable | TikTok did not serve the room. Retry in a moment. Not billed. |
503 | system_overload | The 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
idasroom_id. - To know whether a streamer is on air before starting, call TikTok LIVE Room with their
username:statusisliveorended. Starting a session on a LIVE that is not on air answers409 live_ended. - A LIVE can last many hours and every minute transcribed is billed: set
max_duration_minutesto 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
ApiKeyAuthX-API-Key<token>API key authentication. Include your VidNavigator API key in the X-API-Key header.
application/json- body
Exactly one of room_id, username or url.
room_id?stringA 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.
^[0-9]{1,25}$username?stringThe streamer's TikTok username, with or without @: their current LIVE.
url?stringA 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?stringThe 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.
^[a-z]{2}$max_duration_minutes?integerThe 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.
1 <= value <= 144060include_partials?booleanAlso deliver the sentence being said, as partial events on the event stream and as partial on the session's GET.
falseinclude_speakers?booleanAdd a speaker label (A, B...) to each final sentence, to tell the voices of the LIVE apart.
falsewebhook_url?stringWhere 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
uriYour organization already transcribes this room: the running session is returned, no second one is started.
application/json- response
status?"success""success"data?curl -X POST 'https://api.vidnavigator.com/v1/tiktok/live/transcribe' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" }}