room_idstring必須
Live room ID
https://api.sandbase.ai/v1/api/tiktok/web/check-live-aliveChecks the active broadcast state of a specified TikTok room. Returns room identifier data and a boolean flag indicating whether the stream is active.
[
{
"data": {
"live_room_status": {
"cookie": "tt_chain_token=1Cd42OskCAaGuPIQ6aFMqQ==;",
"data": [
{
"alive": false,
"room_id": 7674625312902925000,
"room_id_str": "7674625312902925057"
}
],
"extra": {
"now": 1787104340418
},
"status_code": 0,
"tt_chain_token": "1Cd42OskCAaGuPIQ6aFMqQ=="
}
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns whether a single TikTok live room is broadcasting right now. It needs one input, the live room_id, and returns that ID with an alive true or false flag.
alive changes to true.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/check-live-alive" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"room_id": "7381444193462078214"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
room_id | string | Yes | Live room ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"live_room_status": {
"cookie": "tt_chain…",
"data": [
{
"alive": false,
"room_id": 7381444193462078214,
"room_id_str": "7381444193462078214"
}
],
"extra": {
"now": 1793691862008
},
"status_code": 0,
"tt_chain_token": "0k5cdiqY…"
}
}
| Field | Meaning |
|---|---|
live_room_status.data[].alive | Boolean flag. true means the room is broadcasting now, false means it is not. The sample response shows false. |
live_room_status.data[].room_id / live_room_status.data[].room_id_str | The room ID as a number and as a string. Use the string form, because large numbers can lose precision in some JSON parsers. |
live_room_status.status_code | Status code of the check. 0 appears in the sample response for a successful lookup. |
live_room_status.extra.now | Timestamp of the check, shown as a 13-digit number (1793691862008). It looks like Unix time in milliseconds. |
live_room_status.tt_chain_token / live_room_status.cookie | A chain token value and the cookie string that carries it. These are session values, not stream data. |
room_id as a string, for example 7381444193462078214.data list holds one item for the one room you send. To check many rooms in one call, use TikTok Room Active Status Batch Check.$0.002 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/web/check-live-alive" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"room_id": "7674625312902925057"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
room_idstring必須Live room ID
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"live_room_status": {
"cookie": "tt_chain_token=1Cd42OskCAaGuPIQ6aFMqQ==;",
"data": [
{
"alive": false,
"room_id": 7674625312902925000,
"room_id_str": "7674625312902925057"
}
],
"extra": {
"now": 1787104340418
},
"status_code": 0,
"tt_chain_token": "1Cd42OskCAaGuPIQ6aFMqQ=="
}
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok | $0.002 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.05 / 回 | 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/check-live-alive に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.002、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: room_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Stream Status Check は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。