secUidstring必填
The unique user ID (sec_uid) on Douyin.
https://api.sandbase.ai/v1/api/douyin/user-detailGet a Douyin (TikTok China) user profile by secUid. Use it to review a known creator or account before monitoring related content or conducting account research.
您的输出将显示在这里
完成输入,然后点击运行。
This API returns the public profile of a Douyin (TikTok China) user. It needs one input, the user's secUid. The response includes the account's avatar images, cover images, video count and shop window entry.
secUid still returns a valid user.curl -X POST "https://api.sandbase.ai/v1/api/douyin/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"secUid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
secUid | string | Yes | The unique user ID (sec_uid) on Douyin. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"fatal_item_ids": null,
"logid": "2026110315322248F17F939EC10D294C67",
"now": 1793691142000,
"search_request_id": null
},
"log_pb": {
"impr_id": "2026110315322248F17F939EC10D294C67"
},
"status_code": 0,
"status_msg": null,
"user": {
"account_cert_info": "{}",
"apple_account": 0,
"avatar_168x168": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"avatar_300x300": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"avatar_is_digged": false,
"avatar_larger": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_1fcfb510b…"
],
"width": 720
},
"avatar_medium": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"avatar_thumb": {
"height": 720,
"uri": "aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8aca2a0bd",
"url_list": [
"https://p11.douyinpic.com/aweme-avatar/tos-cn-avt-0015_1fcfb510bbde4beed96d16e8a…"
],
"width": 720
},
"aweme_count": 2655,
"aweme_count_correction_threshold": -1,
"birthday": "",
"birthday_hide_level": 0
}
}
| Field | Meaning |
|---|---|
status_code | Result code of the request. The sample response returns 0. |
user.aweme_count | Number of videos on the account. The sample shows 2655. |
user.avatar_larger.url_list[] / user.avatar_medium.url_list[] / user.avatar_thumb.url_list[] | Avatar image URLs in different sizes. Each list holds several URLs for the same image. |
user.cover_url[].url_list[] | Profile cover image URLs. These links carry x-expires and x-signature parameters in the query string. |
user.cover_and_head_image_info.profile_cover_list[].cover_url.url_list[] | Profile cover image URLs with dark and light cover colors in dark_cover_color and light_cover_color. |
user.card_entries[].title / user.card_entries[].sub_title | Label of a card on the profile. The sample shows a shop window card (商品橱窗) with the subtitle 57件好物. |
user.card_entries[].goto_url | App deep link for the card. It contains the numeric uid and the sec_uid of the account. |
user.commerce_user_info.has_ads_entry | Shows whether the account has an ads entry. The sample returns true. |
user.follow_status / user.favorite_permission | Flags for the relationship to the viewer and for the favorites setting. The sample returns 0 and 1. |
secUid as the only required parameter. It is a string that starts with MS4w.x-expires value, so store the image itself if you need it later.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/user-detail" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"secUid": "MS4wLjABAAAAanuWoPEMHem_eaWR8RQFyLQ8_QiouZlPlb7KAe9GS24"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
secUidstring必填The unique user ID (sec_uid) on Douyin.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Douyin User Profile此 API Douyin | $0.014286 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/douyin/user-detail 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.014286,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:secUid (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin User Profile 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。