sec_user_idsstring必填
User sec_user_id list, separated by commas, up to 10
https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v1Retrieves public profile information for multiple Douyin accounts in a single request. Specify up to 10 user IDs to return user details in batch.
[
{
"data": []
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns public profile details for up to 10 Douyin accounts in one call. The input is a comma-separated string of sec_user_ids. The response is a list with one object per account.
nickname, signature or unique_id.uid, short_id and sec_uid.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_user_ids": "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE,MS4wLjABAAAAW9FWcqS7RdQAWPd2AA5fL_ilmqsIFUCQ_Iym6Yh9_cUa6ZRqVLjVQSUjlHrfXY1Y"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_user_ids | string | Yes | User sec_user_id list, separated by commas, up to 10 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
{
"account_cert_info": "{}",
"avatar_signature": "",
"avatar_small": {
"uri": "168x168/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p11.douyinpic.com/img/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce…"
]
},
"avatar_thumb": {
"uri": "100x100/aweme-avatar/tos-cn-avt-0015_d8306450a4b1f0a9992ce420b7468b0b",
"url_list": [
"https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_d8306450a4b…"
]
},
"birthday_hide_level": 1,
"commerce_user_level": 0,
"custom_verify": "",
"enterprise_verify_reason": "",
"follow_status": 0,
"follower_status": 0,
"has_e_account_role": false,
"im_activeness": 1
}
]
| Field | Meaning |
|---|---|
nickname | Display name of the account. |
signature | Bio text written by the user. It can be an empty string. |
sec_uid | Encrypted user ID. It matches the value you sent in sec_user_ids. |
uid / short_id / unique_id | Other identifiers for the account. uid is the numeric user ID. unique_id is the public Douyin ID, and it can equal short_id when the user has not set a custom one. |
avatar_thumb.url_list[] / avatar_small.url_list[] | Avatar image URLs at 100x100 and 168x168 sizes. Each list holds several mirror URLs for the same image. |
store_region | Region code stored for the account, such as cn-hn or cn-zj. |
verification_type / custom_verify / enterprise_verify_reason | Verification state and any verification text. In this response they are 0 and empty strings. |
commerce_user_level / with_commerce_entry | Commerce level of the account and whether it shows a commerce entry. |
follow_status / follower_status / is_block | Relationship flags between the account and the calling session. They are 0 or false in this response. |
sec_user_ids as one string with IDs separated by commas. The limit is 10 IDs per request.uid, convert it with Douyin UID to Sec User ID.$0.03 per successful call. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v1" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_user_ids": "example"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
sec_user_idsstring必填User sec_user_id list, separated by commas, up to 10
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": []
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Douyin | $0.03 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
Douyin | $0.15 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v1 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.03,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:sec_user_ids (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin Batch User Profile 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。