room_idsstring必須
Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782
https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-aliveChecks whether multiple TikTok broadcast rooms are currently active. Accepts a comma-separated list of room identifiers to return current status details.
[
{
"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
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
room_ids | string | Yes | Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782 |
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
}
| Field | Meaning |
|---|---|
results.data[].alive | Whether the room is currently live. false means the room is not active. |
results.data[].room_id | The room ID as a number. |
results.data[].room_id_str | The same room ID as a string. Use this one to avoid number precision loss in your code. |
results.extra.now | A timestamp for when the check ran. The value looks like Unix time in milliseconds. |
results.status_code | Status code for the check. 0 appears in this response. |
results.tt_chain_token / results.cookie | A token and a cookie string returned with the check. The cookie contains the same token value. |
total_queried | The number of room IDs sent in the request. |
results.data for 4 queried IDs. Compare total_queried with the length of results.data to find missing rooms.$0.05 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
room_idsstring必須Live room ID list separated by commas, e.g.: 7530611486784277278,7530633767468288782
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"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
}
}
]さらに探索
| 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
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.05、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: room_ids (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Room Active Status Batch Check は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。