Douyin/抖音
搜索视频
POST
https://api.getoneapi.com/api/douyin/search_video请求参数
Header 参数
Authorization
string
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey
默认值:
Bearer YOUR_API_KEY
Content-Type
string
必需
默认值:
application/json
Body 参数
application/jsonkeyword
string
关键词
必需
count
number
必需
返回的数量,建议10
默认值:
最小值:12
最大值:18
10
offset
string
翻页参数
可选
返回内容的cursor值
默认值:
0
publish_time
enum<string>
发布时间
必需
枚举值:
0
不限
1
一天内
7
七天内
180
半年内
filter_duration
enum<string>
视频时长
可选
枚举值:
0
不限
0-1
一分钟内
1-5
1-5分钟
5-10000
5分钟以上
sort_type
enum<string>
排序
可选
枚举值:
0
综合排序
1
最多点赞
2
最新发布
search_id
string
搜索ID,用于翻页
可选
返回的log_id值,第一页传空串,翻页时传上一页返回log_id值
示例
{
"keyword" : "罗永浩",
"count" : 10,
"offset" : "0",
"publish_time" : "0",
"filter_duration" : "",
"sort_type" : "0",
"search_id" : ""
}返回响应
响应 200
application/jsoncode
integer
必需
message
string
必需
data
object
必需
示例
{
"code" : 200,
"message" : "success",
"data" : { }
}请求示例代码
替换 YOUR_API_KEY、参数占位符与请求数据后使用。第三方客户端需先安装对应依赖。
curl --globoff --request POST 'https://api.getoneapi.com/api/douyin/search_video' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"keyword" : "罗永浩",
"count" : 10,
"offset" : "0",
"publish_time" : "0",
"filter_duration" : "",
"sort_type" : "0",
"search_id" : ""
}'