Count every gift in a TikTok LIVE as it happens, value it in coins with the room’s gift catalog, and rank the gifters, for counters, leaderboards and earnings estimates.
{
"context_id": "ctx_ed3d642a9dd015c6bb36",
"room_id": "7708619922263280397",
"gifts": [
{
"batch_gift_info": {
"available_counts": [
5
],
"can_batch_send": true
},
"biz_extra": {},
"can_put_in_gift_box": false,
"color_infos": [],
"combo": true,
"describe": "sent Keyboard Tune",
"diamond_count": 199,
"disable_gallery_banner": false,
"duration": 1000,
"expiration_timestamp": 0
},
{
…
}TikTok LIVE gifts arrive as events in the room’s message stream. /v1/live/chat returns new events since your cursor, including gift events (WebcastGiftMessage) with the gift and sender, and /v1/live/gifts returns the room’s gift catalog with each gift’s coin price (diamond_count). Multiply gifts by coin price to total a stream in coins, rank senders for a leaderboard, and use /v1/live/audience and /v1/live/ranking for the room’s audience ranking and the hourly LIVE ranking. LIVE endpoints are on Starter and up.
Each gift as it is sent, with the gift and the sender.
WebcastGiftMessagecursorEvery gift in the room with its coin price.
giftsdiamond_countThe room’s audience ranking and the hourly LIVE ranking.
live/audiencelive/rankingGifts sent on regular videos too.
video/giftsRead /v1/live/gifts once per room for coin prices.
Poll /v1/live/chat with the cursor and keep gift events.
Sum coins per sender and per stream; show the leaderboard.
The example calls GET /v1/live/gifts. Swap the tab for your language, or open it in the API reference.
import { TikUltra } from 'tikultra'
const client = new TikUltra({ apiKey: process.env.TIKULTRA_KEY })
const res = await client.request('GET', '/v1/live/gifts', { params: { room_id: '7708619922263280397' } })
console.log(res.data)Each chat poll is 2 reqs; the gift catalog 2 reqs. Tracking a 2-hour stream with a poll every 3 seconds is 4,800 requests.
Plans include a monthly request quota; past it, the same per-request price applies. Failed calls are never billed. Estimate your cost
| Starter $49/mo | $2.45 |
|---|---|
| Growth $159/mo | $1.82 |
| Scale $499/mo | $1.33 |
Viewers buy coins to send gifts; the creator receives diamonds worth a share of that value, which TikTok sets and can change. Track coins exactly from the catalog, then apply the current diamond rate and payout terms to estimate earnings.
Gift counters, goals and top-gifter boards in OBS.
Per-stream gift totals for the creators you manage.
Compare gifting across creators, times and formats.
Sign up and get 500 free requests — test public data & browser tools with no credit card, then upgrade anytime.