# 搜索视频

按关键词搜索抖音视频。要取某个视频的完整数据用 douyin_video_detail_v1,要取它的评论用 douyin_video_comments_v1。

ID: native-http:social.douyin.video.search · Region: cn · Status: unknown

catalog_version: 5c920c774a55e44d7e8c709143b88a18b8b2afcef91a5d19a8c9ae5d565d9077
updated_at: 2026-10-21T12:06:16.523771+00:00

缓存资料；当前可用状态待核实。

按关键词搜索抖音视频。要取某个视频的完整数据用 douyin_video_detail_v1,要取它的评论用 douyin_video_comments_v1。

历史数据以数据集发布版本定义覆盖周期；实时读取反映请求时资料，不保证覆盖全部记录。

Docs: https://docs.asklear.cn/capabilities/native-http%3Asocial.douyin.video.search

## POST /v1/native/social/douyin/videos/search

native · unknown · api_key

REST 需要客户 API Key；MCP 需要已开放的服务及现有授权；CLI 需要已发布且包含该命令的客户端。

按关键词搜索抖音视频。要取某个视频的完整数据用 douyin_video_detail_v1,要取它的评论用 douyin_video_comments_v1。

按成功请求计费，每次请求计一次；max_credits 限制本次费用上限。

恢复同一次原生请求时复用原 Idempotency-Key。

等待态响应提供结果/状态引用。先读取原结果；超时或结果不明时禁止自动重新提交付费执行。401/403/422 应先修正鉴权、权限或输入。

### Input schema / 输入契约

```json
{
  "$defs": {
    "Schema1": {}
  },
  "additionalProperties": false,
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "backtrace": {
          "default": "",
          "description": "翻页回溯标识，从上一次响应的 data.pagination.backtrace 获取，首次请求传空字符串 / Backtrace, obtained from data.pagination.backtrace of the last response, empty for the first request",
          "type": "string"
        },
        "content_type": {
          "default": "0",
          "description": "内容类型：0=不限 1=视频 2=图片 3=文章 / Content type: 0=All, 1=Video, 2=Picture, 3=Article",
          "enum": [
            "0",
            "1",
            "2",
            "3"
          ],
          "type": "string"
        },
        "cursor": {
          "default": "",
          "description": "偏移游标，用于翻页，从上一次请求返回的响应中获取 / Offset cursor for pagination, obtained from the last response",
          "maxLength": 1024,
          "type": "string"
        },
        "filter_duration": {
          "default": "0",
          "description": "视频时长过滤：0=不限 0-1=一分钟以内 1-5=一到五分钟 5-10000=五分钟以上 / Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes",
          "enum": [
            "0",
            "0-1",
            "1-5",
            "5-10000"
          ],
          "type": "string"
        },
        "keyword": {
          "description": "关键词 / Keyword",
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        },
        "offset": {
          "default": 0,
          "description": "偏移游标，用于翻页，从上一次请求返回的响应中获取 / Offset cursor for pagination, obtained from the last response",
          "minimum": 0,
          "type": "integer"
        },
        "page": {
          "default": 1,
          "description": "页码，取值 1~200，首次请求传 1，之后每次加 1 / Page number, 1-200, start with 1 and increment by 1 each time",
          "maximum": 200,
          "minimum": 1,
          "type": "integer"
        },
        "publish_time": {
          "default": "0",
          "description": "发布时间筛选：0=不限 1=最近一天 7=最近一周 180=最近半年 / Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year",
          "enum": [
            "0",
            "1",
            "7",
            "180"
          ],
          "type": "string"
        },
        "search_id": {
          "default": "",
          "description": "搜索ID，从上一次响应的 data.pagination.search_id 获取，首次请求传空字符串 / Search ID, obtained from data.pagination.search_id of the last response, empty for the first request",
          "type": "string"
        },
        "sort_type": {
          "default": "0",
          "description": "排序方式：0=综合排序 1=最多点赞 2=最新发布 / Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest",
          "enum": [
            "0",
            "1",
            "2"
          ],
          "type": "string"
        }
      },
      "required": [
        "keyword"
      ],
      "type": "object"
    },
    "max_credits": {
      "anyOf": [
        {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "task_query": {
      "anyOf": [
        {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional task attribution: when provided, write one concise, self-contained task_query in the user's language and reuse that exact value in every call for the task, including discovery, search, approval retry, results, export, and status checks. For MCP calls, when omitted, Asklear records a generic non-user-specific attribution so compatible clients can still call the tool. REST calls may omit it and remain unattributed. It is a task description, not a task identifier. Do not include hidden reasoning, credentials, or direct personal identifiers such as phone numbers, email addresses, identity numbers, or street addresses.",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}
```

### Synthetic request / 合成请求

```json
{
  "input": {
    "keyword": "example"
  }
}
```

### Response schema / 响应契约

```json
{
  "$defs": {
    "Schema1": {},
    "Schema2": {
      "properties": {
        "api_name": {
          "type": "string"
        },
        "credits_charged": {
          "minimum": 0,
          "type": "integer"
        },
        "latency_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "next_input": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "backtrace": {
                  "default": "",
                  "description": "翻页回溯标识，从上一次响应的 data.pagination.backtrace 获取，首次请求传空字符串 / Backtrace, obtained from data.pagination.backtrace of the last response, empty for the first request",
                  "type": "string"
                },
                "content_type": {
                  "default": "0",
                  "description": "内容类型：0=不限 1=视频 2=图片 3=文章 / Content type: 0=All, 1=Video, 2=Picture, 3=Article",
                  "enum": [
                    "0",
                    "1",
                    "2",
                    "3"
                  ],
                  "type": "string"
                },
                "cursor": {
                  "default": "",
                  "maxLength": 1024,
                  "type": "string"
                },
                "filter_duration": {
                  "default": "0",
                  "description": "视频时长过滤：0=不限 0-1=一分钟以内 1-5=一到五分钟 5-10000=五分钟以上 / Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes",
                  "enum": [
                    "0",
                    "0-1",
                    "1-5",
                    "5-10000"
                  ],
                  "type": "string"
                },
                "keyword": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "offset": {
                  "default": 0,
                  "minimum": 0,
                  "type": "integer"
                },
                "page": {
                  "default": 1,
                  "description": "页码，取值 1~200，首次请求传 1，之后每次加 1 / Page number, 1-200, start with 1 and increment by 1 each time",
                  "maximum": 200,
                  "minimum": 1,
                  "type": "integer"
                },
                "publish_time": {
                  "default": "0",
                  "description": "发布时间筛选：0=不限 1=最近一天 7=最近一周 180=最近半年 / Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year",
                  "enum": [
                    "0",
                    "1",
                    "7",
                    "180"
                  ],
                  "type": "string"
                },
                "search_id": {
                  "default": "",
                  "description": "搜索ID，从上一次响应的 data.pagination.search_id 获取，首次请求传空字符串 / Search ID, obtained from data.pagination.search_id of the last response, empty for the first request",
                  "type": "string"
                },
                "sort_type": {
                  "default": "0",
                  "description": "排序方式：0=综合排序 1=最多点赞 2=最新发布 / Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest",
                  "enum": [
                    "0",
                    "1",
                    "2"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "keyword"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "api_name",
        "request_id",
        "latency_ms",
        "credits_charged",
        "next_input"
      ],
      "type": "object"
    }
  },
  "properties": {
    "data": {
      "additionalProperties": true,
      "description": "Known optional fields from sanitized offline fixtures; conditional fields may be null. Additional business fields are retained.",
      "properties": {
        "code": {
          "type": [
            "integer",
            "null"
          ]
        },
        "data": {
          "additionalProperties": true,
          "properties": {
            "aweme_list": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "author": {
                    "additionalProperties": true,
                    "properties": {
                      "nickname": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sec_uid": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "uid": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "aweme_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "create_time": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "desc": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "statistics": {
                    "additionalProperties": true,
                    "properties": {
                      "comment_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "digg_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "play_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "share_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": [
                "array",
                "null"
              ]
            },
            "backtrace": {
              "type": [
                "string",
                "null"
              ]
            },
            "cursor": {
              "type": [
                "integer",
                "null"
              ]
            },
            "hasMore": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "has_more": {
              "description": "Source flags may be JSON booleans or integer flags; original values are retained. This optional field may also be null or absent.",
              "type": [
                "boolean",
                "integer",
                "null"
              ]
            },
            "itemList": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "AwemeInfo": {
                    "additionalProperties": true,
                    "properties": {
                      "Author": {
                        "additionalProperties": true,
                        "properties": {
                          "Nickname": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "SecUid": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "Uid": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "AwemeId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "CreateTime": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "Desc": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "ShareUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "Statistics": {
                        "additionalProperties": true,
                        "properties": {
                          "CommentCount": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "DiggCount": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "PlayCount": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "ShareCount": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": [
                "array",
                "null"
              ]
            },
            "items": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "aweme_info": {
                    "additionalProperties": true,
                    "properties": {
                      "author": {
                        "additionalProperties": true,
                        "properties": {
                          "nickname": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sec_uid": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "uid": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "aweme_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "create_time": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "desc": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "share_url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "statistics": {
                        "additionalProperties": true,
                        "properties": {
                          "comment_count": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "digg_count": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "play_count": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "share_count": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": [
                "array",
                "null"
              ]
            },
            "pagination": {
              "additionalProperties": true,
              "properties": {
                "backtrace": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "has_more": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "next_page": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "offset": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "search_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            },
            "search_id": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "meta": {
      "$ref": "#/$defs/Schema2"
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "type": "object"
}
```

### Synthetic response / 合成响应

```json
{
  "data": {
    "code": 200,
    "data": {
      "aweme_list": [
        {
          "author": {
            "nickname": "作者",
            "sec_uid": "MS4w-private",
            "uid": "42"
          },
          "aweme_id": "7219984553887157563",
          "create_time": 1700000000,
          "desc": "<em>扫地</em>机器人",
          "share_url": "https://www.douyin.com/video/7219984553887157563",
          "statistics": {
            "comment_count": 2,
            "digg_count": 3,
            "play_count": 7,
            "share_count": 1
          }
        }
      ],
      "backtrace": "trace-1",
      "cursor": 10,
      "has_more": true,
      "search_id": "search-1"
    }
  },
  "meta": {
    "api_name": "social.douyin.video.search",
    "credits_charged": 12,
    "latency_ms": 12,
    "next_input": {
      "cursor": "eyJyIjoidjEiLCJjIjoxMCwicyI6InNlYXJjaC0xIiwiYiI6InRyYWNlLTEifQ==",
      "keyword": "扫地机器人"
    },
    "request_id": "asklear-example"
  }
}
```

- data (object): Known optional fields from sanitized offline fixtures; conditional fields may be null. Additional business fields are retained.
- data.code (integer|null): 暂无字段说明
- data.data (object|null): 暂无字段说明
- data.data.aweme_list (array|null): 暂无字段说明
- data.data.backtrace (string|null): 暂无字段说明
- data.data.cursor (integer|null): 暂无字段说明
- data.data.hasMore (boolean|null): 暂无字段说明
- data.data.has_more (boolean|integer|null): Source flags may be JSON booleans or integer flags; original values are retained. This optional field may also be null or absent.
- data.data.itemList (array|null): 暂无字段说明
- data.data.items (array|null): 暂无字段说明
- data.data.pagination (object|null): 暂无字段说明
- data.data.pagination.backtrace (string|null): 暂无字段说明
- data.data.pagination.has_more (integer|null): 暂无字段说明
- data.data.pagination.next_page (integer|null): 暂无字段说明
- data.data.pagination.offset (integer|null): 暂无字段说明
- data.data.pagination.search_id (string|null): 暂无字段说明
- data.data.search_id (string|null): 暂无字段说明
- meta (object): 暂无字段说明
- meta.api_name (string): 暂无字段说明
- meta.request_id (string): 暂无字段说明
- meta.latency_ms (integer): 暂无字段说明
- meta.credits_charged (integer): 暂无字段说明
- meta.next_input (scalar): 暂无字段说明
- data.data.aweme_list[].author (object|null): 暂无字段说明
- data.data.aweme_list[].author.nickname (string|null): 暂无字段说明
- data.data.aweme_list[].author.sec_uid (string|null): 暂无字段说明
- data.data.aweme_list[].author.uid (string|null): 暂无字段说明
- data.data.aweme_list[].aweme_id (string|null): 暂无字段说明
- data.data.aweme_list[].create_time (integer|null): 暂无字段说明
- data.data.aweme_list[].desc (string|null): 暂无字段说明
- data.data.aweme_list[].share_url (string|null): 暂无字段说明
- data.data.aweme_list[].statistics (object|null): 暂无字段说明
- data.data.aweme_list[].statistics.comment_count (integer|null): 暂无字段说明
- data.data.aweme_list[].statistics.digg_count (integer|null): 暂无字段说明
- data.data.aweme_list[].statistics.play_count (integer|null): 暂无字段说明
- data.data.aweme_list[].statistics.share_count (integer|null): 暂无字段说明
- data.data.itemList[].AwemeInfo (object|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Author (object|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Author.Nickname (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Author.SecUid (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Author.Uid (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.AwemeId (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.CreateTime (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Desc (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.ShareUrl (string|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Statistics (object|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Statistics.CommentCount (integer|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Statistics.DiggCount (integer|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Statistics.PlayCount (integer|null): 暂无字段说明
- data.data.itemList[].AwemeInfo.Statistics.ShareCount (integer|null): 暂无字段说明
- data.data.items[].aweme_info (object|null): 暂无字段说明
- data.data.items[].aweme_info.author (object|null): 暂无字段说明
- data.data.items[].aweme_info.author.nickname (string|null): 作者名称。
- data.data.items[].aweme_info.author.sec_uid (string|null): 作者 sec_uid。
- data.data.items[].aweme_info.author.uid (string|null): 作者 ID。
- data.data.items[].aweme_info.aweme_id (string|null): 抖音视频 ID。
- data.data.items[].aweme_info.create_time (integer|null): 暂无字段说明
- data.data.items[].aweme_info.desc (string|null): 视频标题或描述。
- data.data.items[].aweme_info.share_url (string|null): 如上游提供则返回视频公开分享链接。
- data.data.items[].aweme_info.statistics (object|null): 暂无字段说明
- data.data.items[].aweme_info.statistics.comment_count (integer|null): 评论数。
- data.data.items[].aweme_info.statistics.digg_count (integer|null): 点赞数。
- data.data.items[].aweme_info.statistics.play_count (integer|null): 播放数。
- data.data.items[].aweme_info.statistics.share_count (integer|null): 分享数。
- meta.next_input.backtrace (string): 翻页回溯标识，从上一次响应的 data.pagination.backtrace 获取，首次请求传空字符串 / Backtrace, obtained from data.pagination.backtrace of the last response, empty for the first request
- meta.next_input.content_type (string): 内容类型：0=不限 1=视频 2=图片 3=文章 / Content type: 0=All, 1=Video, 2=Picture, 3=Article
- meta.next_input.cursor (string): 暂无字段说明
- meta.next_input.filter_duration (string): 视频时长过滤：0=不限 0-1=一分钟以内 1-5=一到五分钟 5-10000=五分钟以上 / Video duration filter: 0=Unlimited, 0-1=Within 1 minute, 1-5=1 to 5 minutes, 5-10000=More than 5 minutes
- meta.next_input.keyword (string): 暂无字段说明
- meta.next_input.offset (integer): 暂无字段说明
- meta.next_input.page (integer): 页码，取值 1~200，首次请求传 1，之后每次加 1 / Page number, 1-200, start with 1 and increment by 1 each time
- meta.next_input.publish_time (string): 发布时间筛选：0=不限 1=最近一天 7=最近一周 180=最近半年 / Publish time filter: 0=Unlimited, 1=Last day, 7=Last week, 180=Last half year
- meta.next_input.search_id (string): 搜索ID，从上一次响应的 data.pagination.search_id 获取，首次请求传空字符串 / Search ID, obtained from data.pagination.search_id of the last response, empty for the first request
- meta.next_input.sort_type (string): 排序方式：0=综合排序 1=最多点赞 2=最新发布 / Sort type: 0=Comprehensive, 1=Most Likes, 2=Latest

Follow up: GET /v1/native/results/{query_id}
读取已保存结果，不重复查询数据或收费。

