sec_user_idsstringbắt buộc
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": []
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
sec_user_idsstringbắt buộcUser sec_user_id list, separated by commas, up to 10
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": []
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin Batch User ProfileAPI này Douyin | $0.03 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.15 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v1 với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.03 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: sec_user_ids (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Batch User Profile chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.