100 free credits. No credit card required. Get a key

TikTok live status API

Whether a TikTok account is live now, with its live room: title, start time, viewers and stream URLs.

GET /v1/tiktok/users/{handle}/live1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/users/charlidamelio/live",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"user": {
"id": "5831967",
"uniqueId": "charlidamelio",
"roomId": "7652613286029986574",
"status": 4,
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"nickname": "charli d’amelio",
"secUid": "MS4wLjABAAAA-VASjiXTh7wDDyXvjk10VFhMWUAoxr8bgfO1kAL1-9s",
"secret": false,
"verified": true,
"signature": "orca enthusiast\nmeg thee stallion fan\ni post on youtube on saturdays (for the most part)",
"followStatus": 0
},
"stats": {
"followingCount": 1460,
"followerCount": 160304485
},
"liveRoom": {
"title": "",
"startTime": 1781762987,
"status": 4,
"liveRoomStats": {
"enterCount": 1,
"userCount": 1
},
"streamData": {
"pull_data": {
"options": {
"default_preview_quality": {
"…": "6 fields"
},
"default_quality": {
"…": "6 fields"
},
"forced_low_latency": false,
"max_drm_lenient_size": "",
"max_drm_lenient_size_backup": "",
"qualities": [
"…"
],
"show_quality_button": false,
"support_low_latency": false
},
"stream_data": "{\"common\":{\"session_id\":\"173-2026112500244944CC88B4C3DBDB3C4770\",\"room_id\":765261328602998…"
},
"push_data": {
"push_stream_level": 0,
"resolution_params": {},
"stream_data": ""
}
},
"coverUrl": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"squareCoverImg": "",
"paidEvent": {
"event_id": 0,
"paid_type": 0
},
"liveSubOnly": 0,
"liveRoomMode": 0,
"gameTagId": 0,
"streamId": "3578336603596653583",
"multiStreamScene": 0,
"multiStreamSource": 0,
"…": "1 more fields"
},
"isLive": false
}

Parameters

NameTypeDescription
handlepath · requiredstringHandle, with or without the @, or a profile URL. Example: nasa.
Response fields

200 with a TikTokLiveUserResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).

FieldTypeDescription
userobject
statsobjectFollower and following counts.
liveRoomobject
isLivebooleanTrue while the account is live.
Status codes
StatusMeaning
200Live status and room.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The account, video, comment, hashtag or sound does not exist on TikTok, or was removed.
429Too many requests. Wait for Retry-After seconds.
503TikTok is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.