Skip to Content

Live

Whether an account is live, and its room.

GET
/v1/tiktok/live

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

handle?string

The account's username, with or without @.

secUid?string

The account's ext.secUid, instead of handle.

url?string

The account's or its live page's link, instead of handle.

roomId?string

A live room's id (a profile's ext.roomId), instead of naming the account.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

A TikTok live room.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.tiktok.live({ handle: "tiktok" });
Example Response
{  "data": {    "live": false,    "roomId": "7711396761125866254",    "title": "Giving Season with Food Network",    "viewers": null,    "startedAt": "2026-11-23T16:00:07.000Z",    "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:720:720.webp?dr=14579&refresh_token=54b3fd8d&x-expires=1795730400&x-signature=z1%2BShn%2B8n85qGUVFRn%2BCnB7Gwpg%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",    "host": {      "id": "107955",      "username": "tiktok",      "displayName": "TikTok",      "avatarUrl": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/ba67b11de451691939223e9d978e613a~tplv-tiktokx-cropcenter:1080:1080.webp?dr=14579&refresh_token=a5346d01&x-expires=1795730400&x-signature=KalJhiErhMSNDpaaq4kpkdW3ZW8%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=fdd36af4&idc=my",      "verified": true,      "url": "https://www.tiktok.com/@tiktok"    },    "ext": {      "streamId": "3579254828209537974",      "entered": 652,      "endedAt": null    }  }}