Douyin/抖音
获取直播间信息
POST已弃用
https://api.getoneapi.com/api/douyin/fetch_live_room_data请求参数
Header 参数
Authorization
string
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey
默认值:
Bearer YOUR_API_KEY
Content-Type
string
必需
默认值:
application/json
Body 参数
application/jsonshare_text
string
web端链接
必需
与web_rid必填一项
示例值:
https://live.douyin.com/870887192950
web_rid
string
web端web_rid
必需
与share_text必填一项
例:直播间网址https://live.douyin.com/870887192950 中的870887192950 为 web_rid
默认值:
0
示例
{
"web_rid" : "",
"share_text" : ""
}返回响应
响应 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/fetch_live_room_data' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"web_rid" : "",
"share_text" : ""
}'