uniqueIdstringzorunlu
User uniqueId
https://api.sandbase.ai/v1/api/tiktok/web/user-live-detailReturns current broadcast information for a TikTok user based on their unique handle. Provides stream quality options and room playback data.
[
{
"data": {
"data": {
"liveRoom": {
"coverUrl": "https://p16-webcast.tiktokcdn.com/webcast-va/15fc868294ee6483ec460838b7e38dd6.png~tplv-obj.image",
"gameTagId": 0,
"hevcStreamData": {
"pull_data": {
"options": {
"default_preview_quality": {
"icon_type": 0,
"level": 0,
"name": "",
"resolution": "",
"sdk_key": "",
"v_codec": ""
},
"default_quality": {
"icon_type": 0,
"level": 0,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"forced_low_latency": false,
"max_drm_lenient_size": "",
"max_drm_lenient_size_backup": "",
"qualities": [
{
"icon_type": 6,
"level": 10,
"name": "Original",
"resolution": "",
"sdk_key": "origin",
"v_codec": ""
},
{
"icon_type": 4,
"level": 5,
"name": "1080p",
"resolution": "",
"sdk_key": "uhd",
"v_codec": ""
},
{
"icon_type": 3,
"level": 3,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"… 2 more items in the full response"
],
"show_quality_button": false,
"support_low_latency": false
},
"stream_data": "{\"common\":{\"session_id\":\"173-2026100620410359FF1FC5C1CE4614A9B5\",\"room_id\":7691362796675582733,\"rule_ids\":\"{\\\"ab_version_trace\\\":null,\\\"sched\\\":\\\"{\\\\\\\"result\\\\\\\":{\\\\\\\"hit\\\\\\\":\\\\\\\"default\\\\\\\",\\\\\\\"cdn\\\\\\\":2546,\\\\\\\"cdn_name\\\\\\\":\\\\\\\"fcdn\\\\\\\",\\\\\\\"rule_id\\\\\\\":-1}}\\\"}\",\"default_audio_track\":\"en\"},\"data\":{\"ld\":{\"main\":{\"flv\":\"https://pull-f5-tt01.tiktokcdn.com/activity/stream-3578942064601858998_ld5.flv?expire=1792500063&sign=192696c460d9354d24f40d458fd2638d\",\"hls\":\"https://pull-hls-f16-tt01.tiktokcdn.com/activity/stream-3578942064601858998_ld5/index.m3u8?expire=1792500063&sign=0f2fe00c4e1786de56db873…"
},
"push_data": {
"push_stream_level": 0,
"resolution_params": {},
"stream_data": ""
}
},
"liveRoomMode": 1,
"liveRoomStats": {
"enterCount": 363455,
"userCount": 1
},
"liveSubOnly": 0,
"multiStreamScene": 0,
"multiStreamSource": 0,
"paidEvent": {
"event_id": 7689516384870466000,
"paid_type": 0
},
"squareCoverImg": "https://p16-webcast.tiktokcdn.com/webcast-oci-tx-va-transfer-us/73621695e430b074fd2b2ac5f2a89656~tplv-obj.image",
"startTime": 1790785060,
"status": 4,
"streamData": {
"pull_data": {
"options": {
"default_preview_quality": {
"icon_type": 0,
"level": 0,
"name": "",
"resolution": "",
"sdk_key": "",
"v_codec": ""
},
"default_quality": {
"icon_type": 0,
"level": 0,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"forced_low_latency": false,
"max_drm_lenient_size": "",
"max_drm_lenient_size_backup": "",
"qualities": [
{
"icon_type": 6,
"level": 10,
"name": "Original",
"resolution": "",
"sdk_key": "origin",
"v_codec": ""
},
{
"icon_type": 4,
"level": 5,
"name": "1080p",
"resolution": "",
"sdk_key": "uhd",
"v_codec": ""
},
{
"icon_type": 3,
"level": 3,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"… 2 more items in the full response"
],
"show_quality_button": false,
"support_low_latency": false
},
"stream_data": "{\"common\":{\"session_id\":\"173-2026100620410359FF1FC5C1CE4614A9B5\",\"room_id\":7691362796675582733,\"rule_ids\":\"{\\\"ab_version_trace\\\":null,\\\"sched\\\":\\\"{\\\\\\\"result\\\\\\\":{\\\\\\\"hit\\\\\\\":\\\\\\\"default\\\\\\\",\\\\\\\"cdn\\\\\\\":2546,\\\\\\\"cdn_name\\\\\\\":\\\\\\\"fcdn\\\\\\\",\\\\\\\"rule_id\\\\\\\":-1}}\\\"}\",\"default_audio_track\":\"en\"},\"data\":{\"hd\":{\"main\":{\"flv\":\"https://pull-f5-tt01.tiktokcdn.com/activity/stream-3578942064601858998_hd.flv?expire=1792500063&sign=d0fadf8cd4f88b7530d9bfe3202a24a9\",\"hls\":\"https://pull-hls-f16-tt01.tiktokcdn.com/activity/stream-3578942064601858998_hd/index.m3u8?expire=1792500063&sign=1c7f352616f85b1fbc9827a3c…"
},
"push_data": {
"push_stream_level": 0,
"resolution_params": {},
"stream_data": ""
}
},
"streamId": "3578942064601858998",
"title": "TikTok LIVE x LACMA"
},
"stats": {
"followerCount": 96100404,
"followingCount": 1
},
"user": {
"avatarLarger": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:1080:1080.webp?dr=14579&refresh_token=dcc414d2&x-expires=1791460800&x-signature=zlm9l5x7zTbpSptd83cBJs2YFqY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",
"avatarMedium": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:720:720.webp?dr=14579&refresh_token=37ced7c4&x-expires=1791460800&x-signature=GnTtW%2FLDH0UMERodyjGBgrCtL88%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",
"avatarThumb": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:100:100.webp?dr=14579&refresh_token=97735f26&x-expires=1791460800&x-signature=EoslPslve35SlCbeREaR8GQfFrs%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",
"followStatus": 0,
"id": "107955",
"nickname": "TikTok",
"roomId": "7691362796675582733",
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"secret": false,
"signature": "Your next discovery is waiting on TikTok.",
"status": 4,
"uniqueId": "tiktok",
"verified": true
}
},
"extra": {
"id": "2026100620410359FF1FC5C1CE4614A9B5"
},
"message": "",
"statusCode": 0
}
}
]Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
Returns the current live room details for a TikTok user, including the stream title, viewer counts, available playback qualities and basic profile data. It needs one input: the user's uniqueId handle, such as tiktok.
Original, 1080p, 720p) offered for a live stream.roomId of a user so you can pass it to other live room APIs.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/user-live-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uniqueId": "tiktok"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uniqueId | string | Yes | User uniqueId |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"liveRoom": {
"coverUrl": "https://p16-webcast.tiktokcdn.com/webcast-va/2d40841fa55af281b3c825908f04ebc1.jp…",
"gameTagId": 0,
"hevcStreamData": {
"pull_data": {
"options": {
"default_preview_quality": {
"icon_type": 0,
"level": 0,
"name": "",
"resolution": "",
"sdk_key": "",
"v_codec": ""
},
"default_quality": {
"icon_type": 0,
"level": 0,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"forced_low_latency": false,
"max_drm_lenient_size": "",
"max_drm_lenient_size_backup": "",
"qualities": [
{
"icon_type": 6,
"level": 10,
"name": "Original",
"resolution": "",
"sdk_key": "origin",
"v_codec": ""
}
],
"show_quality_button": false,
"support_low_latency": false
},
"stream_data": "{\"common\":{\"session_id\":\"173-202611031544314D3AD99C28275204E5E8\",\"room_id\":76936…"
},
"push_data": {
"push_stream_level": 0,
"resolution_params": {},
"stream_data": ""
}
},
"liveRoomMode": 1,
"liveRoomStats": {
"enterCount": 382959,
"userCount": 1
},
"liveSubOnly": 0,
"multiStreamScene": 0,
"multiStreamSource": 0,
"paidEvent": {
"event_id": 0,
"paid_type": 0
},
"squareCoverImg": "",
"startTime": 1791323812,
"status": 4
},
"stats": {
"followerCount": 96545668,
"followingCount": 1
},
"user": {
"avatarLarger": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e…",
"avatarMedium": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e…",
"avatarThumb": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e…",
"followStatus": 0,
"id": "107955",
"nickname": "TikTok",
"roomId": "7693676830666705678",
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"secret": false,
"signature": "Your nex…",
"status": 4,
"uniqueId": "tiktok"
}
},
"extra": {
"id": "202611031544314D3AD99C28275204E5E8"
},
"message": "",
"statusCode": 0
}
| Field | Meaning |
|---|---|
data.liveRoom.title | Title of the live room. |
data.liveRoom.coverUrl | URL of the cover image for the live room. |
data.liveRoom.startTime | Start time of the broadcast. The value looks like a Unix timestamp in seconds. |
data.liveRoom.status | Numeric status code of the live room. The response does not explain what each value means. |
data.liveRoom.liveRoomStats.enterCount / data.liveRoom.liveRoomStats.userCount | Viewer counts for the room. enterCount is the number of entries and userCount is the user count reported for the room. |
data.liveRoom.streamData.pull_data.options.qualities[].name / data.liveRoom.streamData.pull_data.options.qualities[].sdk_key | Display name and key of each available quality level, such as Original with origin, or 720p with hd. |
data.liveRoom.streamData.pull_data.options.default_quality.name | Name of the default playback quality. |
data.liveRoom.streamData.pull_data.stream_data | String that holds the stream session data. It starts with a common object that contains session_id and room_id. |
data.user.roomId | ID of the user's live room, as a string. |
data.user.nickname / data.user.signature / data.user.verified | Display name, bio text and verified flag of the account. |
data.stats.followerCount / data.stats.followingCount | Number of followers and number of accounts the user follows. |
uniqueId without the @ sign. The example uses tiktok.data.liveRoom.hevcStreamData has the same structure as data.liveRoom.streamData.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/user-live-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uniqueId": "tiktok"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
uniqueIdstringzorunluUser uniqueId
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
[
{
"data": {
"data": {
"liveRoom": {
"coverUrl": "https://p16-webcast.tiktokcdn.com/webcast-va/15fc868294ee6483ec460838b7e38dd6.png~tplv-obj.image",
"gameTagId": 0,
"hevcStreamData": {
"pull_data": {
"options": {
"default_preview_quality": {
"icon_type": 0,
"level": 0,
"name": "",
"resolution": "",
"sdk_key": "",
"v_codec": ""
},
"default_quality": {
"icon_type": 0,
"level": 0,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"forced_low_latency": false,
"max_drm_lenient_size": "",
"max_drm_lenient_size_backup": "",
"qualities": [
{
"icon_type": 6,
"level": 10,
"name": "Original",
"resolution": "",
"sdk_key": "origin",
"v_codec": ""
},
{
"icon_type": 4,
"level": 5,
"name": "1080p",
"resolution": "",
"sdk_key": "uhd",
"v_codec": ""
},
{
"icon_type": 3,
"level": 3,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"… 2 more items in the full response"
],
"show_quality_button": false,
"support_low_latency": false
},
"stream_data": "{\"common\":{\"session_id\":\"173-2026100620410359FF1FC5C1CE4614A9B5\",\"room_id\":7691362796675582733,\"rule_ids\":\"{\\\"ab_version_trace\\\":null,\\\"sched\\\":\\\"{\\\\\\\"result\\\\\\\":{\\\\\\\"hit\\\\\\\":\\\\\\\"default\\\\\\\",\\\\\\\"cdn\\\\\\\":2546,\\\\\\\"cdn_name\\\\\\\":\\\\\\\"fcdn\\\\\\\",\\\\\\\"rule_id\\\\\\\":-1}}\\\"}\",\"default_audio_track\":\"en\"},\"data\":{\"ld\":{\"main\":{\"flv\":\"https://pull-f5-tt01.tiktokcdn.com/activity/stream-3578942064601858998_ld5.flv?expire=1792500063&sign=192696c460d9354d24f40d458fd2638d\",\"hls\":\"https://pull-hls-f16-tt01.tiktokcdn.com/activity/stream-3578942064601858998_ld5/index.m3u8?expire=1792500063&sign=0f2fe00c4e1786de56db873…"
},
"push_data": {
"push_stream_level": 0,
"resolution_params": {},
"stream_data": ""
}
},
"liveRoomMode": 1,
"liveRoomStats": {
"enterCount": 363455,
"userCount": 1
},
"liveSubOnly": 0,
"multiStreamScene": 0,
"multiStreamSource": 0,
"paidEvent": {
"event_id": 7689516384870466000,
"paid_type": 0
},
"squareCoverImg": "https://p16-webcast.tiktokcdn.com/webcast-oci-tx-va-transfer-us/73621695e430b074fd2b2ac5f2a89656~tplv-obj.image",
"startTime": 1790785060,
"status": 4,
"streamData": {
"pull_data": {
"options": {
"default_preview_quality": {
"icon_type": 0,
"level": 0,
"name": "",
"resolution": "",
"sdk_key": "",
"v_codec": ""
},
"default_quality": {
"icon_type": 0,
"level": 0,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"forced_low_latency": false,
"max_drm_lenient_size": "",
"max_drm_lenient_size_backup": "",
"qualities": [
{
"icon_type": 6,
"level": 10,
"name": "Original",
"resolution": "",
"sdk_key": "origin",
"v_codec": ""
},
{
"icon_type": 4,
"level": 5,
"name": "1080p",
"resolution": "",
"sdk_key": "uhd",
"v_codec": ""
},
{
"icon_type": 3,
"level": 3,
"name": "720p",
"resolution": "",
"sdk_key": "hd",
"v_codec": ""
},
"… 2 more items in the full response"
],
"show_quality_button": false,
"support_low_latency": false
},
"stream_data": "{\"common\":{\"session_id\":\"173-2026100620410359FF1FC5C1CE4614A9B5\",\"room_id\":7691362796675582733,\"rule_ids\":\"{\\\"ab_version_trace\\\":null,\\\"sched\\\":\\\"{\\\\\\\"result\\\\\\\":{\\\\\\\"hit\\\\\\\":\\\\\\\"default\\\\\\\",\\\\\\\"cdn\\\\\\\":2546,\\\\\\\"cdn_name\\\\\\\":\\\\\\\"fcdn\\\\\\\",\\\\\\\"rule_id\\\\\\\":-1}}\\\"}\",\"default_audio_track\":\"en\"},\"data\":{\"hd\":{\"main\":{\"flv\":\"https://pull-f5-tt01.tiktokcdn.com/activity/stream-3578942064601858998_hd.flv?expire=1792500063&sign=d0fadf8cd4f88b7530d9bfe3202a24a9\",\"hls\":\"https://pull-hls-f16-tt01.tiktokcdn.com/activity/stream-3578942064601858998_hd/index.m3u8?expire=1792500063&sign=1c7f352616f85b1fbc9827a3c…"
},
"push_data": {
"push_stream_level": 0,
"resolution_params": {},
"stream_data": ""
}
},
"streamId": "3578942064601858998",
"title": "TikTok LIVE x LACMA"
},
"stats": {
"followerCount": 96100404,
"followingCount": 1
},
"user": {
"avatarLarger": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:1080:1080.webp?dr=14579&refresh_token=dcc414d2&x-expires=1791460800&x-signature=zlm9l5x7zTbpSptd83cBJs2YFqY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",
"avatarMedium": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:720:720.webp?dr=14579&refresh_token=37ced7c4&x-expires=1791460800&x-signature=GnTtW%2FLDH0UMERodyjGBgrCtL88%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",
"avatarThumb": "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:100:100.webp?dr=14579&refresh_token=97735f26&x-expires=1791460800&x-signature=EoslPslve35SlCbeREaR8GQfFrs%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",
"followStatus": 0,
"id": "107955",
"nickname": "TikTok",
"roomId": "7691362796675582733",
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"secret": false,
"signature": "Your next discovery is waiting on TikTok.",
"status": 4,
"uniqueId": "tiktok",
"verified": true
}
},
"extra": {
"id": "2026100620410359FF1FC5C1CE4614A9B5"
},
"message": "",
"statusCode": 0
}
}
]Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
TikTok | $0.001 çağrı başına | JSON |
TikTok | $0.001 çağrı başına | JSON |
TikTok | $0.001 çağrı başına | JSON |
TikTok | $0.001 çağrı başına | JSON |
TikTok | $0.001 çağrı başına | JSON |
TikTok | $0.05 çağrı başına | JSON |
Kılavuzlar:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/tiktok/web/user-live-detail adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: uniqueId (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. TikTok User Stream Detail, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. TikTok API erişimi için ayrıca başvuru yapmanız gerekmez.