room_idsarray
List of TikTok live room IDs
デフォルト: ["7494491933781003054","7494514925034113835","7494520590523517739"]
https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batchReturns the online availability status for multiple TikTok broadcast rooms in a single request. Accepts a list of up to 50 room IDs.
[
{
"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
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
room_ids | array | No | List of TikTok live room IDs |
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
}
| Field | Meaning |
|---|---|
data[] | One result per room ID you sent. |
data[].room_id_str | Room ID as a string. Use this form to match results to your input without losing digits. |
data[].room_id | Room ID as a number. It has the same value as room_id_str. |
data[].alive | true if the room is live now, false if it is not. All three sample rooms returned false. |
extra.now | Time of the response as a 13-digit number, which looks like a Unix timestamp in milliseconds. |
status_code | Status of the call. 0 in the sample response. |
room_ids. The sample response returned one data entry for each ID sent.room_id_str. The numeric room_id is a long integer that some JSON parsers may round.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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 '{
"room_ids": [
"7494491933781003054",
"7494514925034113835",
"7494520590523517739"
]
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
room_idsarrayList of TikTok live room IDs
デフォルト: ["7494491933781003054","7494514925034113835","7494520590523517739"]
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"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 | 価格 | レスポンス |
|---|---|---|
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
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.01、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: room_ids (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Room Online Status Batch は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。