Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

TikTok Room Active Status Batch Check

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

Harga
$0.05USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782
OutputContoh
Responsoutputs · 801 B · 33 baris
[
  {
    "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
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke 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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
TikTok$0.05 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.001 per panggilanJSON
TikTok$0.002 per panggilanJSON

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

Pertanyaan

FAQ

Bagaimana cara menggunakan API TikTok Room Active Status Batch Check?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API TikTok Room Active Status Batch Check?

$0.05 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API TikTok Room Active Status Batch Check?

Wajib: room_ids (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API TikTok Room Active Status Batch Check?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API TikTok?

Tidak. TikTok Room Active Status Batch Check berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API TikTok secara terpisah.