cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/douyin/web/fetch_live_gift_ranking?room_id=7675686413492357928' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/douyin/web/fetch_live_gift_ranking',
params={"room_id": "7675686413492357928"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"room_id": "7675686413492357928"});
const response = await fetch(`https://api.keyapi.ai/v1/douyin/web/fetch_live_gift_ranking?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"data": {
"ranks": [],
"seats": [],
"self_info": {
"score": 0,
"rank": 0,
"gap_description": "",
"delta": 0,
"first_gift": false,
"is_hidden": false,
"score_description": "",
"exactly_score": "",
"app_name": "",
"team_jump_schema": "",
"team_id": ""
},
"has_more": false,
"music_wave": "",
"total": 0,
"currency": "",
"has_once_live": true,
"rules_url": "sslocal://webcast_webview?url=https%3A%2F%2Faweme.snssdk.com%2Fmagic%2Fpage%2Fejs%2F5f27c6ca9950ec0307de9248%3FappType%3Ddouyin%26pull_down_indicator_color%3Ddark%26pull_down_indicator_not_show%3D0%26web_bg_color%3D%2523ffffffff&pull_down_close=0&pull_down_indicator_not_show=1&pull_down_indicator_color=dark&type=popup&gravity=bottom&height=450&radius=8&hide_more=0&hide_nav_bar=0&hide_status_bar=0&landscape_custom_width=1&rate_height=450",
"user_count_desc": "0",
"invisible_total": 0,
"typography_type": 0,
"service_days": 0,
"label": ""
},
"extra": {
"now": 1787141031685
},
"status_code": 0
},
"requestId": "2c59c78f-a0fc-4adc-8201-d801a05b8412"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Douyin Web API
Get live room gift user ranking
Get live room gift user ranking
GET
/
v1
/
douyin
/
web
/
fetch_live_gift_ranking
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/douyin/web/fetch_live_gift_ranking?room_id=7675686413492357928' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/douyin/web/fetch_live_gift_ranking',
params={"room_id": "7675686413492357928"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"room_id": "7675686413492357928"});
const response = await fetch(`https://api.keyapi.ai/v1/douyin/web/fetch_live_gift_ranking?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"data": {
"ranks": [],
"seats": [],
"self_info": {
"score": 0,
"rank": 0,
"gap_description": "",
"delta": 0,
"first_gift": false,
"is_hidden": false,
"score_description": "",
"exactly_score": "",
"app_name": "",
"team_jump_schema": "",
"team_id": ""
},
"has_more": false,
"music_wave": "",
"total": 0,
"currency": "",
"has_once_live": true,
"rules_url": "sslocal://webcast_webview?url=https%3A%2F%2Faweme.snssdk.com%2Fmagic%2Fpage%2Fejs%2F5f27c6ca9950ec0307de9248%3FappType%3Ddouyin%26pull_down_indicator_color%3Ddark%26pull_down_indicator_not_show%3D0%26web_bg_color%3D%2523ffffffff&pull_down_close=0&pull_down_indicator_not_show=1&pull_down_indicator_color=dark&type=popup&gravity=bottom&height=450&radius=8&hide_more=0&hide_nav_bar=0&hide_status_bar=0&landscape_custom_width=1&rate_height=450",
"user_count_desc": "0",
"invisible_total": 0,
"typography_type": 0,
"service_days": 0,
"label": ""
},
"extra": {
"now": 1787141031685
},
"status_code": 0
},
"requestId": "2c59c78f-a0fc-4adc-8201-d801a05b8412"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 creditper request
Copy for AI
🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
⌘I

