Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

TikTok Room Active Status Batch Check

Documentazione API
https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive

Checks whether multiple TikTok broadcast rooms are currently active. Accepts a comma-separated list of room identifiers to return current status details.

Prezzo
$0.05USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali

Playground

Input
Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782
OutputEsempio
Rispostaoutputs · 801 B · 33 righe
[
  {
    "data": {
      "results": {
        "cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
        "data": [
          {
            "alive": false,
            "room_id": 7530611486784278000,
            "room_id_str": "7530611486784277278"
          },
          {
            "alive": false,
            "room_id": 7530633767468289000,
            "room_id_str": "7530633767468288782"
          },
          {
            "alive": false,
            "room_id": 7530636465034776000,
            "room_id_str": "7530636465034775310"
          },
          "… 1 more items in the full response"
        ],
        "extra": {
          "now": 1790691410201
        },
        "status_code": 0,
        "tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
      },
      "total_queried": 4
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

TikTok Room Active Status Batch Check API

This API checks whether several TikTok live rooms are broadcasting right now. It takes one input, room_ids, a comma-separated string of live room IDs, and returns an alive flag for each room.

Use cases

  • Check a watchlist of live room IDs in one call and keep only the rooms that are broadcasting.
  • Remove ended rooms from a monitoring dashboard before you fetch more room details.
  • Poll a set of known room IDs to see when a stream goes live or ends.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"room_ids": "7530611486784277278,7530633767468288782,7530636465034775310,7530604930088848142"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
room_idsstringYesLive room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "results": {
    "cookie": "tt_chain…",
    "data": [
      {
        "alive": false,
        "room_id": 7530611486784277278,
        "room_id_str": "7530611486784277278"
      }
    ],
    "extra": {
      "now": 1793691861314
    },
    "status_code": 0,
    "tt_chain_token": "0k5cdiqY…"
  },
  "total_queried": 4
}

Response fields

FieldMeaning
results.data[].aliveWhether the room is currently live. false means the room is not active.
results.data[].room_idThe room ID as a number.
results.data[].room_id_strThe same room ID as a string. Use this one to avoid number precision loss in your code.
results.extra.nowA timestamp for when the check ran. The value looks like Unix time in milliseconds.
results.status_codeStatus code for the check. 0 appears in this response.
results.tt_chain_token / results.cookieA token and a cookie string returned with the check. The cookie contains the same token value.
total_queriedThe number of room IDs sent in the request.

Notes

  • Separate room IDs with commas and no extra fields. The example request sends 4 IDs.
  • The sample response lists 3 items in results.data for 4 queried IDs. Compare total_queried with the length of results.data to find missing rooms.
  • To check a single room, use TikTok Stream Status Check.
  • To get full room details for a live room, call TikTok Stream Room Information.

Pricing

$0.05 per successful call. Failed calls are not charged.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
TikTok$0.05 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.001 per chiamataJSON
TikTok$0.002 per chiamataJSON

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

Domande

FAQ

Come uso l'API TikTok Room Active Status Batch Check?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API TikTok Room Active Status Batch Check?

$0.05 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API TikTok Room Active Status Batch Check?

Richiesti: room_ids (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API TikTok Room Active Status Batch Check?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API TikTok?

No. TikTok Room Active Status Batch Check funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API TikTok.