sec_uidstringआवश्यक
User sec_uid, also called sec_user_id, can be found in the user's homepage link.
https://api.sandbase.ai/v1/api/douyin/web/user-live-videos-by-sec-uidReturns broadcast video data for a specified Douyin user using their security identifier. Provide the account identifier to inspect streaming content and badge details.
[
{
"data": {
"data": {
"message": "forbidden",
"prompts": "暂不支持查看个人信息"
},
"extra": {
"now": 1787218998765
},
"status_code": 10033
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns a Douyin user's live-streaming profile record for a given sec_uid. The response holds the account's display ID, avatar images, live privacy flags, and honor level badges. It needs only the sec_uid from the user's homepage link.
badge_image_list and its level value.sec_uid you already have.display_id of an account to match a sec_uid to its visible Douyin ID.allow_use_linkmic, for a streamer account.curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-live-videos-by-sec-uid" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sec_uid": "MS4wLjABAAAAr52fXcfmzqOZJM_smap9Uuxtm16h8BupkCVaCt89BENq3E91mHCvtz5Z5TkXPHq_"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
sec_uid | string | Yes | User sec_uid, also called sec_user_id, can be found in the user's homepage link. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"adversary_authorization_info": 3,
"adversary_user_status": 1,
"age_range": 0,
"allow_be_located": false,
"allow_find_by_contacts": false,
"allow_others_download_video": false,
"allow_others_download_when_sharing_video": false,
"allow_share_show_profile": false,
"allow_show_in_gossip": false,
"allow_show_my_action": false,
"allow_strange_comment": false,
"allow_unfollower_comment": false
},
"extra": {
"now": 1793691153681
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data.display_id | The public display ID of the account, for example Wuf666. |
data.badge_image_list[].content.level | The honor level shown on the badge. The example value is 21. |
data.badge_image_list[].content.alternative_text | Text description of the badge. The example reads as an honor level 21 badge. |
data.badge_image_list[].url_list | Image URLs for the badge. Each item in the list points to the same badge image on a different host. |
data.badge_image_list_v2 | A second badge list with the same structure as badge_image_list. |
data.avatar_large.url_list / data.avatar_medium.url_list / data.avatar_thumb.url_list | Avatar image URLs. The uri values show sizes of 1080x1080, 720x720 and 100x100. |
data.allow_use_linkmic / data.allow_be_located / data.allow_find_by_contacts | Boolean privacy and live settings of the account. All are false in the example. |
data.fans_club.data | Fans club details for the account, including club_name and level. The example values are empty or 0. |
data.bottom_entry.schema | An in-app link for the honor level page in the live room toolbar. |
status_code | Status of the call. 0 in the example response. |
sec_uid in the user's homepage link. To pull it out of a link, use Douyin sec_user_id from URL.0 in the example, such as city, birthday and create_time. Treat these as not set.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-live-videos-by-sec-uid" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sec_uid": "example"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
sec_uidstringआवश्यकUser sec_uid, also called sec_user_id, can be found in the user's homepage link.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"data": {
"message": "forbidden",
"prompts": "暂不支持查看个人信息"
},
"extra": {
"now": 1787218998765
},
"status_code": 10033
}
}
]और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/douyin/web/user-live-videos-by-sec-uid पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.001 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
आवश्यक: sec_uid (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin User Broadcast Videos SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।