Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

TikTok Room Online Status Batch

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.

料金
$0.01USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 0 件 · 任意 1 件

プレイグラウンド

入力
List of TikTok live room IDs
出力例
レスポンスoutputs · 541 B · 27 行
[
  {
    "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
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

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.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
TikTok$0.01 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON
TikTok$0.001 / 回JSON

ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

質問

FAQ

TikTok Room Online Status Batch API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Room Online Status Batch API の料金はいくらですか?

1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Room Online Status Batch API はどのパラメータを受け付けますか?

必須パラメータはありません。 任意: room_ids (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Room Online Status Batch API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Room Online Status Batch は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。