related_live_tagstring必填
Related live tag (live category). The available values are not fixed; call `/fetch_live_recommend_tabs` first to get the currently available tag list, then pick one to pass in.
https://api.sandbase.ai/v1/api/tiktok/web/live-recommendReturns recommended livestreams from the TikTok homepage for a specified category tag. Requires selecting a category tag to retrieve relevant active broadcast recommendations.
[
{
"data": {
"cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
"extra": {
"banner": {},
"cost": 11,
"log_pb": {
"impr_id": "20260928164204C897FED4A8A211C3C344",
"session_id": 7690503684375580000
},
"max_time": 1790584924619,
"now": 1790584924619,
"unread_extra": "{\"channel_id\":1111006,\"req_from\":\"pc_web_game_sub_feed_refresh\",\"gen_time\":1790584924,\"is_backup\":0}"
},
"status_code": 0,
"tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns a list of recommended livestream rooms from the TikTok homepage for one live category tag. It needs a related_live_tag value such as VALORANT.
VALORANT.rid of each result to match a recommendation batch with a later analysis.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/live-recommend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"related_live_tag": "VALORANT"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
related_live_tag | string | Yes | Related live tag (live category). The available values are not fixed; call /fetch_live_recommend_tabs first to get the currently available tag list, then pick one to pass in. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cookie": "tt_chain…",
"data": [
{
"data": {
"age_restricted": {},
"anchor_tab_type": 7,
"blurred_cover": {
"avg_color": "#FAE6DC",
"height": 100,
"uri": "tos-maliva-avt-0068/e1c653d347180dc3f095dd5185877b22",
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/e1c653d347180dc3f095dd…"
],
"width": 100
},
"client_version": 13800,
"commerce_info": {},
"cover": {
"uri": "720x720/tos-maliva-avt-0068/e1c653d347180dc3f095dd5185877b22",
"url_list": [
"https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/e1c653d347180dc3f095dd…"
]
},
"cover_type": 1,
"enlarge_view_info": {
"enabler_enlarge_view": true,
"landscape_view": 1,
"portrait_view": 1
}
},
"flare_info": {},
"rid": "202611031544263DDB5AFB9E6F854E228A",
"room_event_tracking": "pc_web_game_sub_feed_refresh:1111006:normal:1:0",
"type": 1
}
],
"extra": {
"banner": {},
"cost": 113,
"has_more": true,
"log_pb": {
"impr_id": "202611031544263DDB5AFB9E6F854E228A",
"session_id": 7703847894004796178
},
"max_time": 1793691866273,
"now": 1793691866273,
"total": 12,
"unread_extra": "{\"channel_id\":1111006,\"req_from\":\"pc_web_game_sub_feed_refresh\",\"gen_time\":17936…"
},
"status_code": 0,
"tt_chain_token": "0k5cdiqY…"
}
| Field | Meaning |
|---|---|
data[].data.cover.url_list | Image URLs for the 720x720 cover of the livestream. Each entry points to the same image in a different CDN host or format (webp or jpeg). |
data[].data.blurred_cover.url_list | URLs of a small 100x100 blurred version of the cover. |
data[].data.blurred_cover.avg_color | Average color of the blurred cover as a hex code. Use it as a placeholder color while the image loads. |
data[].data.feed_room_label.url_list | Image URLs for a label shown on the room card. It appears only on some items. |
data[].data.anchor_tab_type | Numeric tab type for the livestream entry. The response shows 7 for all items. |
data[].rid | Request ID shared by all items in the same response. It matches extra.log_pb.impr_id. |
data[].room_event_tracking | Tracking string for the feed that returned the item. It includes the feed name pc_web_game_sub_feed_refresh. |
extra.has_more | Shows true when more recommendations are available. |
extra.total | Total count reported for this response. |
extra.now / extra.max_time | Timestamps in milliseconds, in the same format as 1793691866273. |
related_live_tag values from TikTok Stream Recommendation Tabs first. The list of tags changes, so do not hard-code it.related_live_tag. The response gives extra.has_more but this API has no pagination parameter.data[] wraps its details in a second data object, so the full path is data[].data.tt_chain_token and cookie at the top level.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/live-recommend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"related_live_tag": "test"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
related_live_tagstring必填Related live tag (live category). The available values are not fixed; call `/fetch_live_recommend_tabs` first to get the currently available tag list, then pick one to pass in.
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
"extra": {
"banner": {},
"cost": 11,
"log_pb": {
"impr_id": "20260928164204C897FED4A8A211C3C344",
"session_id": 7690503684375580000
},
"max_time": 1790584924619,
"now": 1790584924619,
"unread_extra": "{\"channel_id\":1111006,\"req_from\":\"pc_web_game_sub_feed_refresh\",\"gen_time\":1790584924,\"is_backup\":0}"
},
"status_code": 0,
"tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.001 | JSON |
TikTok | 每次呼叫 $0.05 | JSON |
指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tiktok/web/live-recommend。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:related_live_tag (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。TikTok Livestream Homepage Recommendations 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 TikTok API 存取權。