TikTok LIVE
WebSocket API
Nhận sự kiện TikTok LIVE theo thời gian thực - chat, quà tặng, like, follow, số người xem, PK - qua một kết nối WebSocket được quản lý sẵn. Độ trễ dưới 50ms. Uptime 99.9%.
wss://api.tik.tools?uniqueId=USERNAME&apiKey=YOUR_KEYKết nối chỉ với 3 dòng code
Không phải giải mã nhị phân, không lo hạ tầng. Chỉ một URL WebSocket trả về JSON sạch.
import WebSocket from 'ws';
const ws = new WebSocket('wss://api.tik.tools?uniqueId=streamer&apiKey=YOUR_KEY');
ws.on('message', (raw) => {
const msg = JSON.parse(raw);
console.log(msg.event, msg.data);
});Khám phá mọi sự kiện
Chọn một sự kiện để xem đúng JSON mà WebSocket gửi về, kèm giải thích từng trường.
Virtual Gifts
event: "gift"{
"event": "gift",
"data": {
"user": {
"uniqueId": "streamfan_22",
"nickname": "Stream Fan",
"userId": "6776543210987654321",
"followRole": 2,
"isSubscriber": true
},
"giftId": 5655,
"giftName": "Rose",
"diamondCount": 1,
"repeatCount": 12,
"repeatEnd": true,
"groupId": "1718900000123",
"giftType": 1,
"receiverUserId": "6776000000000000010",
"timestamp": 1718900000123
}
}giftNamestringDisplay name of the gift sent.diamondCountnumberDiamond value of a single gift unit.repeatCountnumberHow many were sent in the combo.repeatEndbooleantrue when a streak has finished - sum on this frame.userobjectSender profile: uniqueId, nickname, follow + subscriber status.receiverUserIdstringThe creator the gift was sent to. In a multi-guest LIVE this is the specific guest/host, not always the room owner.TikTools so với các bên khác
So sánh trực tiếp với các nhà cung cấp dữ liệu TikTok LIVE khác, mỗi bảng đều ghi ngày và được đối chiếu với trang công khai của họ.
Xem so sánhGiá minh bạch
Đánh giá miễn phí 7 ngày, sau đó chọn gói bạn cần.
- Hạn mức request và WebSocket cho production
- Webhook có chữ ký
- SDK Node.js và Python
Chạy với mọi ngôn ngữ
SDK chính thức cho Node.js và Python. WebSocket dùng được với mọi thứ còn lại.
Bắt đầu nhận dữ liệu TikTok LIVE ngay hôm nay
Gói Sandbox - 5.000 request/ngày, 3 kết nối WebSocket đồng thời. Không cần thẻ tín dụng.