Douyin/抖音

综合搜索V2

POST
https://api.getoneapi.com/api/douyin/search_general_v2

请求参数

Header 参数

Cookie string 必需

需传入已登录的Cookie

默认值: YOUR_CREDENTIAL
Authorization string 必需

在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey

默认值: Bearer YOUR_API_KEY
Content-Type string 必需
默认值: application/json

Body 参数

application/json
keyword string 关键词 必需
count number 必需

返回的数量,建议10

默认值: 10
最小值:12 最大值:18
offset string 翻页参数 必需

返回内容的cursor值

默认值: 0
publish_time enum<string> 发布时间 必需
枚举值:
0 不限
1 一天内
7 七天内
180 半年内
content_type string 内容形式 必需
filter_duration enum<string> 视频时长 可选
枚举值:
0 不限
0-1 一分钟内
1-5 1-5分钟
5-10000 5分钟以上
sort_type enum<string> 排序 可选
枚举值:
0 综合排序
1 最多点赞
2 最新发布
search_range enum<string> 搜索范围 可选

需传入登录cookie

枚举值:
0 不限
1 最近看过
2 还未看过
3 关注的人
search_id string 可选

返回的log_id值

示例
{
  "keyword" : "罗永浩",
  "count" : 10,
  "offset" : "0",
  "publish_time" : "0",
  "content_type" : "0",
  "filter_duration" : "",
  "sort_type" : "0",
  "search_range" : "0",
  "search_id" : ""
}

返回响应

响应 200

application/json
code integer 必需
message string 必需
data object 必需
示例
{
  "code" : 200,
  "message" : "success",
  "data" : { }
}

请求示例代码

替换 YOUR_API_KEY、参数占位符与请求数据后使用。第三方客户端需先安装对应依赖。

curl --globoff --request POST 'https://api.getoneapi.com/api/douyin/search_general_v2' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "keyword" : "罗永浩",
  "count" : 10,
  "offset" : "0",
  "publish_time" : "0",
  "content_type" : "0",
  "filter_duration" : "",
  "sort_type" : "0",
  "search_range" : "0",
  "search_id" : ""
}'

更新于 2026-11-10 19:04:28

在线调试

POSThttps://api.getoneapi.com/api/douyin/search_general_v2

使用你的 API Key 发起真实请求,成功调用按账户规则计费。勾选后可将密钥保存在此浏览器,下次自动填入,可随时清除。

请求头(JSON)

可设置 Authorization、Content-Type、Accept。

正在准备调试参数…