Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

TikTok Room Active Status Batch Check

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

Preço
$0.05USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782
SaídaExemplo
Respostaoutputs · 801 B · 33 linhas
[
  {
    "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
    }
  }
]

Exemplos

Selecione um exemplo para carregar as entradas e o resultado no playground.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
TikTok$0.05 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.001 por chamadaJSON
TikTok$0.002 por chamadaJSON

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

Perguntas

FAQ

Como eu uso a API TikTok Room Active Status Batch Check?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API TikTok Room Active Status Batch Check?

$0.05 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API TikTok Room Active Status Batch Check aceita?

Obrigatórios: room_ids (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API TikTok Room Active Status Batch Check retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor TikTok ou de uma chave de API?

Não. TikTok Room Active Status Batch Check funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do TikTok separadamente.