A recorded video waits for you. A LIVE does not.

TikTok LIVE Transcription API: Read What a LIVE Says While It Is On Air

Published By Hatem Mezlini

Video monitoring rests on a comfortable assumption: the video is still there when you get to it. You search, you collect URLs, and you transcribe them tonight or next week. A LIVE breaks that assumption. It lasts for hours, many rooms are on air at the same moment, and once a room ends there is nothing left to download.

If you moderate a platform, check claims, follow a brand or look for fraud, the only moment to read a LIVE is while it is said. Nobody is going to watch a hundred rooms at once to do it.

Below: what real time means here, a worked example from a keyword to a stream of sentences, how to choose between the event stream, polling and a webhook, and a few design tips.

Key Takeaways

  • A final sentence never changes: it is delivered once, typically one to two seconds after it was said, with a number (seq) that starts at 1 and has no gaps.
  • One connection for all your rooms: the event stream carries every session of your organization and resumes from the last id you received.
  • Partials are for a screen: ask for include_partials only when a person reads the text live. Store and analyze final sentences.
  • A session always ends: with the LIVE, when you stop it, or at max_duration_minutes. Its transcript stays readable for 24 hours.
TikTok LIVE Transcription API: LIVE rooms on air turned into a real-time stream of numbered, timestamped sentences

Why LIVE is the blind spot of video monitoring

There is nothing to download afterwards. A published video has a URL you can come back to. A LIVE room has a moment. A pipeline that collects links and processes them later never sees what was said on LIVE.

It lasts for hours. A short video is read in one call. A LIVE has no length when you start listening: it ends when the streamer decides. Whatever reads it has to keep reading, and hand you the text as it goes, not at the end.

There are many at once. A keyword that matters to you can be on air in dozens of rooms at the same time. A person can follow one. Software can follow all of them, if it receives text.

LIVE search already answers “which rooms are on air for this keyword?”, with the viewers of each room. Real-time transcription answers the next question: what is being said in them.

What real time means here

You start a session on a room, and from then on its sound is transcribed continuously. The transcript is a list of final sentences. A final sentence is delivered once, typically one to two seconds after it was said, and it never changes. It carries its number in the session (seq), its start and end in seconds from the start of the session, its text, its language and its time in UTC.

With include_partials, you also receive the sentence being said, as partial events updated several times a second. A partial can still change. It has no id, it is not replayed after a reconnection, and the final sentence replaces it.

On the event stream, that looks like this. The values are placeholders that show the shape, not the transcript of a real room.

bash

Two more things are decided for each sentence. The language is detected sentence by sentence, so a LIVE that mixes languages keeps the language of each one; pass language when you know it. With include_speakers, each final sentence carries a label (A, B...) that tells voices apart. The labels do not identify people.

A worked example, end to end

The job: follow what is said in the ten most watched rooms on air for a keyword. Five steps, over plain HTTP. The Python and JavaScript SDKs, from version 3.5.0, have methods for the same calls.

1. Find the rooms. POST /v1/tiktok/live/search returns the rooms on air for a keyword, in one country. Each result has its room id, its streamer and its viewers. To follow one known streamer, skip the search and start the session with username.

2. Start a session per room. POST /v1/tiktok/live/transcribe takes exactly one of room_id, username or url, and answers at once with a session. Its status is starting, then listening a second or two later. There is one session per room and organization: starting a room you already transcribe answers 200 with the running session, so the call is safe to repeat.

3. Read one event stream for all of them. GET /v1/tiktok/live/transcribe/events is a Server-Sent Events stream: a connection that stays open and carries the events started, final, partial and ended of every session of your organization. Each event is a JSON object with its session_id. The stream needs the X-API-Key header, which a browser EventSource cannot send: read it with fetch and a stream reader, or with requests and iter_lines.

4. Resume after a cut. Connections end: a network cut, a restart on your side, a deployment on ours. Every event except a partial has an id that grows by one. Reconnect with the last id you received, in the Last-Event-ID header or in after, and the stream resumes with the event that followed. Without an id, the stream starts with the events to come; after=0 replays every event still kept.

5. Stop. A session ends by itself when the LIVE ends or when max_duration_minutes is reached. DELETE /v1/tiktok/live/transcribe/{session_id} stops it earlier, within a few seconds. The ended event says why in end_reason: live_ended, stopped, max_duration_reached or insufficient_credits.

python

The script starts reading with after=0 so that nothing said between the start of the sessions and the opening of the stream is missed, and skips the events of sessions it did not start. A service that runs all day stores the last id it handled and starts again from it.

Event stream, polling or webhook

The event stream is one of three ways to read a session. They return the same final sentences, and they can be combined.

WayHow it worksPick it when
Event streamOne connection, kept open, carries the events of all your sessions. It resumes from the last id you received.A process of yours stays up, you follow many rooms, and you want each sentence as it is said.
PollingOne GET per session returns its state and the final sentences after after_seq.A first integration, a scheduled job, or catching up after an interruption.
WebhookThe final sentences are POSTed to your URL as they come, at most one delivery every two seconds, then the end of the session.Your backend already receives webhooks and you would rather be called than keep a connection open.

Polling is GET /v1/tiktok/live/transcribe/{session_id}. It returns the session and a page of its final sentences, in order. Pass the pagination.next_after_seq of an answer as after_seq of the next call, and you receive only what was said since. It is the simplest way to start, and the way to read a whole session again.

A webhook is set per session, with webhook_url in the start request: the default webhook of your account is not used here. Your URL receives tiktok_live_transcribe.segments, with the final sentences since the previous delivery, then tiktok_live_transcribe.ended. Deliveries are signed like the other webhooks, and the X-VidNavigator-Task-Id header holds the session id.

A combination that works well: the event stream for the sentences as they are said, and one polling call when a session ends, to check that you hold every sentence. The ended event carries segments_count, the number of the last sentence.

python

Design tips

Set max_duration_minutes. The default is 60 minutes, and a LIVE can last many hours: a session stops at the maximum you gave it, with end_reason: "max_duration_reached". Set what you need, from 1 to 1440. It is also what bounds a room you forgot.

Use include_partials only when you display the text live. Partials arrive several times a second, change, and are not replayed. They make a caption feel alive on a screen. For storage, alerts and analysis, the final sentences are enough, and they are all you need to keep.

Key your storage on session_id and seq. A replay after a reconnection, or a webhook combined with polling, can hand you the same sentence twice. With that key, writing it again changes nothing. And since seq has no gaps, a missing number tells you exactly what to fetch with after_seq.

Handle 503 system_overload by retrying later. A start is never put on hold. When the service cannot take one more room, the start call answers at once with system_overload, retry_after_seconds in the body and a Retry-After header. Nothing was started and nothing was charged: wait that long, then call again.

Treat a closed stream as normal. The stream sends a : keep-alive comment every 15 seconds when it has nothing else to say, so a connection that stays silent much longer is dead. Reconnect with the last id, always.

Tell the difference between an end and a failure. A session that is ended has an end_reason. A session that is failed has an error with a code. Both arrive as an ended event, with the status in its data.

Six things to build with it

1. Trust and safety review. Follow the rooms your policies care about and run your own rules on each sentence as it arrives. A reviewer opens the room with the sentence and its second, and does not have to watch hours of LIVE to find it.

2. Brand and compliance monitoring. On a LIVE, a product claim or a required disclosure is said aloud, not written. Start from a LIVE search on your brand or your category, and search the sentences for the names and the phrases you track.

3. Fraud detection. A scheme pitched on LIVE leaves nothing to review once the room ends. Match each sentence against your patterns while the room is on air, and keep the transcript with its timestamps as a record.

4. Social listening. Mentions counted from captions and hashtags miss what is spoken. Read what is said about a topic across many rooms at once, with the language of each sentence and, from LIVE search, the viewers of each room.

5. Media monitoring. Follow a newsroom, a press conference or a creator who went LIVE by username, and receive the words as text while the broadcast goes on.

6. An agent that listens. Feed the final sentences to an AI agent as they arrive: it keeps a summary of the room, answers questions about what was just said, or decides when a person should look.

What it costs

Real-time LIVE transcription is available on every plan. It is billed by the time transcribed: 1 credit = 30 minutes of LIVE.

The pricing page shows what a credit is, and the usage costs page of the documentation holds the billing rules.

Conclusion

A LIVE is the one kind of video you cannot read later. With a session per room and one event stream for all of them, what is said on air becomes numbered, timed sentences in your own system, a second or two behind the room. The solution page has the parameters, the fields and the errors in one place.

Frequently Asked Questions

What does real time mean for a LIVE transcript?
A final sentence is delivered typically one to two seconds after it was said. It is numbered, timed in seconds from the start of the session, and it never changes afterwards. With include_partials, the sentence being said is streamed as well, updated several times a second.
What is the difference between a final and a partial sentence?
A final sentence is complete: it has a number (seq), a start, an end and a language, and it is delivered once. A partial is the sentence being said: it can still change, it has no id on the event stream, it is not replayed, and the final sentence replaces it. Store final sentences; show partials.
Can one connection follow several rooms?
Yes. One event stream, GET /v1/tiktok/live/transcribe/events, carries the events of every session of your organization, and each event carries its session_id. Add session_id to the request to keep the events of one session only.
What happens if my reader is down for a few minutes?
Nothing is lost. Every event except a partial has an id that grows by one. Reconnect with the last id you received, in the Last-Event-ID header or in the after parameter, and the stream resumes with the event that followed. You can also read a session again with the polling call and after_seq: a session and its sentences stay readable for 24 hours after it ends. A session must be followed, though: when nobody reads it for a short while (no stream open on it, no read of it, no webhook delivering), it stops by itself with end_reason no_reader, so a crashed client does not keep paying. A webhook keeps it going while your stream reader is down.
Event stream, polling or webhook: which one should I use?
The event stream when a process of yours stays up and you want each sentence as it is said, for many rooms over one connection. Polling for a simple integration, a scheduled job, or to catch up after an interruption. A webhook when your backend prefers to be called. The three can be combined.
Can I transcribe a LIVE after it has ended?
No. The room must be on air when the session starts: a LIVE that has ended answers 409 live_ended. A recorded TikTok video is another job, done with the TikTok transcription endpoints.
Do I need a TikTok account, a login or a browser?
No. There is no TikTok account, no login, no browser and nothing to install on your side. You call the API with your VidNavigator key.
Which plans include LIVE transcription?
Every plan. How many rooms you can transcribe at the same time depends on the plan, and Enterprise plans have no fixed limit: the limits page of the documentation gives the numbers. When the service cannot take one more room, the start call answers 503 system_overload at once and nothing is started. The price is on the pricing page.

Next Steps

TikTok LIVE Transcription API: Read What a LIVE Says While It Is On Air | VidNavigator AI