Tiktok
搜索视频V2
POST
https://api.getoneapi.com/api/tiktok/search_video_v2请求参数
Header 参数
Authorization
string
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey
默认值:
Bearer YOUR_API_KEY
Content-Type
string
必需
默认值:
application/json
Body 参数
application/jsonkeyword
string
关键词
必需
offset
integer
偏移量
必需
默认值:
0
count
integer
数量
必需
默认值:
20
sort_type
integer
必需
0-相关度,1-最多点赞
默认值:
0
publish_time
integer
必需
0-不限制,1-最近一天,7-最近一周,30-最近一个月,90-最近三个月,180-最近半年
默认值:
0
region
string
必需
地区,默认为US-美国,可选值请参考TikTok地区代码或ISO 3166-1 alpha-2国家代码。
默认值:
US
示例
{
"keyword" : "罗永浩",
"offset" : 0,
"count" : 20,
"sort_type" : 0,
"publish_time" : 0,
"region" : "US"
}返回响应
响应 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/tiktok/search_video_v2' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"keyword" : "罗永浩",
"offset" : 0,
"count" : 20,
"sort_type" : 0,
"publish_time" : 0,
"region" : "US"
}'