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
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
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.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform 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 key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ 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
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.01 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: room_ids (array). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Room Online Status Batch ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก