Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

TikTok Room Online Status Batch

Docs 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.

Prix
$0.01USD / appel
Méthode
POST
Réponse
JSON
Paramètres
0 obligatoires · 1 facultatifs

Bac à sable

Entrée
List of TikTok live room IDs
SortieExemple
Réponseoutputs · 541 B · 27 lignes
[
  {
    "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
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
TikTok$0.01 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON
TikTok$0.001 par appelJSON

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

Questions

FAQ

Comment utiliser l’API TikTok Room Online Status Batch ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API TikTok Room Online Status Batch ?

$0.01 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API TikTok Room Online Status Batch accepte-t-elle ?

Aucun paramètre n’est requis. Facultatif : room_ids (array). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API TikTok Room Online Status Batch ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API TikTok ?

Non. TikTok Room Online Status Batch fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok séparément.