Fetch hot account list API

Fetch hot account list

USD 0.001000 / chiamata riuscita

ID pubblico: social.tikhub.douyin.billboard.fetch.hot.account.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 hot account 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 hot account 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 hot account 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": "时间窗口(小时),可选 24/72/168,代表近1天/近3天/近7天,默认24",
          "title": "Date Window",
          "type": "integer"
        },
        "page_num": {
          "description": "页码,默认1",
          "title": "Page Num",
          "type": "integer"
        },
        "page_size": {
          "description": "每页数量,默认10",
          "title": "Page Size",
          "type": "integer"
        },
        "query_tag": {
          "description": "垂类标签筛选,空则为全部,标签id从 fetch_content_tag 接口获取",
          "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": "Body_fetch_hot_account_list_api_v1_douyin_billboard_fetch_hot_account_list_post",
      "type": "object"
    },
    "queryParams": {
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    }
  },
  "required": [],
  "type": "object"
}

Schema di output

{
  "type": "object"
}

Strumenti della stessa categoria