room_idsarray
List of TikTok live room IDs
Mặc định: ["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
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
]
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
room_idsarrayList of TikTok live room IDs
Mặc định: ["7494491933781003054","7494514925034113835","7494520590523517739"]
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"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
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
TikTok | $0.01 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
TikTok | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/app-v3/check-live-room-online-batch với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Không có tham số bắt buộc. Tùy chọn: room_ids (array). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. TikTok Room Online Status Batch chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.