anchor_idstringจำเป็น
Anchor id
https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-listReturns the audience ranking list for a stream room based on the specified room identifier and anchor identifier. Helps inspect top viewer participation.
[
{
"data": {
"data": {
"anchor_show_contribution": true,
"anonymous": 0,
"bottom_notice": "Showing the top viewers in this LIVE.",
"currency": "Coins",
"deprecated": false,
"display_config": {
"avatar_count": 2,
"can_panel_click": true,
"show_avatar_list": true,
"show_online_panel": true,
"show_score": true
},
"preview_count": 0,
"ranks": [],
"rule_url": "aweme://roma_redirect/?spark_page=top_view_ranking_new&roma_url_query=show_new_score_rule%3D1",
"sub_tabs": [],
"total": 0
},
"extra": {
"now": 1791290307794
},
"status_code": 0
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns the audience ranking panel for a TikTok LIVE room. You pass the room_id and the anchor_id of the host. The response holds the ranked viewer list plus display settings and notice text for the panel.
ranks list to see which viewers sit at the top of a LIVE room's audience ranking.total to see how many viewers appear in the ranking for a room.currency and show_score to see how the ranking panel presents viewer scores.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"anchor_id": "7222941468722758702", "room_id": "7358603858249009962"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
anchor_id | string | Yes | Anchor id |
room_id | string | Yes | Live room id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"anchor_show_contribution": true,
"anonymous": 0,
"bottom_notice": "Showing the top viewers in this LIVE.",
"currency": "Coins",
"deprecated": false,
"display_config": {
"avatar_count": 2,
"can_panel_click": true,
"show_avatar_list": true,
"show_online_panel": true,
"show_score": true
},
"preview_count": 0,
"ranks": [],
"rule_url": "aweme://roma_redirect/?spark_page=top_view_ranking_new&roma_url_query=show_new_s…",
"sub_tabs": [],
"total": 0
},
"extra": {
"now": 1793691833556
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data.ranks[] | List of ranked viewers in the room. It is empty when no viewers are ranked, as in the sample response. |
data.total | Total number of entries in the ranking. The sample response returns 0. |
data.currency | Name of the currency used by the ranking, for example Coins. |
data.anchor_show_contribution | Boolean flag. true means the ranking is set to show viewer contributions for the anchor. |
data.anonymous | Numeric anonymity value for the ranking. The sample response returns 0. |
data.bottom_notice | Notice text shown at the bottom of the ranking panel. |
data.display_config.show_score / data.display_config.show_avatar_list / data.display_config.show_online_panel | Boolean flags for what the panel shows: viewer scores, an avatar list, and the online viewer panel. |
data.display_config.avatar_count | Number of avatars the panel is configured to show. |
data.rule_url | In-app link to the ranking rules page. |
extra.now | Timestamp of the response as a number, in the format shown in the sample (1793691833556). |
room_id and anchor_id are required. Take the room ID from a LIVE room lookup such as TikTok Broadcast Room Information.ranks list with total of 0 is a valid response with status_code 0.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"room_id": "7358603858249009962",
"anchor_id": "7222941468722758702"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
anchor_idstringจำเป็นAnchor id
room_idstringจำเป็นLive room id
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"data": {
"anchor_show_contribution": true,
"anonymous": 0,
"bottom_notice": "Showing the top viewers in this LIVE.",
"currency": "Coins",
"deprecated": false,
"display_config": {
"avatar_count": 2,
"can_panel_click": true,
"show_avatar_list": true,
"show_online_panel": true,
"show_score": true
},
"preview_count": 0,
"ranks": [],
"rule_url": "aweme://roma_redirect/?spark_page=top_view_ranking_new&roma_url_query=show_new_score_rule%3D1",
"sub_tabs": [],
"total": 0
},
"extra": {
"now": 1791290307794
},
"status_code": 0
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.01 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
TikTok | $0.001 ต่อการเรียก | JSON |
คู่มือ:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/tiktok/app-v3/live-ranking-list โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: anchor_id (string) และ room_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น TikTok Stream Audience Ranking List ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง TikTok API แยกต่างหาก