Douyin-App/抖音APP
获取用户信息
POST
https://api.getoneapi.com/api/douyin-app/fetch_user_data请求参数
Header 参数
Authorization
string
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 apikey
默认值:
Bearer YOUR_API_KEY
Content-Type
string
必需
默认值:
application/json
Body 参数
application/jsonsec_user_id
string
必需
用户sec_user_id(与share_text必填一项),优先使用sec_user_id
示例值:
MS4wLjABAAAAhYCwfJpCgIy9aao47My7ZwQT_pP_LzJlnb-800tywOg
share_text
string
必需
用户分享链接(与sec_user_id必填一项)
示例值:
https://v.douyin.com/lSGLaXP-090/
示例
{
"sec_user_id" : "MS4wLjABAAAAhYCwfJpCgIy9aao47My7ZwQT_pP_LzJlnb-800tywOg",
"share_text" : ""
}返回响应
响应 200
application/jsoncode
integer
必需
message
string
必需
data
object
必需
请求示例代码
替换 YOUR_API_KEY、参数占位符与请求数据后使用。第三方客户端需先安装对应依赖。
curl --globoff --request POST 'https://api.getoneapi.com/api/douyin-app/fetch_user_data' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"sec_user_id" : "MS4wLjABAAAAhYCwfJpCgIy9aao47My7ZwQT_pP_LzJlnb-800tywOg",
"share_text" : ""
}'