最後更新
排行榜
依榜單、地區與期間提供的官方排行榜。
所有操作都以 API 金鑰進行身分驗證 (Authorization: Bearer <key>) ;錯誤一律使用共通的錯誤格式,說明請見 錯誤. 本頁由 API 的 OpenAPI 文件產生。
列出榜單的過往期間
GET
/v1/rankings/history單一榜單已結束的期間,由新到舊排列,範圍限於方案的歷史紀錄期間內。
權限範圍rank:read點數快取讀取
查詢參數
| Name | Type | Description |
|---|---|---|
boardRequired | string | 榜單鍵值:daily、hourly、popular_live、gaming_daily、gaming_weekly、shopping_daily、shopping_weekly(需要 shop:read),或聯賽榜單 league_a1 … league_d5。 |
regionOptional | string | ISO 3166-1 alpha-2 地區代碼。 Default: VN |
cursorOptional | string | 來自上一頁 nextCursor 的不透明游標。 |
limitOptional | integer | 每頁期間數。 範圍 1–24. Default: 24 |
leagueTierOptional | string | 聯賽等級篩選,A1 … D5。 |
請求
curl "https://api.toktokdata.live/v1/rankings/history?board=daily" \ -H "Authorization: Bearer $ROOMSCOPE_API_KEY"回應
200 OK
{ "data": { "board": "daily", "region": "VN", "periods": [ { "periodKey": "2026-10-31", "observedAt": "2026-11-01T10:46:44.935Z", "coverageStatus": "observed", "publishable": true, "entries": [ { "rank": 1, "creatorUid": "990000000000000001", "uniqueId": "linh.live", "nickname": "Linh Live", "avatarUrl": null, "isLive": false, "roomId": null, "score": 99000, "leagueClass": null, "leagueClassSource": null, "leagueClassAsOf": null, "movement": "same", "previousRank": null, "masked": false, "unmaskTier": null }, { "rank": 2, "creatorUid": "990000000000000102", "uniqueId": "creator.02", "nickname": "Creator 02", "avatarUrl": null, "isLive": false, "roomId": null, "score": 98000, "leagueClass": null, "leagueClassSource": null, "leagueClassAsOf": null, "movement": "same", "previousRank": null, "masked": false, "unmaskTier": null } ] } ], "nextCursor": null, "hasMore": false, "historyWindowDays": 365, "historyTruncated": false }, "provenance": { "observedAt": "2026-11-01T10:46:44.935Z", "freshness": "historical", "source": "tiktok_observed_rank_board", "sourceKind": "official", "coverageStatus": "observed", "methodologyVersion": "rankings-official-v1", "window": null }}錯誤
400參數或請求主體無效;code會指出問題所在。401API 金鑰缺少或不存在。402工作區的點數錢包不足以支付此呼叫;resetAt表示點數重置的時間。403金鑰缺少該權限範圍,或方案未包含此功能。429超過請求速率;請遵守Retry-After。
取得官方榜單
GET
/v1/rankings/official單一地區的單一榜單,與 TikTok 公布的內容相同。榜單只有在覆蓋率通過門檻後才會重現:顯示項目前請先讀取 publishable 與 coverage。超出方案可顯示名稱範圍的項目會保留 rank 與 score,但會以 masked: true 回傳,不含身分資訊,並附上可顯示其名稱的 unmaskTier。在目前期間,每個項目都帶有 sparkline:其在最近七個完整期間各自的分數,由舊到新排列,未上榜的期間為 null。
權限範圍rank:read點數快取讀取
查詢參數
| Name | Type | Description |
|---|---|---|
boardRequired | string | 榜單鍵值:daily、hourly、popular_live、gaming_daily、gaming_weekly、shopping_daily、shopping_weekly(需要 shop:read),或聯賽榜單 league_a1 … league_d5。 |
regionOptional | string | ISO 3166-1 alpha-2 地區代碼。 Default: VN |
periodOptional | "current" | "history" | current 是進行中的期間,history 是最近一個已結束的期間。Default: current |
limitOptional | integer | 最多項目數。 範圍 1–200. Default: 200 |
liveOnlyOptional | "true" | "false" | 只包含此刻正在直播的創作者。 Default: false |
leagueTierOptional | string | 聯賽等級篩選,A1 … D5。 |
請求
curl "https://api.toktokdata.live/v1/rankings/official?board=daily" \ -H "Authorization: Bearer $ROOMSCOPE_API_KEY"回應
200 OK
{ "data": { "board": { "kind": "official", "board": "daily", "region": "VN", "periodKey": "2026-10-31", "resetAt": null, "publishable": true, "coverage": { "completeBoards": 1, "expectedBoards": 22, "ratio": 0.045454545454545456, "threshold": 0.8 }, "entries": [ { "rank": 1, "creatorUid": "990000000000000001", "uniqueId": "linh.live", "nickname": "Linh Live", "avatarUrl": null, "isLive": true, "roomId": "7990000000000000001", "score": 99000, "leagueClass": null, "leagueClassSource": null, "leagueClassAsOf": null, "movement": "new", "previousRank": null, "masked": false, "unmaskTier": null, "sparkline": [ null, 812000, 846500, 901200, 955000, 1010300, 99000 ] }, { "rank": 2, "creatorUid": "990000000000000102", "uniqueId": "creator.02", "nickname": "Creator 02", "avatarUrl": null, "isLive": false, "roomId": null, "score": 98000, "leagueClass": null, "leagueClassSource": null, "leagueClassAsOf": null, "movement": "new", "previousRank": null, "masked": false, "unmaskTier": null, "sparkline": [ null, 803880, 838035, 892188, 945450, 1000197, 97020 ] } ] } }, "provenance": { "observedAt": "2026-11-01T10:46:44.935Z", "freshness": "historical", "source": "tiktok_observed_rank_board", "sourceKind": "official", "coverageStatus": "observed", "methodologyVersion": "rankings-official-v1", "window": { "from": null, "to": null, "label": "daily" } }}錯誤
400參數或請求主體無效;code會指出問題所在。401API 金鑰缺少或不存在。402工作區的點數錢包不足以支付此呼叫;resetAt表示點數重置的時間。403金鑰缺少該權限範圍,或方案未包含此功能。429超過請求速率;請遵守Retry-After。
列出支援地區
GET
/v1/rankings/regions目前有已觀測榜單的地區,附顯示用標籤。請快取一天。
權限範圍rank:read點數快取讀取
請求
curl "https://api.toktokdata.live/v1/rankings/regions" \ -H "Authorization: Bearer $ROOMSCOPE_API_KEY"回應
200 OK
{ "data": { "regions": [ { "region": "VN", "label": "VN · Vietnam", "coverage": { "completeBoards": 1, "expectedBoards": 22, "ratio": 0.045454545454545456, "threshold": 0.8 }, "boards": [ "daily" ], "notOfferedBoards": [] } ] }, "provenance": { "observedAt": "2026-11-01T10:46:44.935Z", "freshness": "historical", "source": "tiktok_observed_rank_board", "sourceKind": "official", "coverageStatus": "observed", "methodologyVersion": "rankings-official-v1", "window": null }}錯誤
400參數或請求主體無效;code會指出問題所在。401API 金鑰缺少或不存在。402工作區的點數錢包不足以支付此呼叫;resetAt表示點數重置的時間。403金鑰缺少該權限範圍,或方案未包含此功能。429超過請求速率;請遵守Retry-After。
這個頁面對你有幫助嗎?