Get DOU+ video ranking API
Get DOU+ video ranking
USD 0.001000 / chiamata riuscita
ID pubblico: social.tikhub.douyin.douplus.fetch.video.ranking · Versione 1
Prezzi
USD 0.001000 / chiamata riuscita
Avvio rapido
Cerca questo strumento con la tua chiave API, poi esamina provider ed endpoint restituiti prima di eseguirlo.
Imposta GLOOP_API_BASE con il tuo indirizzo API e GLOOP_API_KEY con la chiave lato server.
curl
curl --fail-with-body "${GLOOP_API_BASE%/}/v1/discover" \
-H "Authorization: Bearer $GLOOP_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"limit": 5,
"query": "Get DOU+ video ranking"
}'Python
import os, json, urllib.request
url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/discover"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n \"limit\": 5,\n \"query\": \"Get DOU+ video ranking\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
print(json.load(response))Node.js
const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/discover";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
"limit": 5,
"query": "Get DOU+ video ranking"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Documentazione API degli strumenti · POST /v1/inspectSchema di input
{
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"description": "DOU+ 视频排行榜请求模型\nDOU+ Video Ranking Request Model",
"properties": {
"adv_id": {
"description": "广告主ID,可留空/Advertiser id (optional)",
"title": "Adv Id",
"type": "string"
},
"dim_type": {
"description": "榜单维度/Ranking dimension: 1=低粉爆款, 2=高完播率, 3=高点赞率, 4=高涨粉率, 5=热度指数",
"title": "Dim Type",
"type": "integer"
},
"tag_id": {
"description": "垂类ID/Category id. 601剧情,602明星,606音乐,607二次元,608游戏,609时事,612舞蹈,614三农,615科技,616财经,617亲子,619生活,621健康,623情感,624文化,625职场,626教育,627摄影,628美食,629旅行,631时尚,633体育,634娱乐,635汽车",
"title": "Tag Id",
"type": "integer"
},
"time_range": {
"description": "时间范围/Time range: 1 / 2 / 3",
"title": "Time Range",
"type": "integer"
}
},
"title": "VideoRankingRequest",
"type": "object"
},
"queryParams": {
"additionalProperties": false,
"properties": {},
"type": "object"
}
},
"required": [],
"type": "object"
}Schema di output
{
"type": "object"
}