Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

TikTok Room Online Status Batch

Dokumentacja API
https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch

Returns the online availability status for multiple TikTok broadcast rooms in a single request. Accepts a list of up to 50 room IDs.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
0 wymaganych · 1 opcjonalnych

Playground

Wejście
List of TikTok live room IDs
WyjściePrzykład
Odpowiedźoutputs · 541 B · 27 wierszy
[
  {
    "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
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

README API

TikTok Room Online Status Batch API

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.

Use cases

  • Check a list of monitored rooms in one call and keep only those that are live.
  • Filter out ended rooms before you request room details.
  • Poll a set of saved room IDs to see when each stream stops.
  • Validate a batch of room IDs collected from earlier lookups.

Request

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.

Parameters

NameTypeRequiredDescription
room_idsarrayNoList of TikTok live room IDs

Example response

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
}

Response fields

FieldMeaning
data[]One result per room ID you sent.
data[].room_id_strRoom ID as a string. Use this form to match results to your input without losing digits.
data[].room_idRoom ID as a number. It has the same value as room_id_str.
data[].alivetrue if the room is live now, false if it is not. All three sample rooms returned false.
extra.nowTime of the response as a 13-digit number, which looks like a Unix timestamp in milliseconds.
status_codeStatus of the call. 0 in the sample response.

Notes

  • Send up to 50 strings in room_ids. The sample response returned one data entry for each ID sent.
  • Match results by room_id_str. The numeric room_id is a long integer that some JSON parsers may round.
  • To check a single room, use TikTok LIVE Status.
  • To get details about a live room, call TikTok Broadcast Room Information.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
TikTok$0.01 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON
TikTok$0.001 za wywołanieJSON

Przewodniki:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API TikTok Room Online Status Batch?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API TikTok Room Online Status Batch?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API TikTok Room Online Status Batch?

Nie są wymagane żadne parametry. Opcjonalne: room_ids (array). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API TikTok Room Online Status Batch?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego TikTok lub klucza API?

Nie. TikTok Room Online Status Batch działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API TikTok.