Fetch video search V3 API

Fetch video search V3

USD 0.010000 / 次成功调用

公开 ID: social.tikhub.douyin.search.fetch.video.search.v3 · 版本 1

定价

USD 0.010000 / 次成功调用

快速开始

使用 API 密钥发现此工具,再通过返回的 provider 和 endpoint 检查接口后执行。

将 GLOOP_API_BASE 设为 API 地址,GLOOP_API_KEY 设为服务端密钥。

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());
工具 API 文档 · POST /v1/inspect

输入结构

{
  "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"
}

输出结构

{
  "type": "object"
}

同类型工具