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

TikTok live room API

A TikTok live room by id: status, title, viewers, host, stream URLs and stats, as TikTok’s webcast API returns it.

GET /v1/tiktok/live/{room_id}1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/tiktok/live/7652613286029986574",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"room": {
"id_str": "7652613286029986574",
"status": 4,
"title": "",
"user_count": 0,
"owner": {
"allow_find_by_contacts": false,
"allow_others_download_video": false,
"allow_others_download_when_sharing_video": false,
"allow_share_show_profile": false,
"allow_show_in_gossip": false,
"allow_show_my_action": false,
"allow_strange_comment": false,
"allow_unfollower_comment": false,
"allow_use_linkmic": false,
"authentication_info": {
"authentication_badge": {
"avg_color": "",
"height": 0,
"image_type": 0,
"is_animated": false,
"open_web_url": "",
"uri": "webcast-va/authentication_icon.png",
"url_list": [
"…"
],
"width": 0
},
"custom_verify": "verified account",
"enterprise_verify_reason": "",
"has_cert": true
},
"avatar_large": {
"avg_color": "",
"height": 0,
"image_type": 0,
"is_animated": false,
"open_web_url": "",
"uri": "1080x1080/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55fbd0ea4",
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"… 1 more"
],
"width": 0
},
"avatar_medium": {
"avg_color": "",
"height": 0,
"image_type": 0,
"is_animated": false,
"open_web_url": "",
"uri": "720x720/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55fbd0ea4",
"url_list": [
"https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"… 1 more"
],
"width": 0
},
"avatar_thumb": {
"avg_color": "",
"height": 0,
"image_type": 0,
"is_animated": false,
"open_web_url": "",
"uri": "100x100/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55fbd0ea4",
"url_list": [
"https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"https://p19-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55…",
"… 1 more"
],
"width": 0
},
"badge_image_list": [],
"…": "80 more fields"
},
"stats": {
"comment_count": 0,
"deprecated1": 0,
"deprecated2": "",
"digg_count": 0,
"enter_count": 0,
"fan_ticket": 0,
"follow_count": 300,
"gift_uv_count": 0,
"id": 7652613286029987000,
"id_str": "7652613286029986574",
"like_count": 0,
"replay_fan_ticket": 0,
"replay_viewers": 0,
"room_follow_count": 0,
"…": "6 more fields"
},
"AnchorABMap": {},
"add_ttls_product_ts": 0,
"adjust_display_order": 0,
"admin_ec_show_permission": {},
"admin_user_ids": [],
"age_restricted": {
"AgeInterval": 0,
"restricted": false,
"source": 0
},
"aigc_self_disclosure_switch": false,
"all_emoji_list": [],
"…": "231 more fields"
},
"isLive": false
}

Parameters

NameTypeDescription
room_idpath · requiredstringLive room id. Example: 7652613286029986574.
Response fields

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

FieldTypeDescription
roomobject
isLiveboolean
Status codes
StatusMeaning
200The live 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.