unique_idstring必填
User unique_id
https://api.sandbase.ai/v1/api/douyin/web/user-profile-v2Returns profile details and compilation information for a specified Douyin user account based on their unique identifier.
[
{
"data": {
"extra": {
"logid": "20260820174334E056EAFE5D0451849571",
"now": 1787219014189
},
"is_oversea": 0,
"status_code": 0,
"user_info": {
"account_cert_info": "{}",
"avatar_medium": {
"uri": "aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662"
]
},
"avatar_thumb": {
"uri": "aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662"
]
},
"aweme_count": 0,
"card_entries": [],
"custom_verify": "",
"enterprise_verify_reason": "",
"favoriting_count": 1,
"follow_status": 0,
"followers_detail": null,
"following_count": 40,
"geofencing": null,
"mix_info": null,
"mplatform_followers_count": 20,
"nickname": "wanggggchen",
"original_musician": {
"digg_count": 0,
"music_count": 0,
"music_used_count": 0
},
"platform_sync_info": null,
"policy_version": null,
"sec_uid": "MS4wLjABAAAA9VpPOwQ4lckVN3BVC3KzqITqf_2ohUtDxeFQQFgbLy2BwOsROlX_ba2EVd_NUAIy",
"short_id": "0",
"show_favorite_list": true,
"signature": "芜湖!",
"total_favorited": "0",
"type_label": null,
"unique_id": "example",
"verification_type": 0
}
}
}
]選擇一個範例,將其輸入與結果載入 playground。
Returns the public profile of a Douyin account, including nickname, sec_uid, follower-style counts and avatar URLs. It needs one input, the account unique_id (the Douyin ID handle).
sec_uid for a Douyin handle so you can call other user endpoints.unique_id.total_favorited and following_count across several accounts.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-profile-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"unique_id": "TheChief"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
unique_id | string | Yes | User unique_id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extra": {
"logid": "20261103153238A5DEF746CA9D67CB166D",
"now": 1793691159083
},
"is_oversea": 0,
"status_code": 0,
"user_info": {
"account_cert_info": "{}",
"avatar_medium": {
"uri": "aweme-avatar/tos-cn-avt-0015_b864d4d80c09ad5b48591f6e8ebe4732",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_b864d4d80c09…"
]
},
"avatar_thumb": {
"uri": "aweme-avatar/tos-cn-avt-0015_b864d4d80c09ad5b48591f6e8ebe4732",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_b864d4d80c09…"
]
},
"aweme_count": 6,
"card_entries": [],
"custom_verify": "",
"enterprise_verify_reason": "",
"favoriting_count": 57000,
"follow_status": 0,
"followers_detail": null,
"following_count": 400,
"geofencing": null
}
}
| Field | Meaning |
|---|---|
user_info.nickname | Display name of the account. |
user_info.unique_id | The Douyin ID handle you searched for. |
user_info.sec_uid | Encrypted user ID that starts with MS4w. Other Douyin user APIs use it to identify the account. |
user_info.signature | Profile bio text. In this response the value is Base64 text with a B64: prefix, so decode it to read the bio. |
user_info.aweme_count | Number of videos posted by the account. |
user_info.total_favorited | Total likes the account has received. It comes back as a string. |
user_info.following_count / user_info.favoriting_count | Number of accounts this user follows and number of videos this user has liked. |
user_info.mplatform_followers_count | Follower count reported under this key name. |
user_info.avatar_medium.url_list[] / user_info.avatar_thumb.url_list[] | Image URLs for the medium and thumbnail avatar. Each list has several mirror URLs for the same image. |
status_code | 0 when the request succeeded. |
unique_id, for example TheChief.user_info.sec_uid from this response as input to Douyin User Video Posts.sec_user_id.user_info.mix_info is null in this response, so the account has no compilation data here.$0.001 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/web/user-profile-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"unique_id": "example"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
unique_idstring必填User unique_id
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
[
{
"data": {
"extra": {
"logid": "20260820174334E056EAFE5D0451849571",
"now": 1787219014189
},
"is_oversea": 0,
"status_code": 0,
"user_info": {
"account_cert_info": "{}",
"avatar_medium": {
"uri": "aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662"
]
},
"avatar_thumb": {
"uri": "aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2",
"url_list": [
"https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p26.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662",
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_58421a13a73dd36d11611cbc679069e2.jpeg?from=2956013662"
]
},
"aweme_count": 0,
"card_entries": [],
"custom_verify": "",
"enterprise_verify_reason": "",
"favoriting_count": 1,
"follow_status": 0,
"followers_detail": null,
"following_count": 40,
"geofencing": null,
"mix_info": null,
"mplatform_followers_count": 20,
"nickname": "wanggggchen",
"original_musician": {
"digg_count": 0,
"music_count": 0,
"music_used_count": 0
},
"platform_sync_info": null,
"policy_version": null,
"sec_uid": "MS4wLjABAAAA9VpPOwQ4lckVN3BVC3KzqITqf_2ohUtDxeFQQFgbLy2BwOsROlX_ba2EVd_NUAIy",
"short_id": "0",
"show_favorite_list": true,
"signature": "芜湖!",
"total_favorited": "0",
"type_label": null,
"unique_id": "example",
"verification_type": 0
}
}
}
]探索更多
| API | 價格 | 回應 |
|---|---|---|
Douyin | 每次呼叫 $0.001 | JSON |
Douyin | 每次呼叫 $0.001 | JSON |
Douyin | 每次呼叫 $0.001 | JSON |
Douyin | 每次呼叫 $0.001 | JSON |
Douyin | 每次呼叫 $0.001 | JSON |
Douyin | 每次呼叫 $0.03 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/douyin/web/user-profile-v2。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。
必要:unique_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Douyin User Profile by Unique ID 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Douyin API 存取權。