{
  "openapi": "3.1.0",
  "info": {
    "title": "Douyin (TikTok China) Video Search API (V1)",
    "version": "v0",
    "description": "Searches Douyin (TikTok China) videos through the mobile-app flow. Start with a keyword and optional filters. Continue with only data.business_config.next_page.search_id from the preceding response; pagination state is retained for up to 24 hours."
  },
  "servers": [
    {
      "url": "https://api.justoneapi.com",
      "description": "Global production API (default)"
    },
    {
      "url": "http://47.117.133.51:30015",
      "description": "Mainland China production API (optional)"
    }
  ],
  "tags": [
    {
      "name": "Douyin (TikTok China)",
      "description": "Douyin user, video, comment, and search data for content intelligence, account monitoring, and discovery.",
      "x-platform-id": "douyin-tiktok-china",
      "x-platform-aliases": [
        "Douyin",
        "TikTok China",
        "抖音"
      ],
      "x-platform-detection-aliases": [
        "Douyin",
        "TikTok China",
        "抖音"
      ]
    }
  ],
  "paths": {
    "/api/douyin/search-video/v1": {
      "get": {
        "tags": [
          "Douyin (TikTok China)"
        ],
        "summary": "Video Search",
        "description": "Searches Douyin (TikTok China) videos through the mobile-app flow. Start with a keyword and optional filters. Continue with only data.business_config.next_page.search_id from the preceding response; pagination state is retained for up to 24 hours.",
        "operationId": "getApiDouyinSearchVideoV1",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "description": "Access token for this API service.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "The search keyword. Required when starting a new search; omit it when continuing with searchId.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortType",
            "in": "query",
            "description": "Sorting criteria for a new search. Stored settings are reused when continuing.\n\nAvailable Values:\n- `_0`: General\n- `_1`: Most Likes\n- `_2`: Newest\n- `_3`: Most Comments\n- `_4`: Most Favorites",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "Douyin App - Video Search Sort Type",
              "enum": [
                "_0",
                "_1",
                "_2",
                "_3",
                "_4"
              ]
            }
          },
          {
            "name": "publishTime",
            "in": "query",
            "description": "Publish-time filter for a new search. Stored settings are reused when continuing.\n\nAvailable Values:\n- `_0`: No Limit\n- `_1`: Last 24 Hours\n- `_7`: Last 7 Days\n- `_180`: Last 6 Months",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "Douyin - Video Search Publish Time Filter",
              "enum": [
                "_0",
                "_1",
                "_7",
                "_180"
              ]
            }
          },
          {
            "name": "duration",
            "in": "query",
            "description": "Duration filter for a new search. Stored settings are reused when continuing.\n\nAvailable Values:\n- `_0`: No Limit\n- `_1`: Under 1 Minute\n- `_2`: 1-5 Minutes\n- `_3`: Over 5 Minutes",
            "required": false,
            "schema": {
              "type": "string",
              "default": "_0",
              "description": "Douyin - Video Search Duration Filter",
              "enum": [
                "_0",
                "_1",
                "_2",
                "_3"
              ]
            }
          },
          {
            "name": "searchId",
            "in": "query",
            "description": "For continuation only. Use data.business_config.next_page.search_id from the previous response. The stored pagination state expires after 24 hours.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters or body",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Invalid or inactive access token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Permission denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Request rate or daily quota limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "format": "int32",
                      "enum": [
                        0,
                        100,
                        101,
                        202,
                        300,
                        301,
                        302,
                        303,
                        400,
                        404,
                        500,
                        600,
                        601,
                        602
                      ]
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "data": {},
                    "recordTime": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "requestId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "data",
                    "message",
                    "recordTime"
                  ]
                }
              }
            }
          }
        },
        "x-order": "14000900",
        "x-api-version": "v1",
        "x-search-aliases": [
          "Douyin App video search API",
          "Douyin keyword video search",
          "Douyin search session pagination",
          "抖音 App 视频搜索接口",
          "抖音关键词搜视频",
          "抖音搜索会话翻页"
        ],
        "x-highlights": [],
        "x-docs-hidden": true,
        "x-endpoint-family": "douyin_search_video"
      }
    }
  }
}