TikTok data API

TikTok Live API

Send a TikTok username and find out whether the creator is broadcasting LIVE right now. When they are, you get the room id, title, how many people are watching and links to the stream in several qualities, plus audio only. When they are not, you get the creator's details and is_live: false.

Request

GET /v1/tiktok/profiles/{username}/live · 1 credit per successful call

cURL
curl "https://api.igramapi.com/v1/tiktok/profiles/example_creator/live" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK · application/json
{
  "username": "example_creator",
  "is_live": true,
  "room_id": "7401234500000001234",
  "title": "Q&A with Example Creator",
  "cover_url": "https://v16-webapp-prime.tiktok.com/video/tos/example/live-cover.jpeg",
  "started_at": 1763280000,
  "viewer_count": 1284,
  "total_views": 9120,
  "creator": {
    "user_id": "6812345678901234567",
    "sec_uid": "MS4wLjABAAAAexample",
    "username": "example_creator",
    "nickname": "Example Creator",
    "avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
    "bio": "Street food and travel",
    "followers": 1820000,
    "is_verified": true
  },
  "streams": {
    "flv": "https://pull-flv.example.com/stage/stream-7401234500000001234_hd.flv",
    "flv_origin": null,
    "flv_hd": "https://pull-flv.example.com/stage/stream-7401234500000001234_hd.flv",
    "flv_sd": null,
    "flv_ld": null,
    "audio_only": "https://pull-flv.example.com/stage/stream-7401234500000001234.flv",
    "cmaf": "https://pull-flv.example.com/stage/stream-7401234500000001234_hd/index.mpd"
  },
  "proxy_streams": {
    "flv": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234_hd.flv&exp=1763301600&sig=3f9c0a",
    "flv_origin": null,
    "flv_hd": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234_hd.flv&exp=1763301600&sig=3f9c0a",
    "flv_sd": null,
    "flv_ld": null,
    "audio_only": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234.flv&exp=1763301600&sig=71be42"
  },
  "hevc_streams": {
    "flv": "https://pull-flv.example.com/stage/stream-7401234500000001234_hd5.flv",
    "flv_origin": "https://pull-flv.example.com/stage/stream-7401234500000001234.flv",
    "flv_hd": "https://pull-flv.example.com/stage/stream-7401234500000001234_hd5.flv",
    "flv_sd": "https://pull-flv.example.com/stage/stream-7401234500000001234_zsd5.flv",
    "flv_ld": "https://pull-flv.example.com/stage/stream-7401234500000001234_ld5.flv",
    "audio_only": null,
    "cmaf": "https://pull-flv.example.com/stage/stream-7401234500000001234/index.mpd"
  },
  "proxy_hevc_streams": {
    "flv": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234_hd5.flv&exp=1763301600&sig=a1d07c",
    "flv_origin": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234.flv&exp=1763301600&sig=c55e19",
    "flv_hd": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234_hd5.flv&exp=1763301600&sig=a1d07c",
    "flv_sd": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234_zsd5.flv&exp=1763301600&sig=0b86f3",
    "flv_ld": "https://live-relay.example.com/?url=https%3A//pull-flv.example.com/stage/stream-7401234500000001234_ld5.flv&exp=1763301600&sig=9e2d44",
    "audio_only": null
  },
  "cached": false
}

All values above are made-up examples. Media links are temporary TikTok CDN addresses.

Parameters

NameInDescription
usernamerequired path TikTok username. A leading @ or a profile URL is accepted. GET /v1/tiktok/live?username= does the same.

Response fields

FieldTypeDescription
usernamestringThe creator's current username.
is_livebooleanTrue while the creator is broadcasting LIVE.
room_idstring | nullNumeric id of the live room. Null when offline.
title / cover_urlstring | nullTitle and preview picture of the broadcast. When offline they can hold the last broadcast's details.
started_atinteger | nullUnix timestamp when the broadcast started. Null when offline.
viewer_count / total_viewsinteger | nullPeople watching now, and everyone who has entered the room. Null when offline.
creatorobjectuser_id, sec_uid, username, nickname, avatar, bio, followers and is_verified.
streamsobject | nullH.264 stream links: flv (the primary one), flv_origin (Original), flv_hd (720p), flv_sd (540p), flv_ld (360p), audio_only and cmaf. Keys TikTok does not offer are null.
proxy_streamsobject | nullThe FLV links and audio_only through the edge relay, for use in a browser. Same keys as streams, without cmaf.
hevc_streamsobject | nullThe same qualities as H.265 streams, often the only source of Original, 540p and 360p. audio_only is not repeated here; use the one in streams.
proxy_hevc_streamsobject | nullThe H.265 FLV links through the edge relay, for browsers that can decode H.265. Same keys as hevc_streams, without audio_only and cmaf.
cachedbooleanTrue when served from the 60-second cache.

Live or not, in one call

is_live tells you whether the creator is broadcasting right now. An offline creator is a normal answer, not an error.

Viewers and stream links

While live you get viewer_count, total_views, started_at and FLV links in Original, 720p, 540p and 360p, plus an audio-only link.

H.264 and H.265

Every broadcast has an H.264 set (streams, plays almost everywhere) and an H.265 set (hevc_streams, sharper and smoother). Many broadcasts offer only 720p as H.264 and the full ladder as H.265.

Links a web page can play

proxy_streams and proxy_hevc_streams carry the same links through an edge relay that adds CORS headers, so a player in a browser can use them.

1 credit, no login

A check is 1 credit on every plan, including Free. The answer for a creator is kept for 60 seconds, so a live count is at most about a minute old.

Reading the answer

Look at is_live first. When it is true, room_id, viewer_count, total_views, started_at and the stream links are filled in. When it is false they are all null.

An offline creator can still have a title and cover_url: TikTok keeps the details of the last broadcast. Decide by is_live, not by whether a title is present. An unknown username returns HTTP 404.

Playing the stream

The stream links are live FLV streams. Browsers do not play FLV by themselves: use a library such as mpegts.js in a web page, or open the link in VLC, ffplay or OBS. In a browser, use the proxy_ links; in a server or an app, use the direct ones. cmaf is a manifest and has no relay entry.

Quality names are TikTok's own: Original (often 1080p), 720p, 540p and 360p. A broadcast does not always offer all of them in both sets: a common case is 720p plus audio in streams, and Original, 720p, 540p and 360p in hevc_streams. Look at which keys are not null. H.265 needs a player that can decode it: VLC, ffplay, Safari, and recent Chrome and Edge on hardware that supports it. Check support first and fall back to the H.264 link.

Stream links are temporary and stop working when the broadcast ends, so ask again instead of storing them. To follow a creator, check again when you need fresh numbers: every check costs 1 credit.

Frequently asked questions

How fresh is the viewer count?

The answer for a creator is kept for 60 seconds, so the count and the live status are at most about a minute old. A new request after that fetches fresh data.

Why is a title shown when the creator is offline?

TikTok keeps the details of a creator's last broadcast. Use is_live to decide whether they are on air; the other live fields are null when they are not.

Why do I only get 720p in streams?

TikTok often publishes only 720p and audio as H.264. The other qualities (Original, 540p and 360p) are in hevc_streams as H.265. Use those when your player can decode H.265.

Can I watch the stream in a web page?

Yes. Play a proxy_streams link, or a proxy_hevc_streams link where the browser can decode H.265, with a library such as mpegts.js. The relay adds the CORS headers that a browser needs. Some browsers, such as Safari on iPhone, may not support it, so give those visitors the link to open in a player app.

Can I record a live stream?

The links are standard live streams, so tools such as ffplay or OBS can read them. You are responsible for using them lawfully and in line with TikTok's terms and the creator's rights. Read our Acceptable Use Policy first.

Is it on the Free plan?

Yes. The Live API works on every plan, including Free, and costs 1 credit per check.

Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.

Try the TikTok Live API free

Create a key and make your first request in minutes. 100 free credits every month.