Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

TikTok Room Active Status Batch Check

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.

价格
$0.05美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782
输出示例
响应outputs · 801 B · 33 行
[
  {
    "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
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

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.

探索更多

相关 APIs

全部 APIs
API价格响应
TikTok$0.05 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.002 每次调用JSON

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

问题

常见问题

如何使用 TikTok Room Active Status Batch Check API?

向 https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

TikTok Room Active Status Batch Check API 的价格是多少?

每次调用 $0.05,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

TikTok Room Active Status Batch Check API 接受哪些参数?

必填:room_ids (string)。 Parameters 表和本页的 Playground 列出了每个字段。

TikTok Room Active Status Batch Check API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 TikTok 开发者账户或 API key 吗?

不需要。TikTok Room Active Status Batch Check 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。