Get a TikTok LIVE’s stream URLs at every quality and record them with ffmpeg, automatically when a creator you follow goes live.
{
"context_id": "ctx_f070618603df296cc42f",
"room_id": "7708619922263280397",
"room": {},
"stream_urls": {
"all": [],
"cmaf": [],
"flv": [],
"hls": []
},
"quality": "origin",
"probe": null
}To record a TikTok LIVE, call /v1/live/stream with the room ID. It returns the stream URLs for each quality in FLV, HLS and CMAF formats. Point ffmpeg at the URL (for example `ffmpeg -i "<flv_url>" -c copy stream.mp4`) to save it without re-encoding, and check /v1/live/check-alive to stop when the stream ends. Combine it with LIVE search or a list of room IDs to start recording automatically. LIVE endpoints are on Starter and up; only record streams you have the right to record.
Every quality level with its FLV, HLS and CMAF URL.
stream_urlsflvhlscmafqualityThe room’s title, host and stats for naming and metadata.
roomtitleKnow when the stream ends to stop the recorder.
check-aliveSave chat and gift events alongside the video.
live/chatCall /v1/live/stream and pick the quality you want.
Run ffmpeg with -c copy to save the stream as it arrives.
Poll /v1/live/check-alive and end ffmpeg when the room goes offline.
The example calls GET /v1/live/stream. Swap the tab for your language, or open it in the API reference.
import { TikUltra } from 'tikultra'
const client = new TikUltra({ apiKey: process.env.TIKULTRA_KEY })
const res = await client.request('GET', '/v1/live/stream', { params: { room_id: '7708619922263280397' } })
console.log(res.data)Stream URLs are 2 reqs per call; recording itself costs nothing extra.
Plans include a monthly request quota; past it, the same per-request price applies. Failed calls are never billed. Estimate your cost
| Starter $49/mo | $2.45 |
|---|---|
| Growth $159/mo | $1.82 |
| Scale $499/mo | $1.33 |
Screen recording loses quality and needs a machine per stream. Recording the stream URL saves the original video at full quality, for many streams at once, on a server.
Record streams and cut highlights for Shorts and Reels.
Keep copies of your own or your clients’ LIVEs.
Record sponsored LIVEs as proof of delivery.
Sign up and get 500 free requests — test public data & browser tools with no credit card, then upgrade anytime.