Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin Video Search Filter Options

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/index/item-filter-options

Returns all supported filter options and permissible values for Douyin video search queries. Use these criteria to construct structured search requests.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Không có schema đầu vào
Đầu raVí dụ
Phản hồioutputs · 1.5 KB · 78 dòng
[
  {
    "data": {
      "categories": [
        {
          "id": "0",
          "name": "垂类不限",
          "name_en": "All categories"
        },
        {
          "id": "601",
          "name": "剧情",
          "name_en": "Drama"
        },
        {
          "id": "602",
          "name": "明星",
          "name_en": "Celebrity"
        },
        "… 33 more items in the full response"
      ],
      "date_types": [
        {
          "id": 0,
          "name": "发布时间不限",
          "name_en": "Any publish time"
        },
        {
          "id": 3,
          "name": "近3天",
          "name_en": "Last 3 days"
        },
        {
          "id": 7,
          "name": "近7天",
          "name_en": "Last 7 days"
        },
        "… 1 more items in the full response"
      ],
      "duration_types": [
        {
          "id": 0,
          "name": "时长不限",
          "name_en": "Any duration"
        },
        {
          "id": 1,
          "name": "0-15秒",
          "name_en": "0-15 seconds"
        },
        {
          "id": 6,
          "name": "15-60秒",
          "name_en": "15-60 seconds"
        },
        "… 3 more items in the full response"
      ],
      "label_types": [
        {
          "id": 0,
          "name": "类型不限",
          "name_en": "Any type"
        },
        {
          "id": 1,
          "name": "低粉爆款",
          "name_en": "Low-follower hit"
        },
        {
          "id": 2,
          "name": "高完播率",
          "name_en": "High completion rate"
        },
        "… 2 more items in the full response"
      ]
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin Video Search Filter Options API

Returns the filter options that Douyin video search accepts. The request takes no input. Each option has an id, a Chinese name, and an English name_en.

Use cases

  • Fill filter dropdowns for category, publish time, duration and video type in a Douyin video search screen.
  • Check that a category, date range, duration or label id is valid before you send a video search request.
  • Map Chinese filter names to English labels for a bilingual interface.
  • Cache the option lists once and reuse them when you build search queries.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-filter-options" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "categories": [
    {
      "id": "0",
      "name": "垂类不限",
      "name_en": "All categories"
    }
  ],
  "date_types": [
    {
      "id": 0,
      "name": "发布时间不限",
      "name_en": "Any publish time"
    }
  ],
  "duration_types": [
    {
      "id": 0,
      "name": "时长不限",
      "name_en": "Any duration"
    }
  ],
  "label_types": [
    {
      "id": 0,
      "name": "类型不限",
      "name_en": "Any type"
    }
  ]
}

Response fields

FieldMeaning
categories[].idCategory ID. The value 0 means all categories. Pass this ID when you filter by category.
categories[].name / categories[].name_enCategory name in Chinese and in English, for example 剧情 and Drama.
date_types[].idPublish time filter value. It is a number such as 0, 3 or 7. The English names suggest 0 means any time and the others mean the last 3 or 7 days.
date_types[].name / date_types[].name_enPublish time label in Chinese and in English, for example Last 7 days.
duration_types[].idVideo duration filter value. For example 1 is 0-15 seconds and 6 is 15-60 seconds. 0 means any duration.
duration_types[].name / duration_types[].name_enDuration label in Chinese and in English, for example 15-60 seconds.
label_types[].idVideo type filter value. For example 1 is low-follower hit and 2 is high completion rate. 0 means any type.
label_types[].name / label_types[].name_enVideo type label in Chinese and in English.

Notes

  • Category id values are strings, for example "601". The id values in date_types, duration_types and label_types are numbers.
  • Use the id values from this response as filter values in the video search request. Call Douyin Index Video Search to run the search.
  • Use Douyin Video Search Suggestions to find search terms.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin Video Search Filter Options?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/index/item-filter-options với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Douyin Video Search Filter Options có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Douyin Video Search Filter Options chấp nhận những tham số nào?

Douyin Video Search Filter Options không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.

API Douyin Video Search Filter Options trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

Không. Douyin Video Search Filter Options chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.