Fetch video search V3 API
Fetch video search V3
USD 0.010000 / erfolgreicher Aufruf
Öffentliche ID: social.tikhub.douyin.search.fetch.video.search.v3 · Version 1
Preise
USD 0.010000 / erfolgreicher Aufruf
Schnellstart
Suchen Sie dieses Tool mit Ihrem API-Schlüssel und prüfen Sie vor der Ausführung die zurückgegebenen Angaben zu provider und endpoint.
Setzen Sie GLOOP_API_BASE auf Ihre API-Adresse und GLOOP_API_KEY auf Ihren serverseitigen Schlüssel.
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": "Fetch video search V3"
}'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\": \"Fetch video search V3\"\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": "Fetch video search V3"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Tool-API-Dokumentation · POST /v1/inspectEingabeschema
{
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"date_type": {
"description": "发布时间筛选:0=不限, 3=近3天, 7=近7天, 30=近一个月/Publish date filter: 0=any, 3=last 3 days, 7=last 7 days, 30=last 30 days",
"title": "Date Type",
"type": "integer"
},
"duration_type": {
"description": "时长筛选:0=不限, 1=0-15秒, 6=15-60秒, 7=60-120秒, 8=120-180秒, 9=大于180秒/Duration filter: 0=any, 1=0-15s, 6=15-60s, 7=60-120s, 8=120-180s, 9=over 180s",
"title": "Duration Type",
"type": "integer"
},
"label_type": {
"description": "视频类型筛选:0=不限, 1=低粉爆款, 2=高完播率, 3=高涨粉率, 4=高点赞率/Video type filter: 0=any, 1=low-follower hit, 2=high completion rate, 3=high follower growth, 4=high like rate",
"title": "Label Type",
"type": "integer"
},
"query": {
"description": "搜索关键词/Search keyword",
"title": "Query",
"type": "string"
}
},
"title": "VideoSearchV3Request",
"type": "object"
},
"queryParams": {
"additionalProperties": false,
"properties": {},
"type": "object"
}
},
"required": [],
"type": "object"
}Ausgabeschema
{
"type": "object"
}