sec_user_idsstringआवश्यक
User sec_user_id list, separated by commas, up to 50
https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v2Retrieves user profile details in batches for up to 50 Douyin accounts at once. Pass comma-separated secure user identifiers to return account data.
[
{
"data": []
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns a list of Douyin account profiles, one object per account. The input is sec_user_ids, a comma-separated string of up to 50 sec_user_id values.
signature.sec_uid values to the numeric uid and short_id of each account.store_region to see where each one is registered.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v2" \
-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 50 |
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 |
|---|---|
[].sec_uid | The secure user ID of the account. It matches the value you sent in sec_user_ids, so you can join results back to your input. |
[].uid / [].short_id | The numeric user ID and the short ID of the account, both returned as strings. |
[].unique_id | The public Douyin handle of the account. When the owner has not set a custom one, it equals short_id. |
[].nickname | The display name of the account. |
[].signature | The bio text of the account. It can be an empty string and can contain line breaks. |
[].avatar_thumb.url_list / [].avatar_small.url_list | Image URLs for the 100x100 and 168x168 avatars. Each list holds several mirror URLs for the same image. |
[].store_region | A region code for the account, such as cn-hn or cn-zj. |
[].verification_type / [].custom_verify / [].enterprise_verify_reason | Verification data for the account. In this sample the type is 0 and both text fields are empty. |
[].follow_status / [].follower_status / [].is_block | The relation between the calling session and the account. In this sample all are 0 or false. |
[].with_commerce_entry / [].commerce_user_level | Commerce flags for the account. In this sample the entry is false and the level is 0. |
sec_user_ids. A sec_user_id starts with MS4wLjAB.sec_user_id from a homepage link, call Douyin sec_user_ids from URLs (Batch). To convert a numeric uid, call Douyin UID to Sec User ID.bless_end_time, im_bubble_id and im_bubble_exp are present for one account and missing for the other.$0.15 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_user_ids": "example"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
sec_user_idsstringआवश्यकUser sec_user_id list, separated by commas, up to 50
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": []
}
]और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douyin | $0.15 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.001 प्रति कॉल | JSON |
Douyin | $0.03 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/web/batch-user-profile-v2 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.15 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: sec_user_ids (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Batch User Profile (V2) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।