room_idstringerforderlich
Live room ID
https://api.sandbase.ai/v1/api/tiktok/web/check-live-aliveChecks the active broadcast state of a specified TikTok room. Returns room identifier data and a boolean flag indicating whether the stream is active.
[
{
"data": {
"live_room_status": {
"cookie": "tt_chain_token=1Cd42OskCAaGuPIQ6aFMqQ==;",
"data": [
{
"alive": false,
"room_id": 7674625312902925000,
"room_id_str": "7674625312902925057"
}
],
"extra": {
"now": 1787104340418
},
"status_code": 0,
"tt_chain_token": "1Cd42OskCAaGuPIQ6aFMqQ=="
}
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns whether a single TikTok live room is broadcasting right now. It needs one input, the live room_id, and returns that ID with an alive true or false flag.
alive changes to true.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/check-live-alive" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"room_id": "7381444193462078214"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
room_id | string | Yes | Live room ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"live_room_status": {
"cookie": "tt_chain…",
"data": [
{
"alive": false,
"room_id": 7381444193462078214,
"room_id_str": "7381444193462078214"
}
],
"extra": {
"now": 1793691862008
},
"status_code": 0,
"tt_chain_token": "0k5cdiqY…"
}
}
| Field | Meaning |
|---|---|
live_room_status.data[].alive | Boolean flag. true means the room is broadcasting now, false means it is not. The sample response shows false. |
live_room_status.data[].room_id / live_room_status.data[].room_id_str | The room ID as a number and as a string. Use the string form, because large numbers can lose precision in some JSON parsers. |
live_room_status.status_code | Status code of the check. 0 appears in the sample response for a successful lookup. |
live_room_status.extra.now | Timestamp of the check, shown as a 13-digit number (1793691862008). It looks like Unix time in milliseconds. |
live_room_status.tt_chain_token / live_room_status.cookie | A chain token value and the cookie string that carries it. These are session values, not stream data. |
room_id as a string, for example 7381444193462078214.data list holds one item for the one room you send. To check many rooms in one call, use TikTok Room Active Status Batch Check.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/check-live-alive" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"room_id": "7674625312902925057"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
room_idstringerforderlichLive room ID
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"live_room_status": {
"cookie": "tt_chain_token=1Cd42OskCAaGuPIQ6aFMqQ==;",
"data": [
{
"alive": false,
"room_id": 7674625312902925000,
"room_id_str": "7674625312902925057"
}
],
"extra": {
"now": 1787104340418
},
"status_code": 0,
"tt_chain_token": "1Cd42OskCAaGuPIQ6aFMqQ=="
}
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Stream Status CheckDiese API TikTok | $0.002 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.001 pro Aufruf | JSON |
TikTok | $0.05 pro Aufruf | JSON |
Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/web/check-live-alive mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.002 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: room_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. TikTok Stream Status Check läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.