Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Douyin User Webcast Video Records

Документация API
https://api.sandbase.ai/v1/api/douyin/web/user-live-videos

Retrieves user broadcast video data from Douyin Web using a specific room identifier. Input the webcast ID to look up associated room records.

Цена
$0.001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных

Песочница

Ввод
Room webcast_id
ВыходПример
Ответoutputs · 26.0 KB · 696 строк
[
  {
    "data": {
      "data": {
        "auth_cert_info": "{\"CertDataMap\":{\"3988645375122519\":{\"CertLabelList\":[],\"DataMap\":{}}},\"BaseResp\":{\"StatusMessage\":\"\",\"StatusCode\":0}}",
        "data": [
          {
            "AnchorABMap": {
              "ab_admin_comment_on_wall": "0",
              "ab_friend_chat": "4",
              "admin_optimize_third": "1",
              "admin_pin_ab_group": "1",
              "admin_privilege_refine": "2",
              "admin_screen_chat_value": "1",
              "ai_container": "1",
              "allow_join_guest_fansclub": "1",
              "allow_shared_to_fans": "false",
              "anchor_battle_enable_remote_pk": "1",
              "anchor_battle_frame_notice_bar_layout": "1",
              "anchor_other_device": "1",
              "anchor_public_user_feature_suffix": "1",
              "anchor_public_user_feature_suffix_v2": "1",
              "anchor_public_user_feature_suffix_v3": "1",
              "audience_linkmic_continue": "2",
              "audio_1v8_stage_enlarge": "1",
              "audio_double_enlarge_enable": "1",
              "audio_goal_challenge": "1",
              "audio_honor_rank": "1",
              "audio_radio_v2": "1",
              "audio_room_subtitle_opt": "3",
              "audio_subtitle_default_open": "2",
              "battle_match_rebuild_anchor": "2",
              "big_party_enable_open_camera": "2",
              "chat_intercommunicate_multi_anchor": "2",
              "chat_intercommunicate_pk": "2",
              "cold_start": "1",
              "cross_default_enlarge": "1",
              "cross_link_support_enlarge_guest": "1",
              "cross_room_battle_pop_mode": "1",
              "double_enlarge_enable": "1",
              "ecom_room_disable_gift": "0",
              "enable_enter_by_sharing": "2",
              "enable_link_guest_enter": "2",
              "enable_linkmic_manage_panel": "true",
              "enable_multi_pk_change_sofa_position": "1",
              "enter_message_tip_relation": "0",
              "enter_source_mark": "0",
              "faction_clash": "1",
              "…": "139 more fields in the full response"
            },
            "admin_user_ids": [
              4100493553706215,
              1235498264700253,
              "… 3 more items in the full response"
            ],
            "admin_user_ids_str": [
              "4100493553706215",
              "1235498264700253",
              "… 3 more items in the full response"
            ],
            "admin_user_open_ids": [],
            "admin_user_open_ids_str": [],
            "basis": {
              "foreign_user_room": 0,
              "is_customize_audio_room": false,
              "need_request_luckybox": 0,
              "next_ping": 300,
              "secret_room": 0
            },
            "cover": {
              "url_list": [
                "https://p3-webcast-sign.douyinpic.com/image-cut-tos-priv/17d9d94b5e72c72d6a27dd77d07cb411~tplv-qz53dukwul-common-resize:0:0.image?biz_tag=app_6383_webcast&from=webcast.room.pack&l=202608140131181A454B74D538629B2BB4&lk3s=39e7556e&s=enter_room&sc=webcast_cover&x-expires=1789234278&x-signature=Tv66iq8%…",
                "https://p11-webcast-sign.douyinpic.com/image-cut-tos-priv/17d9d94b5e72c72d6a27dd77d07cb411~tplv-qz53dukwul-common-resize:0:0.image?biz_tag=app_6383_webcast&from=webcast.room.pack&l=202608140131181A454B74D538629B2BB4&lk3s=39e7556e&s=enter_room&sc=webcast_cover&x-expires=1789234278&x-signature=nleYGtv…"
              ]
            },
            "ecom_data": {
              "instant_type": 0,
              "intro_type": 0,
              "reds_show_infos": [],
              "route_rule": "",
              "shop_author_header": ""
            },
            "fansclub_msg_style": 2,
            "follow_msg_style": 2,
            "game_data": {
              "game_tag_info": {
                "game_tag_id": 0,
                "game_tag_name": "",
                "is_game": 2
              }
            },
            "gift_msg_style": 2,
            "has_commerce_goods": false,
            "id_str": "7673558501814848306",
            "like_count": 53,
            "linker_detail": {
              "accept_audience_pre_apply": true,
              "big_party_layout_config_version": 0,
              "client_ui_info": "",
              "enable_audience_linkmic": 0,
              "enlarge_guest_turn_on_source": 0,
              "feature_list": [],
              "forbid_apply_from_other": false,
              "function_type": "",
              "init_source": "",
              "ktv_exhibit_mode": 0,
              "ktv_lyric_mode": "",
              "linker_map_str": {},
              "linker_play_modes": [],
              "linker_ui_layout": 0,
              "manual_open_ui": 0,
              "playmode_detail": {}
            },
            "linker_map": {},
            "live_room_mode": 0,
            "mosaic_status": 0,
            "mosaic_status_str": "0",
            "others": {
              "anchor_together_live": {
                "is_show": true,
                "is_together_live": 0,
                "scene": 1,
                "schema_url": "",
                "title": "",
                "user_list": []
              },
              "appointment_info": {
                "appointment_id": 0,
                "is_subscribe": false
              },
              "cloud_collaborate_data": {
                "collaborate_room_id": 0,
                "collaborate_room_id_str": "",
                "rejoin_time": 0
              },
              "deco_detail": {},
              "labels": {},
              "lvideo_item_id": 0,
              "metric_tracker_data_list": [],
              "more_panel_info": {
                "load_strategy": 3
              },
              "mosaic_version": 0,
              "panel_guidance": "",
              "participant_activity": "",
              "programme": {
                "enable_programme": false
              },
              "recognition_containers": {
                "recognition_candidates": []
              },
              "redirect_from": 0,
              "room_chat_guide_locale_city": "美国",
              "web_live_port_optimization": {
                "strategy_config": {
                  "background": "…",
                  "detail": "…",
                  "tab": "…"
                },
                "strategy_extra": ""
              },
              "web_skin": {
                "enable_skin": false
              }
            },
            "owner": {
              "avatar_thumb": {
                "url_list": [
                  "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_b0e91c5733379646cc3e7b5de745ac3d.jpeg?from=3067671334",
                  "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_b0e91c5733379646cc3e7b5de745ac3d.jpeg?from=3067671334",
                  "… 1 more items in the full response"
                ]
              },
              "follow_info": {
                "follow_status": 0,
                "follow_status_str": "0"
              },
              "foreign_user": 0,
              "id_str": "3988645375122519",
              "nickname": "周周大王👑(努力版)",
              "open_id_str": "",
              "sec_uid": "MS4wLjABAAAA1cXydqTuD4yjW6X0KXNirzUIzu-GXkkzSAczHlg-JAqk_aZoNa3TJEhq8cfLa_eh",
              "subscribe": {
                "buy_type": 0,
                "identity_type": 0,
                "is_member": false,
                "level": 0,
                "open": 0
              }
            },
            "owner_open_id_str": "",
            "owner_user_id_str": "",
            "paid_live_data": {
              "anchor_right": 0,
              "delivery": 0,
              "duration": 0,
              "max_preview_duration": 0,
              "need_delivery_notice": false,
              "paid_type": 0,
              "pay_ab_type": 0,
              "privilege_info": {},
              "privilege_info_map": {},
              "view_right": 0
            },
            "pico_info": {
              "client_live_type": 0,
              "custom_info": "",
              "pico_create_scene": "",
              "pico_live_mode": 0,
              "pico_live_type": 0,
              "pico_virtual_live_bg_image_digest": "",
              "pico_virtual_live_bg_image_uri": "",
              "pico_vr_transfer": 0,
              "pitch": 0,
              "stream_mapping": {},
              "virtual_live_bg_images": {
                "converted_images": [],
                "converted_list": [],
                "is_upright": false,
                "original_digest": ""
              }
            },
            "preview_expose": {
              "alive_checker": 0,
              "chat_group_extend_data": [],
              "chat_msgs": [],
              "et_data": [],
              "feed_enter_extra": "",
              "feed_extra": "",
              "force_insertion": [],
              "is_aweme_video_feed": false,
              "is_preview_use_websocket": 0,
              "message_scroll_after_ms": 0,
              "message_scroll_interval_ms": 0,
              "metas": [],
              "need_realtime": false,
              "preview_enter_extra": "",
              "preview_exit_guide_list": [],
              "preview_intro": "",
              "scroll_after_ms": 0,
              "show_name_abbreviation": 0,
              "show_preview_cards": false,
              "show_similar_feed_button": false,
              "show_uv_pv": 0,
              "style": 0
            },
            "req_user": {
              "enter_user_device_type": 0,
              "user_share_room_score": 0
            },
            "room_auth": {
              "AdminCommentWall": 0,
              "AnchorMission": 0,
              "AudioChat": 1,
              "Banner": 1,
              "BulletStyle": 0,
              "CanSellTicket": 0,
              "CastScreen": 1,
              "CastScreenExplicit": 2,
              "Chat": true,
              "Collect": 2,
              "CommentWall": 1,
              "CommerceCard": 1,
              "CommerceComponent": 1,
              "Danmaku": true,
              "DanmakuDefault": 0,
              "Denounce": 0,
              "Digg": true,
              "Dislike": 0,
              "DonationSticker": 0,
              "DouPlus": 1,
              "DouPlusPopularityGem": 0,
              "DownloadVideo": 0,
              "EmojiOutside": 0,
              "EnterEffects": 0,
              "ExpandScreen": 2,
              "FansClub": 1,
              "FansGroup": 2,
              "FirstFeedHistChat": 1,
              "FixedChat": 2,
              "GamePointsPlaying": 2,
              "Gift": true,
              "GiftAnchorMt": 0,
              "Highlights": 2,
              "HourRank": 0,
              "IndustryService": 0,
              "KtvOrderSong": 2,
              "Landscape": 1,
              "LandscapeChat": 1,
              "Like": 0,
              "LongTouch": 2,
              "…": "32 more fields in the full response"
            },
            "room_cart": {
              "cart_icon": "",
              "contain_cart": false,
              "flash_total": 0,
              "show_cart": 0,
              "total": 0
            },

Примеры

Выберите пример, чтобы загрузить его входные данные и результат в playground.

README по API

Douyin User Webcast Video Records API

This API returns the live room record for a Douyin room, looked up by webcast_id. The response includes the room ID, title, status, and basic details of the host account.

Use cases

  • Look up the current room ID and title for a Douyin live room when you only have its webcast_id.
  • Check whether a room is live or ended by reading the room status fields.
  • Get the host's sec_uid and nickname so you can call a user profile API for that account.
  • Collect host avatar URLs for a dashboard that tracks Douyin live rooms.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/user-live-videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"webcast_id": "376034101029"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
webcast_idstringYesRoom webcast_id

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "auth_cert_info": "",
    "data": [
      {
        "AnchorABMap": {},
        "admin_user_ids": [],
        "admin_user_ids_str": [],
        "admin_user_open_ids": [],
        "admin_user_open_ids_str": [],
        "fansclub_msg_style": 0,
        "follow_msg_style": 0,
        "gift_msg_style": 0,
        "has_commerce_goods": false,
        "id_str": "7703585232380857123",
        "like_count": 0,
        "linker_map": {}
      }
    ],
    "enter_mode": 0,
    "enter_room_id": "7703585232380857123",
    "partition_road_map": {},
    "qrcode_url": "",
    "room_status": 2,
    "shark_decision_conf": "",
    "similar_rooms": [],
    "user": {
      "avatar_thumb": {
        "url_list": [
          "https://p11.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_3d5484c1ffb…"
        ]
      },
      "follow_info": {
        "follow_status": 0,
        "follow_status_str": "0"
      },
      "foreign_user": 0,
      "id_str": "1722258143337120",
      "nickname": "邓雨馨",
      "open_id_str": "",
      "sec_uid": "MS4wLjABAAAAfa6fIQF7wchh5UAYU6WgfR00rGeUCzBk5YBKsz-r4Ocza5JivsqLC0qild84a_pE"
    }
  },
  "extra": {
    "now": 1793691154095
  },
  "status_code": 0
}

Response fields

FieldMeaning
data.enter_room_idID of the room that matches the webcast_id. Use it as the room ID in other live room calls.
data.room_statusNumeric status of the room as a whole. The response gives no label for the values.
data.data[].id_strRoom ID as a string. In this response it equals data.enter_room_id.
data.data[].titleTitle of the live room, as set by the host.
data.data[].status / data.data[].status_strNumeric status of the room entry and the same value as a string.
data.data[].user_count_strViewer count for the room, given as a string.
data.data[].like_countLike count for the room.
data.data[].has_commerce_goodsShows true if the room has commerce goods attached, false if not.
data.user.nicknameDisplay name of the host.
data.user.sec_uidEncrypted user ID of the host. Use it with APIs that take a sec_user_id.
data.user.id_strNumeric ID of the host, as a string.
data.user.avatar_thumb.url_list[]Image URLs for the host's small avatar (100x100).

Notes

  • Send the room's webcast_id as a string. Use Douyin Webcast ID Extraction to pull it from live room links.
  • Use data.user.sec_uid with Douyin User Profile (Web) to load the host's profile.
  • extra.now holds a numeric timestamp for the response, and status_code is 0 on success.
  • Many fields in the sample, such as admin_user_ids and similar_rooms, are empty or zero.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Посмотреть больше

Связанные APIs

Все APIs
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

Руководства:Best Douyin API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API Douyin User Webcast Video Records?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/douyin/web/user-live-videos, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Douyin User Webcast Video Records?

$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Douyin User Webcast Video Records?

Обязательные: webcast_id (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Douyin User Webcast Video Records?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Douyin или API key?

Нет. Douyin User Webcast Video Records работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.