Sand AISand AI MAGI-2ตอนนี้ MAGI-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.05USD / คำขอ
Method
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 ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/web/batch-check-live-alive โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน 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 ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ TikTok ไหม?

ไม่จำเป็น TikTok Room Active Status Batch Check ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก