room_idsarray
List of TikTok live room IDs
Standard: ["7494491933781003054","7494514925034113835","7494520590523517739"]
https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batchReturns the online availability status for multiple TikTok broadcast rooms in a single request. Accepts a list of up to 50 room IDs.
[
{
"data": {
"data": [
{
"alive": false,
"room_id": 7494491933781003000,
"room_id_str": "7494491933781003054"
},
{
"alive": false,
"room_id": 7494514925034114000,
"room_id_str": "7494514925034113835"
},
{
"alive": false,
"room_id": 7494520590523518000,
"room_id_str": "7494520590523517739"
}
],
"extra": {
"now": 1791290352447
},
"status_code": 0
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns the live status of up to 50 TikTok LIVE rooms in one request. It needs a list of room IDs in room_ids. Each result shows whether that room is currently live.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
room_ids | array | No | List of TikTok live room IDs |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"alive": false,
"room_id": 7494491933781003054,
"room_id_str": "7494491933781003054"
}
],
"extra": {
"now": 1793691831215
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data[] | One result per room ID you sent. |
data[].room_id_str | Room ID as a string. Use this form to match results to your input without losing digits. |
data[].room_id | Room ID as a number. It has the same value as room_id_str. |
data[].alive | true if the room is live now, false if it is not. All three sample rooms returned false. |
extra.now | Time of the response as a 13-digit number, which looks like a Unix timestamp in milliseconds. |
status_code | Status of the call. 0 in the sample response. |
room_ids. The sample response returned one data entry for each ID sent.room_id_str. The numeric room_id is a long integer that some JSON parsers may round.$0.01 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/app-v3/check-live-room-online-batch" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"room_ids": [
"7494491933781003054",
"7494514925034113835",
"7494520590523517739"
]
}'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_idsarrayList of TikTok live room IDs
Standard: ["7494491933781003054","7494514925034113835","7494520590523517739"]
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"data": [
{
"alive": false,
"room_id": 7494491933781003000,
"room_id_str": "7494491933781003054"
},
{
"alive": false,
"room_id": 7494514925034114000,
"room_id_str": "7494514925034113835"
},
{
"alive": false,
"room_id": 7494520590523518000,
"room_id_str": "7494520590523517739"
}
],
"extra": {
"now": 1791290352447
},
"status_code": 0
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
TikTok Room Online Status BatchDiese API TikTok | $0.01 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.001 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/app-v3/check-live-room-online-batch 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.01 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: room_ids (array). 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 Room Online Status Batch 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.