Fetch high like rate list API

Fetch high like rate list

USD 0.001000 / chiamata riuscita

ID pubblico: social.tikhub.douyin.billboard.fetch.hot.total.high.like.list · 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": "Fetch high like rate list"
}'

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 high like rate list\"\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 high like rate list"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
Documentazione API degli strumenti · POST /v1/inspect

Schema di input

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "additionalProperties": false,
      "properties": {
        "date_window": {
          "description": "时间窗口(小时),可选 1/24/72/168,代表近1小时/近1天/近3天/近7天,默认24",
          "title": "Date Window",
          "type": "integer"
        },
        "keyword": {
          "description": "搜索关键词,对榜单按关键词过滤,空为全部",
          "title": "Keyword",
          "type": "string"
        },
        "page": {
          "description": "页码",
          "title": "Page",
          "type": "integer"
        },
        "page_size": {
          "description": "每页数量",
          "title": "Page Size",
          "type": "integer"
        },
        "tags": {
          "description": "垂类标签筛选,空则为全部,标签id从 fetch_content_tag 接口获取",
          "items": {
            "properties": {
              "children": {
                "description": "子级垂类标签列表,省略则为该顶级垂类下全部/Sub-level vertical category tags, omit for all under this top-level tag",
                "items": {
                  "properties": {
                    "value": {
                      "description": "子级垂类标签id,从fetch_content_tag接口获取/Sub-level vertical category tag id, obtained from the fetch_content_tag endpoint",
                      "title": "Value",
                      "type": "integer"
                    }
                  },
                  "title": "BillboardTagChild",
                  "type": "object"
                },
                "title": "Children",
                "type": "array"
              },
              "value": {
                "description": "顶级垂类标签id,从fetch_content_tag接口获取/Top-level vertical category tag id, obtained from the fetch_content_tag endpoint",
                "title": "Value",
                "type": "integer"
              }
            },
            "title": "BillboardTag",
            "type": "object"
          },
          "title": "Tags",
          "type": "array"
        }
      },
      "title": "Body_fetch_hot_total_high_like_list_api_v1_douyin_billboard_fetch_hot_total_high_like_list_post",
      "type": "object"
    },
    "queryParams": {
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    }
  },
  "required": [],
  "type": "object"
}

Schema di output

{
  "type": "object"
}

Strumenti della stessa categoria