room_idstringआवश्यक
Room room_id
https://api.sandbase.ai/v1/api/douyin/web/user-live-videos-by-room-id-v2Returns stream data for a specified Douyin user using a room identifier. Provide a valid room ID to inspect stream metadata and broadcast details.
[
{
"data": {
"data": {
"message": "Request params error",
"prompts": "当前服务繁忙,请稍后重试"
},
"extra": {
"now": 1787219017260
},
"status_code": 10011
}
}
]प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।
Returns the live room record for one Douyin room, looked up by room_id. The response holds cover image data, e-commerce flags, room settings and a map of anchor feature flags.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-live-videos-by-room-id-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"room_id": "7462723839303093032"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
room_id | string | Yes | Room room_id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"AnchorABMap": {
"ab_admin_comment_on_wall": "0",
"ab_friend_chat": "4",
"admin_privilege_refine": "2",
"allow_shared_to_fans": "false",
"audience_linkmic_continue": "0",
"audio_double_enlarge_enable": "1",
"audio_room_subtitle_opt": "3",
"battle_match_rebuild_anchor": "2",
"big_party_enable_open_camera": "2",
"chat_intercommunicate_multi_anchor": "2",
"chat_intercommunicate_pk": "2",
"double_enlarge_enable": "1"
},
"acquaintance_status": 0,
"admin_user_ids": [],
"admin_user_open_ids": [],
"anchor_scheduled_time_text": "",
"anchor_share_text": "",
"anchor_tab_type": 0,
"app_id": 0,
"assist_label_list": [],
"auth_city": "",
"auto_cover": 0,
"base_category": 0
},
"extra": {
"now": 1793691152950
},
"status_code": 0
}
| Field | Meaning |
|---|---|
data.cover.url_list[] | Cover image URLs for the room. Each entry is a signed link to the same image on a different host. |
data.cover.uri / data.cover.avg_color | uri is the cover image identifier. avg_color is the average color of the image as a hex code. |
data.cover.width / data.cover.height | Cover image size values. Both are 0 in the sample response. |
data.ecom_data.room_cart_v2.show_cart | Numeric flag for the room shopping cart display. The sample value is 2. |
data.extra.is_virtual_anchor | Boolean that shows whether the anchor is a virtual anchor. |
data.extra.geo_block | Numeric geo block flag for the room. The sample value is 0. |
data.AnchorABMap | Map of feature flag names to string values for the anchor. Use it to see which room features are set. |
data.admin_user_ids[] | List of room admin user IDs. It is empty in the sample response. |
data.business_live / data.category / data.create_time | Numeric room attributes. All are 0 in the sample response, so they carry no detail for this room. |
extra.now | Timestamp of the response in milliseconds, as shown by the 13-digit value. |
room_id as a string, for example 7462723839303093032.room_id from a live room link, call Douyin Webcast ID Extraction to get the webcast ID, then Douyin Webcast ID to Room ID.status_code of 0 appears in the sample response alongside the data object.$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-room-id-v2" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"room_id": "example"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
room_idstringआवश्यकRoom room_id
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
[
{
"data": {
"data": {
"message": "Request params error",
"prompts": "当前服务繁忙,请稍后重试"
},
"extra": {
"now": 1787219017260
},
"status_code": 10011
}
}
]और जानें
| 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-room-id-v2 पर 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 नहीं है।
आवश्यक: room_id (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douyin Stream Data by Room ID (V2) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douyin API access के लिए आवेदन करने की आवश्यकता नहीं है।