{
  "openapi": "3.1.0",
  "info": {
    "title": "抖音視頻搜索 API (V4)",
    "version": "v0",
    "description": "按關鍵詞搜索抖音視頻，支持排序、發佈時間、時長和分頁篩選；後續頁面需要上一頁的搜索ID。用於支持內容發現和趨勢研究。"
  },
  "servers": [
    {
      "url": "https://api.justoneapi.com",
      "description": "全球生產 API（預設）"
    }
  ],
  "tags": [
    {
      "name": "抖音",
      "description": "抖音用戶、視頻、評論和搜索資料，用於內容情報、帳號監控和發現。",
      "x-platform-id": "douyin-tiktok-china",
      "x-platform-aliases": [
        "Douyin",
        "TikTok China",
        "抖音"
      ],
      "x-platform-detection-aliases": [
        "Douyin",
        "TikTok China",
        "抖音"
      ]
    }
  ],
  "paths": {
    "/api/douyin/search-video/v4": {
      "get": {
        "tags": [
          "抖音"
        ],
        "summary": "視頻搜索",
        "description": "按關鍵詞搜索抖音視頻，支持排序、發佈時間、時長和分頁篩選；後續頁面需要上一頁的搜索ID。用於支持內容發現和趨勢研究。",
        "operationId": "getApiDouyinSearchVideoV4",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "此 API 服務的訪問令牌。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "搜索關鍵詞。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortType",
            "in": "query",
            "description": "搜索結果排序標準。\n\n可用值：\n- `_0`：綜合\n- `_1`：點贊最多\n- `_2`：最新",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "搜索結果排序標準。",
              "enum": [
                "_0",
                "_1",
                "_2"
              ]
            }
          },
          {
            "name": "publishTime",
            "in": "query",
            "description": "按視頻發佈時間範圍篩選。\n\n可用值：\n- `_0`: 不限\n- `_1`: 最近24小時\n- `_7`: 最近7天\n- `_180`: 最近6個月",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "按視頻發佈時間範圍篩選。",
              "enum": [
                "_0",
                "_1",
                "_7",
                "_180"
              ]
            }
          },
          {
            "name": "duration",
            "in": "query",
            "description": "按視頻時長篩選。\n\n可用值：\n- `_0`: 不限時長\n- `_1`: 1分鐘以內\n- `_2`: 1-5分鐘\n- `_3`: 超過5分鐘",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "按視頻時長篩選。",
              "enum": [
                "_0",
                "_1",
                "_2",
                "_3"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "頁碼（從1開始）。",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "searchId",
            "in": "query",
            "description": "搜索ID；頁面大於1時需要。使用前一次回應中的 data.business_config.next_page.search_id，當 data.business_config.has_more 為 0 時停止分頁。",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "好的",
            "content": {
              "application/json": {
                "schema": {
                  "if": {
                    "properties": {
                      "code": {
                        "const": 0
                      }
                    },
                    "required": [
                      "code"
                    ]
                  },
                  "then": {
                    "properties": {
                      "data": {
                        "type": "object",
                        "description": "抖音關鍵詞搜索的結果及分頁信息。",
                        "properties": {
                          "business_data": {
                            "type": "array",
                            "description": "搜索結果卡片列表。同一視頻可能出現在多頁，可按 aweme_id 對視頻結果去重。",
                            "items": {
                              "type": "object",
                              "description": "搜索結果列表中的一張卡片。",
                              "properties": {
                                "data_id": {
                                  "type": "string",
                                  "description": "卡片在當前回應中的標識。"
                                },
                                "type": {
                                  "type": "integer",
                                  "description": "結果類型編碼。已觀察到 1 表示視頻結果，66667 表示相關搜索。"
                                },
                                "data": {
                                  "type": "object",
                                  "description": "結果卡片的內容，具體欄位取決於卡片類型。",
                                  "properties": {
                                    "aweme_info": {
                                      "type": "object",
                                      "description": "卡片包含視頻結果時返回的抖音視頻信息。",
                                      "properties": {
                                        "aweme_id": {
                                          "type": "string",
                                          "description": "抖音視頻的穩定 ID，以字符串返回。可用該值在搜索結果的不同頁面中識別同一個視頻。"
                                        },
                                        "group_id": {
                                          "type": "string",
                                          "description": "平台返回的作品分組標識。"
                                        },
                                        "author_user_id": {
                                          "type": "integer",
                                          "format": "int64",
                                          "description": "發佈帳號的數字型 ID。"
                                        },
                                        "desc": {
                                          "type": "string",
                                          "description": "抖音提供的作品描述。"
                                        },
                                        "caption": {
                                          "type": "string",
                                          "description": "抖音提供的作品文案。"
                                        },
                                        "item_title": {
                                          "type": "string",
                                          "description": "作品標題，有該值時返回。"
                                        },
                                        "preview_title": {
                                          "type": "string",
                                          "description": "作品預覽使用的標題。"
                                        },
                                        "create_time": {
                                          "type": "integer",
                                          "format": "int64",
                                          "description": "視頻發佈時間，Unix 時間戳，單位為秒。"
                                        },
                                        "duration": {
                                          "type": "integer",
                                          "description": "視頻時長，單位為毫秒。"
                                        },
                                        "aweme_type": {
                                          "type": "integer",
                                          "description": "抖音返回的作品類型編碼。"
                                        },
                                        "media_type": {
                                          "type": "integer",
                                          "description": "抖音返回的媒體類型編碼。"
                                        },
                                        "ip_attribution": {
                                          "type": "string",
                                          "description": "抖音返回的 IP 屬地標識，有該值時返回。"
                                        },
                                        "share_url": {
                                          "type": "string",
                                          "description": "視頻的抖音分享連結。"
                                        },
                                        "share_info": {
                                          "type": "object",
                                          "description": "分享視頻時使用的信息。",
                                          "properties": {
                                            "share_url": {
                                              "type": "string",
                                              "description": "分享視頻時使用的連結。"
                                            },
                                            "share_title": {
                                              "type": "string",
                                              "description": "分享視頻時使用的標題。"
                                            },
                                            "share_desc": {
                                              "type": "string",
                                              "description": "分享視頻時使用的說明文本。"
                                            }
                                          }
                                        },
                                        "text_extra": {
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "description": "作品文本關聯的話題標籤與提及的帳號列表，可能為 null。",
                                          "items": {
                                            "type": "object",
                                            "description": "一項文本標註。",
                                            "properties": {
                                              "type": {
                                                "type": "integer",
                                                "description": "抖音返回的文本標註類型編碼。"
                                              },
                                              "hashtag_id": {
                                                "type": "string",
                                                "description": "標註表示話題標籤時，對應的話題標籤 ID。"
                                              },
                                              "hashtag_name": {
                                                "type": "string",
                                                "description": "被標註的話題標籤名稱。"
                                              },
                                              "user_id": {
                                                "type": "string",
                                                "description": "標註提及用戶時，對應的抖音帳號 ID。"
                                              },
                                              "sec_uid": {
                                                "type": "string",
                                                "description": "被提及用戶的抖音備用帳號標識。"
                                              },
                                              "is_commerce": {
                                                "type": "boolean",
                                                "description": "抖音是否將該話題標籤標記為商業內容。"
                                              }
                                            }
                                          }
                                        },
                                        "cha_list": {
                                          "type": [
                                            "array",
                                            "null"
                                          ],
                                          "description": "與作品關聯的話題或挑戰列表，可能為 null。",
                                          "items": {
                                            "type": "object",
                                            "description": "一個話題或挑戰。",
                                            "properties": {
                                              "cid": {
                                                "type": "string",
                                                "description": "抖音話題或挑戰的 ID。"
                                              },
                                              "cha_name": {
                                                "type": "string",
                                                "description": "話題或挑戰的名稱。"
                                              },
                                              "desc": {
                                                "type": "string",
                                                "description": "話題或挑戰的說明。"
                                              },
                                              "is_commerce": {
                                                "type": "boolean",
                                                "description": "抖音是否將該話題或挑戰標記為商業內容。"
                                              }
                                            }
                                          }
                                        },
                                        "author": {
                                          "type": "object",
                                          "description": "隨視頻返回的作者資料。",
                                          "properties": {
                                            "uid": {
                                              "type": "string",
                                              "description": "抖音帳號 ID，以字符串返回。"
                                            },
                                            "sec_uid": {
                                              "type": "string",
                                              "description": "抖音用戶資料接口使用的備用帳號標識。"
                                            },
                                            "nickname": {
                                              "type": "string",
                                              "description": "作者的顯示暱稱。"
                                            },
                                            "unique_id": {
                                              "type": "string",
                                              "description": "公開展示的抖音號，有該值時返回。"
                                            },
                                            "short_id": {
                                              "type": "string",
                                              "description": "抖音返回的帳號短標識。"
                                            },
                                            "follower_count": {
                                              "type": "integer",
                                              "description": "平台返回的作者粉絲數。"
                                            },
                                            "is_verified": {
                                              "type": "boolean",
                                              "description": "抖音是否將作者標記為已認證。"
                                            },
                                            "verification_type": {
                                              "type": "integer",
                                              "description": "平台返回的作者認證類別編碼。"
                                            },
                                            "avatar_thumb": {
                                              "type": "object",
                                              "description": "作者頭像縮略圖。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            },
                                            "avatar_medium": {
                                              "type": "object",
                                              "description": "作者頭像的中等尺寸版本。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            },
                                            "avatar_larger": {
                                              "type": "object",
                                              "description": "作者頭像的大尺寸版本。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "statistics": {
                                          "type": "object",
                                          "description": "平台返回的視頻互動統計。",
                                          "properties": {
                                            "aweme_id": {
                                              "type": "string",
                                              "description": "該統計關聯的抖音視頻 ID。"
                                            },
                                            "digg_count": {
                                              "type": "integer",
                                              "description": "平台返回的視頻點贊數。"
                                            },
                                            "comment_count": {
                                              "type": "integer",
                                              "description": "平台返回的視頻評論數。"
                                            },
                                            "collect_count": {
                                              "type": "integer",
                                              "description": "平台返回的視頻收藏數。"
                                            },
                                            "share_count": {
                                              "type": "integer",
                                              "description": "平台返回的視頻分享數。"
                                            },
                                            "forward_count": {
                                              "type": "integer",
                                              "description": "回應中返回的轉發數。"
                                            },
                                            "download_count": {
                                              "type": "integer",
                                              "description": "平台返回的視頻下載數。"
                                            }
                                          }
                                        },
                                        "video": {
                                          "type": "object",
                                          "description": "視頻信息及可用的播放資源。",
                                          "properties": {
                                            "duration": {
                                              "type": "integer",
                                              "description": "視頻時長，單位為毫秒。"
                                            },
                                            "width": {
                                              "type": "integer",
                                              "description": "抖音返回的視頻寬度，單位為像素。"
                                            },
                                            "height": {
                                              "type": "integer",
                                              "description": "抖音返回的視頻高度，單位為像素。"
                                            },
                                            "format": {
                                              "type": "string",
                                              "description": "抖音返回的視頻格式。"
                                            },
                                            "ratio": {
                                              "type": "string",
                                              "description": "抖音返回的清晰度標籤。"
                                            },
                                            "has_watermark": {
                                              "type": "boolean",
                                              "description": "視頻信息中返回的水印標記。"
                                            },
                                            "play_addr": {
                                              "type": "object",
                                              "description": "視頻的主要播放地址。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                },
                                                "data_size": {
                                                  "type": "integer",
                                                  "format": "int64",
                                                  "description": "資源信息中記錄的文件大小，單位為字節。"
                                                }
                                              }
                                            },
                                            "play_addr_h264": {
                                              "type": "object",
                                              "description": "H.264 版本的播放地址。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                },
                                                "data_size": {
                                                  "type": "integer",
                                                  "format": "int64",
                                                  "description": "資源信息中記錄的文件大小，單位為字節。"
                                                }
                                              }
                                            },
                                            "play_addr_265": {
                                              "type": "object",
                                              "description": "H.265 播放欄位中返回的地址。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                },
                                                "data_size": {
                                                  "type": "integer",
                                                  "format": "int64",
                                                  "description": "資源信息中記錄的文件大小，單位為字節。"
                                                }
                                              }
                                            },
                                            "download_addr": {
                                              "type": "object",
                                              "description": "視頻下載地址。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                },
                                                "data_size": {
                                                  "type": "integer",
                                                  "format": "int64",
                                                  "description": "資源信息中記錄的文件大小，單位為字節。"
                                                }
                                              }
                                            },
                                            "cover": {
                                              "type": "object",
                                              "description": "視頻封面圖片。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            },
                                            "origin_cover": {
                                              "type": "object",
                                              "description": "原始封面欄位中的封面圖片。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            },
                                            "dynamic_cover": {
                                              "type": "object",
                                              "description": "動態封面資源，有相關信息時返回。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            },
                                            "animated_cover": {
                                              "type": "object",
                                              "description": "動畫封面資源，有相關信息時返回。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                }
                                              }
                                            },
                                            "bit_rate": {
                                              "type": "array",
                                              "description": "視頻的播放編碼版本和碼率信息。",
                                              "items": {
                                                "type": "object",
                                                "description": "視頻的一個播放編碼版本。",
                                                "properties": {
                                                  "bit_rate": {
                                                    "type": "integer",
                                                    "description": "編碼碼率，單位為比特每秒。"
                                                  },
                                                  "FPS": {
                                                    "type": "integer",
                                                    "description": "幀率，單位為幀每秒。"
                                                  },
                                                  "format": {
                                                    "type": "string",
                                                    "description": "平台返回的該編碼版本媒體格式。"
                                                  },
                                                  "gear_name": {
                                                    "type": "string",
                                                    "description": "平台返回的該版本編碼檔位標籤。"
                                                  },
                                                  "quality_type": {
                                                    "type": "integer",
                                                    "description": "平台返回的該編碼版本畫質類別編碼。"
                                                  },
                                                  "is_h265": {
                                                    "type": "integer",
                                                    "description": "平台返回的該版本 H.265 編碼標記。"
                                                  },
                                                  "HDR_type": {
                                                    "type": "string",
                                                    "description": "該編碼版本返回的 HDR 類別標籤。"
                                                  },
                                                  "HDR_bit": {
                                                    "type": "string",
                                                    "description": "該編碼版本返回的 HDR 位深標籤。"
                                                  },
                                                  "play_addr": {
                                                    "type": "object",
                                                    "description": "該編碼版本的播放地址。",
                                                    "properties": {
                                                      "uri": {
                                                        "type": "string",
                                                        "description": "抖音返回的資源標識。"
                                                      },
                                                      "url_list": {
                                                        "type": "array",
                                                        "description": "資源的連結列表。",
                                                        "items": {
                                                          "type": "string",
                                                          "description": "一條資源連結。"
                                                        }
                                                      },
                                                      "width": {
                                                        "type": "integer",
                                                        "description": "資源信息中記錄的寬度，單位為像素。"
                                                      },
                                                      "height": {
                                                        "type": "integer",
                                                        "description": "資源信息中記錄的高度，單位為像素。"
                                                      },
                                                      "data_size": {
                                                        "type": "integer",
                                                        "format": "int64",
                                                        "description": "資源信息中記錄的文件大小，單位為字節。"
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "music": {
                                          "type": "object",
                                          "description": "與視頻關聯的音樂或聲音信息。",
                                          "properties": {
                                            "id": {
                                              "type": "integer",
                                              "format": "int64",
                                              "description": "數字型音樂 ID。在 JavaScript 中使用支持無損數字解析的 JSON 解析器保留完整值。"
                                            },
                                            "id_str": {
                                              "type": "string",
                                              "description": "音樂 ID，以字符串返回。"
                                            },
                                            "mid": {
                                              "type": "string",
                                              "description": "mid 欄位返回的音樂 ID。"
                                            },
                                            "title": {
                                              "type": "string",
                                              "description": "聲音或音樂音軌的標題。"
                                            },
                                            "author": {
                                              "type": "string",
                                              "description": "隨音軌返回的藝人或聲音創作者名稱。"
                                            },
                                            "album": {
                                              "type": "string",
                                              "description": "專輯名稱，有該值時返回。"
                                            },
                                            "is_original_sound": {
                                              "type": "boolean",
                                              "description": "抖音是否將該音軌標記為原聲。"
                                            },
                                            "cover_thumb": {
                                              "type": "object",
                                              "description": "聲音或音樂音軌的封面縮略圖。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                },
                                                "width": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的寬度，單位為像素。"
                                                },
                                                "height": {
                                                  "type": "integer",
                                                  "description": "資源信息中記錄的高度，單位為像素。"
                                                }
                                              }
                                            },
                                            "play_url": {
                                              "type": "object",
                                              "description": "聲音或音樂音軌的播放資源。",
                                              "properties": {
                                                "uri": {
                                                  "type": "string",
                                                  "description": "抖音返回的資源標識。"
                                                },
                                                "url_list": {
                                                  "type": "array",
                                                  "description": "資源的連結列表。",
                                                  "items": {
                                                    "type": "string",
                                                    "description": "一條資源連結。"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "related_word_list": {
                                      "type": "array",
                                      "description": "結果卡片包含相關搜索時返回的推薦詞列表。",
                                      "items": {
                                        "type": "object",
                                        "description": "一條相關搜索建議。",
                                        "properties": {
                                          "related_word": {
                                            "type": "string",
                                            "description": "推薦的相關搜索詞。"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "business_config": {
                            "type": "object",
                            "description": "分頁和查詢信息。",
                            "properties": {
                              "keyword": {
                                "type": "string",
                                "description": "平台返回的搜索關鍵詞。"
                              },
                              "card_count": {
                                "type": "integer",
                                "description": "平台返回的當前頁結果卡片數量。"
                              },
                              "has_more": {
                                "type": [
                                  "integer",
                                  "string"
                                ],
                                "description": "該值為 0 時停止翻頁，即使回應仍包含搜索 ID。結果結束時可能只返回此分頁標記。"
                              },
                              "next_page": {
                                "type": "object",
                                "description": "後續分頁信息，有相關信息時返回。",
                                "properties": {
                                  "search_id": {
                                    "type": "string",
                                    "description": "用於請求下一頁的搜索 ID。將該值傳入 searchId，將 page 加 1，並保持關鍵詞和篩選條件一致。連續頁面可能返回相同的搜索 ID。"
                                  }
                                }
                              }
                            }
                          },
                          "status_code": {
                            "type": [
                              "number",
                              "string"
                            ],
                            "description": "抖音搜索狀態碼，有該值時返回。"
                          }
                        }
                      }
                    }
                  },
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer",
                          "format": "int32",
                          "enum": [
                            0,
                            100,
                            101,
                            202,
                            300,
                            301,
                            302,
                            303,
                            400,
                            404,
                            500,
                            503,
                            600,
                            601,
                            602
                          ]
                        },
                        "message": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "data": {},
                        "recordTime": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "requestId": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        },
                        "requestParams": {
                          "type": "object",
                          "properties": {
                            "query": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "object"
                              }
                            },
                            "body": {
                              "type": "object",
                              "properties": {
                                "empty": {
                                  "type": "boolean"
                                },
                                "array": {
                                  "type": "boolean"
                                },
                                "null": {
                                  "type": "boolean"
                                },
                                "object": {
                                  "type": "boolean"
                                },
                                "float": {
                                  "type": "boolean"
                                },
                                "nodeType": {
                                  "type": "string",
                                  "enum": [
                                    "ARRAY",
                                    "BINARY",
                                    "BOOLEAN",
                                    "MISSING",
                                    "NULL",
                                    "NUMBER",
                                    "OBJECT",
                                    "POJO",
                                    "STRING"
                                  ]
                                },
                                "valueNode": {
                                  "type": "boolean"
                                },
                                "container": {
                                  "type": "boolean"
                                },
                                "missingNode": {
                                  "type": "boolean"
                                },
                                "string": {
                                  "type": "boolean"
                                },
                                "integralNumber": {
                                  "type": "boolean"
                                },
                                "floatingPointNumber": {
                                  "type": "boolean"
                                },
                                "pojo": {
                                  "type": "boolean"
                                },
                                "short": {
                                  "type": "boolean"
                                },
                                "int": {
                                  "type": "boolean"
                                },
                                "long": {
                                  "type": "boolean"
                                },
                                "double": {
                                  "type": "boolean"
                                },
                                "bigDecimal": {
                                  "type": "boolean"
                                },
                                "bigInteger": {
                                  "type": "boolean"
                                },
                                "textual": {
                                  "type": "boolean",
                                  "deprecated": true
                                },
                                "boolean": {
                                  "type": "boolean"
                                },
                                "binary": {
                                  "type": "boolean"
                                },
                                "number": {
                                  "type": "boolean"
                                },
                                "embeddedValue": {
                                  "type": "boolean"
                                }
                              }
                            }
                          }
                        }
                      },
                      "required": [
                        "code",
                        "data",
                        "message",
                        "recordTime"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "請求參數或請求本文無效",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "訪問令牌無效或未激活",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "權限不足",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "請求速率或每日配額已超限",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "伺服器內部錯誤",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "503": {
            "description": "服務暫時不可用",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        503,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "requestParams": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "object"
                          }
                        },
                        "body": {
                          "type": "object",
                          "properties": {
                            "empty": {
                              "type": "boolean"
                            },
                            "array": {
                              "type": "boolean"
                            },
                            "null": {
                              "type": "boolean"
                            },
                            "object": {
                              "type": "boolean"
                            },
                            "float": {
                              "type": "boolean"
                            },
                            "nodeType": {
                              "type": "string",
                              "enum": [
                                "ARRAY",
                                "BINARY",
                                "BOOLEAN",
                                "MISSING",
                                "NULL",
                                "NUMBER",
                                "OBJECT",
                                "POJO",
                                "STRING"
                              ]
                            },
                            "valueNode": {
                              "type": "boolean"
                            },
                            "container": {
                              "type": "boolean"
                            },
                            "missingNode": {
                              "type": "boolean"
                            },
                            "string": {
                              "type": "boolean"
                            },
                            "integralNumber": {
                              "type": "boolean"
                            },
                            "floatingPointNumber": {
                              "type": "boolean"
                            },
                            "pojo": {
                              "type": "boolean"
                            },
                            "short": {
                              "type": "boolean"
                            },
                            "int": {
                              "type": "boolean"
                            },
                            "long": {
                              "type": "boolean"
                            },
                            "double": {
                              "type": "boolean"
                            },
                            "bigDecimal": {
                              "type": "boolean"
                            },
                            "bigInteger": {
                              "type": "boolean"
                            },
                            "textual": {
                              "type": "boolean",
                              "deprecated": true
                            },
                            "boolean": {
                              "type": "boolean"
                            },
                            "binary": {
                              "type": "boolean"
                            },
                            "number": {
                              "type": "boolean"
                            },
                            "embeddedValue": {
                              "type": "boolean"
                            }
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          }
        },
        "x-order": "14001000",
        "x-api-version": "v4",
        "x-docs-slug": "video-search-v4",
        "x-search-aliases": [
          "Douyin video search API",
          "Douyin keyword video search",
          "TikTok China content search",
          "抖音视频搜索接口",
          "抖音关键词搜视频",
          "抖音内容搜索 V4"
        ],
        "x-highlights": [],
        "x-endpoint-family": "douyin_search_video"
      }
    }
  }
}