当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

直播间信息

按直播间短号返回开播状态、标题与主播信息。

GET
/api/douyin/fetch_user_live_videos

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

web_rid*string

直播间短号(链接里那段)

Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/api/douyin/fetch_user_live_videos?web_rid=string"
{  "success": true,  "data": {    "data": {      "auth_cert_info": "string",      "data": [        {          "AnchorABMap": {},          "admin_user_ids": [            null          ],          "admin_user_ids_str": [            null          ],          "admin_user_open_ids": [            null          ],          "admin_user_open_ids_str": [            null          ],          "fansclub_msg_style": 0,          "follow_msg_style": 0,          "gift_msg_style": 0,          "has_commerce_goods": true,          "id_str": "string",          "like_count": 0,          "linker_map": {},          "live_room_mode": 0,          "mosaic_status": 0,          "mosaic_status_str": "string",          "owner_open_id_str": "string",          "owner_user_id_str": "string",          "share_msg_style": 0,          "status": 0,          "status_str": "string",          "title": "string",          "user_count_str": "string"        }      ],      "enter_mode": 0,      "enter_room_id": "string",      "partition_road_map": {        "partition": {          "id_str": "string",          "title": "string",          "type": 0        },        "sub_partition": {          "partition": {            "id_str": "string",            "title": "string",            "type": 0          }        }      },      "qrcode_url": "string",      "room_status": 0,      "shark_decision_conf": "string",      "similar_rooms": [        {          "cover_type": 0,          "is_recommend": 0,          "room": {            "AnchorABMap": {              "ab_admin_comment_on_wall": "string",              "ab_friend_chat": "string",              "admin_optimize_third": "string",              "admin_privilege_refine": "string",              "allow_shared_to_fans": "string",              "anchor_battle_enable_remote_pk": "string",              "anchor_battle_frame_bar_anime": "string",              "anchor_battle_frame_doublepk_bar": "string",              "anchor_battle_frame_notice_bar_layout": "string",              "audience_linkmic_continue": "string",              "audio_1v8_stage_enlarge": "string",              "audio_double_enlarge_enable": "string",              "audio_goal_challenge": "string",              "audio_honor_rank": "string",              "audio_radio_v2": "string",              "audio_room_subtitle_opt": "string",              "battle_match_rebuild_anchor": "string",              "big_party_enable_open_camera": "string",              "chat_intercommunicate_multi_anchor": "string",              "chat_intercommunicate_pk": "string",              "cross_default_enlarge": "string",              "cross_link_support_enlarge_guest": "string",              "cross_room_battle_pop_mode": "string",              "double_enlarge_enable": "string",              "ecom_room_disable_gift": "string",              "enable_enter_by_sharing": "string",              "enable_link_guest_enter": "string",              "enable_multi_pk_change_sofa_position": "string",              "enter_message_tip_relation": "string",              "enter_source_mark": "string",              "faction_clash": "string",              "frequently_chat_ab_value": "string",              "friend_room_audio_tuning": "string",              "friend_room_support_ns_mode": "string",              "friend_share_video_feature_type": "string",              "game_link_entrance": "string",              "gift_comment": "string",              "gift_comment_v2": "string",              "gift_hide_tip": "string",              "guest_battle_crown_upgrade": "string",              "guest_battle_expand": "string",              "guest_battle_score_expand": "string",              "guest_battle_upgrade": "string",              "interact_acting_ab": "string",              "interact_anchor_guide": "string",              "ktv_anchor_enable_add_all": "string",              "ktv_auto_mute_self": "string",              "ktv_challenge_minus_gift": "string",              "ktv_component_new_midi": "string",              "ktv_enable_avatar": "string",              "ktv_enable_open_camera": "string",              "ktv_fragment_song": "string",              "ktv_grab_guide_song": "string",              "ktv_guide_song_switch": "string",              "ktv_kick_when_linker_full": "string",              "ktv_mc_host_show_tag": "string",              "ktv_new_challenge": "string",              "ktv_room_atmosphere": "string",              "ktv_singing_hot_rank": "string",              "ktv_video_stream_optimize": "string",              "ktv_want_listen_enable": "string",              "linkmic_audience_anchor_hide": "string",              "linkmic_chorus": "string",              "linkmic_cross_room_battle_double_score": "string",              "linkmic_multi_chorus": "string",              "linkmic_order_sing_search_fingerprint": "string",              "linkmic_order_sing_upgrade": "string",              "linkmic_position_name_hide": "string",              "linkmic_starwish": "string",              "linkmic_team_battle_double_score": "string",              "linkmic_video_equal_layout_frame_opt": "string",              "live_anchor_enable_chorus": "string",              "live_anchor_enable_custom_position": "string",              "live_anchor_hit_new_audience_linkmic": "string",              "live_anchor_hit_position_opt": "string",              "live_anchor_hit_video_bid_paid": "string",              "live_anchor_hit_video_teamfight": "string",              "live_answer_on_wall": "string",              "live_audience_linkmic_pre_apply_v2": "string",              "live_audio_announce_menu_opt": "string",              "live_audio_enable_c_position": "string",              "live_backup_sei_enable": "string",              "live_dou_plus_enter": "string",              "live_flymic_interact_switch": "string",              "live_ktv_enable_beat": "string",              "live_ktv_group": "string",              "live_ktv_show_singer_icon": "string",              "live_ktv_singing_challenge": "string",              "live_linkmic_battle_optimize": "string",              "live_linkmic_ktv_anchor_lyric_mode": "string",              "live_linkmic_order_sing_micro_opt": "string",              "live_linkmic_order_sing_v3": "string",              "live_pc_helper_new_layout": "string",              "live_room_manage_style": "string",              "live_team_fight_flexible": "string",              "live_video_enable_c_position": "string",              "live_video_enable_self_discipline": "string",              "live_video_host_identity_enable": "string",              "live_video_share": "string",              "lonely_room_enter_msg_unfold": "string",              "mark_user": "string",              "merge_ktv_mode_enable": "string",              "merge_ktv_optimize_enable": "string",              "mic_avatar_tool": "string",              "multi_link_biz_access_backup_sei_config": "string",              "opt_audience_linkmic": "string",              "opt_paid_link_feature_switch": "string",              "optran_paid_linkmic": "string",              "order_sing_enable_gift_chorus": "string",              "order_sing_gold_mic_offline": "string",              "order_sing_mv": "string",              "play_mode_opt_24": "string",              "ps_use_new_panel": "string",              "radio_prepare_apply": "string",              "radio_subtitle": "string",              "room_battle_mode_switch": "string",              "room_battle_mode_switch_audio": "string",              "room_battle_video_audio_interconnection": "string",              "room_double_like": "string",              "room_secret_chat": "string",              "self_discipline_v2": "string",              "self_discipline_v3": "string",              "social_share_video_adjust_volume": "string",              "support_multiple_add_price": "string",              "themed_competition_v2": "string",              "traffic_strategy": "string",              "use_lynx_flymic_gift": "string",              "video_equal_1v8fix_switch": "string",              "video_ktv_challenge": "string",              "video_talk_enable_avatar": "string"            },            "admin_user_ids": [              null            ],            "admin_user_ids_str": [              null            ],            "admin_user_open_ids": [              null            ],            "admin_user_open_ids_str": [              null            ],            "cover": {              "url_list": [                "string"              ]            },            "ecom_data": {              "float_window_type": 0,              "instant_type": 0,              "intro_type": 0,              "reds_show_infos": [                null              ],              "room_cart_v2": {                "show_cart": 0              },              "route_rule": "string",              "shop_author_header": "string"            },            "fansclub_msg_style": 0,            "follow_msg_style": 0,            "game_data": {              "game_tag_info": {                "game_tag_id": 0,                "game_tag_name": "string",                "is_game": 0              }            },            "gift_msg_style": 0,            "has_commerce_goods": true,            "id_str": "string",            "like_count": 0,            "linker_detail": {              "accept_audience_pre_apply": true,              "big_party_layout_config_version": 0,              "client_ui_info": "string",              "enable_audience_linkmic": 0,              "enlarge_guest_turn_on_source": 0,              "feature_list": [                null              ],              "forbid_apply_from_other": true,              "function_type": "string",              "init_source": "string",              "ktv_exhibit_mode": 0,              "ktv_lyric_mode": "string",              "linker_map_str": {},              "linker_play_modes": [                null              ],              "linker_ui_layout": 0,              "manual_open_ui": 0,              "playmode_detail": {}            },            "linker_map": {},            "live_room_mode": 0,            "mosaic_status": 0,            "mosaic_status_str": "string",            "others": {              "anonymous_ratio_display_affected": true,              "labels": {                "bandwidth_level": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "bandwidth_level_double": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "brightness": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "contrast": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_acu_after_10m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_acu_after_30m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_acu_after_5m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_acu_after_60m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_duration_after_10m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_duration_after_30m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_duration_after_5m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_duration_after_60m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_pcu_after_10m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_pcu_after_30m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_pcu_after_5m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "live_room_pcu_after_60m": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "resolution": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "saturation": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                },                "sharpness": {                  "ttl": 0,                  "value": "string",                  "value_type": 0                }              },              "lvideo_item_id": 0,              "metric_tracker_data_list": [                null              ],              "mosaic_version": 0,              "panel_guidance": "string",              "participant_activity": "string",              "redirect_from": 0,              "room_chat_guide_locale_city": "string",              "web_data": {                "additional_stream_url": {                  "candidate_resolution": [                    "string"                  ],                  "complete_push_urls": [                    null                  ],                  "default_resolution": "string",                  "extra": {                    "anchor_interact_profile": 0,                    "audience_interact_profile": 0,                    "bframe_enable": true,                    "bitrate_adapt_strategy": 0,                    "business_name": "string",                    "bytevc1_enable": true,                    "default_bitrate": 0,                    "fps": 0,                    "gop_sec": 0,                    "h265_enable": true,                    "hardware_encode": true,                    "height": 0,                    "max_bitrate": 0,                    "min_bitrate": 0,                    "roi": true,                    "sw_roi": true,                    "video_profile": 0,                    "width": 0                  },                  "flv_pull_url": {                    "FULL_HD1": "string",                    "HD1": "string",                    "SD1": "string",                    "SD2": "string"                  },                  "flv_pull_url_params": {                    "FULL_HD1": "string",                    "HD1": "string",                    "SD1": "string",                    "SD2": "string"                  },                  "hls_pull_url": "string",                  "hls_pull_url_map": {                    "FULL_HD1": "string",                    "HD1": "string",                    "SD1": "string",                    "SD2": "string"                  },                  "hls_pull_url_params": "string",                  "id": 0,                  "id_str": "string",                  "live_core_sdk_data": {                    "pull_data": {                      "Flv": [                        {                          "params": "string",                          "quality_name": "string",                          "url": "string"                        }                      ],                      "Hls": [                        {                          "params": "string",                          "quality_name": "string",                          "url": "string"                        }                      ],                      "codec": "string",                      "compensatory_data": "string",                      "hls_data_unencrypted": {},                      "kind": 0,                      "options": {                        "default_quality": {                          "additional_content": "string",                          "disable": 0,                          "fps": 0,                          "level": 0,                          "name": "string",                          "resolution": "string",                          "sdk_key": "string",                          "v_bit_rate": 0,                          "v_codec": "string"                        },                        "qualities": [                          {                            "additional_content": "string",                            "disable": 0,                            "fps": 0,                            "level": 0,                            "name": "string",                            "resolution": "string",                            "sdk_key": "string",                            "v_bit_rate": 0,                            "v_codec": "string"                          }                        ],                        "quality_strategy": "string",                        "vpass_default": true                      },                      "stream_data": "string",                      "version": 0                    },                    "push_data": {                      "kind": 0,                      "pre_schedule": true,                      "push_params": "string",                      "push_stream_level": 0,                      "resolution_params": {},                      "rtmp_push_url": "string",                      "rtmps_push_url": "string",                      "stream_id": 0,                      "stream_id_str": "string"                    },                    "size": "string"                  },                  "multi_stream_scene": 0,                  "play": {                    "horizontal": "string",                    "vertical": "string"                  },                  "provider": 0,                  "pull_datas": {},                  "push_datas": {},                  "push_stream_type": 0,                  "push_urls": [                    null                  ],                  "resolution_name": {                    "FULL_HD1": "string",                    "HD1": "string",                    "ORIGION": "string",                    "SD1": "string",                    "SD2": "string"                  },                  "resolution_select_panel_resident": 0,                  "rtmp_pull_url": "string",                  "rtmp_pull_url_params": "string",                  "rtmp_push_url": "string",                  "rtmp_push_url_params": "string",                  "rtmps_push_url": "string",                  "stream_control_type": 0,                  "stream_orientation": 0,                  "vr_type": 0                }              },              "web_enter_benefit_point_data": {                "has_ongoing_lottery": true,                "has_ongoing_lucky_money": true              },              "web_live_port_optimization": {                "strategy_config": {                  "background": {                    "pause_monitor_duration": "string",                    "strategy_type": 0,                    "use_config_duration": true                  },                  "detail": {                    "pause_monitor_duration": "string",                    "strategy_type": 0,                    "use_config_duration": true                  },                  "tab": {                    "pause_monitor_duration": "string",                    "strategy_type": 0,                    "use_config_duration": true                  }                },                "strategy_extra": "string"              }            },            "owner": {              "avatar_thumb": {                "url_list": [                  "string"                ]              },              "follow_info": {                "follow_status": 0,                "follow_status_str": "string"              },              "foreign_user": 0,              "id_str": "string",              "nickname": "string",              "open_id_str": "string",              "sec_uid": "string",              "subscribe": {                "buy_type": 0,                "identity_type": 0,                "is_member": true,                "level": 0,                "open": 0              }            },            "owner_open_id_str": "string",            "owner_user_id_str": "string",            "paid_live_data": {              "anchor_right": 0,              "delivery": 0,              "duration": 0,              "max_preview_duration": 0,              "need_delivery_notice": true,              "paid_type": 0,              "pay_ab_type": 0,              "privilege_info": {},              "privilege_info_map": {},              "view_right": 0            },            "preview_expose": {              "alive_checker": 0,              "chat_group_extend_data": [                null              ],              "chat_msgs": [                null              ],              "et_data": [                null              ],              "feed_enter_extra": "string",              "feed_extra": "string",              "force_insertion": [                null              ],              "is_aweme_video_feed": true,              "is_preview_use_websocket": 0,              "message_scroll_after_ms": 0,              "message_scroll_interval_ms": 0,              "metas": [                null              ],              "need_preload": 0,              "need_realtime": true,              "preview_enter_extra": "string",              "preview_exit_guide_list": [                null              ],              "preview_high_light": {                "duration": "string",                "enable": true,                "guide_text": "string",                "highlight_id": 0,                "highlight_id_str": "string",                "highlight_type": "string",                "m3u8_url": "string",                "reason": "string",                "show_duration": 0,                "video_id": "string",                "video_url": "string"              },              "preview_intro": "string",              "relation_info": "string",              "scroll_after_ms": 0,              "show_name_abbreviation": 0,              "show_preview_cards": true,              "show_similar_feed_button": true,              "show_uv_pv": 0,              "style": 0            },            "room_view_stats": {              "display_long": "string",              "display_long_anchor": "string",              "display_middle": "string",              "display_middle_anchor": "string",              "display_short": "string",              "display_short_anchor": "string",              "display_type": 0,              "display_value": 0,              "display_version": 0,              "incremental": true,              "is_hidden": true            },            "share_msg_style": 0,            "stats": {              "like_count": 0,              "total_user_desp": "string",              "total_user_str": "string",              "user_count_str": "string"            },            "status": 0,            "status_str": "string",            "stream_url": {              "default_resolution": "string",              "extra": {                "anchor_interact_profile": 0,                "audience_interact_profile": 0,                "bframe_enable": true,                "bitrate_adapt_strategy": 0,                "bytevc1_enable": true,                "default_bitrate": 0,                "fps": 0,                "gop_sec": 0,                "h265_enable": true,                "hardware_encode": true,                "height": 0,                "max_bitrate": 0,                "min_bitrate": 0,                "roi": true,                "sw_roi": true,                "video_profile": 0,                "width": 0              },              "flv_pull_url": {                "FULL_HD1": "string",                "HD1": "string",                "SD1": "string",                "SD2": "string"              },              "hls_pull_url": "string",              "hls_pull_url_map": {                "FULL_HD1": "string",                "HD1": "string",                "SD1": "string",                "SD2": "string"              },              "live_core_sdk_data": {                "pull_data": {                  "options": {                    "default_quality": {                      "additional_content": "string",                      "disable": 0,                      "fps": 0,                      "level": 0,                      "name": "string",                      "resolution": "string",                      "sdk_key": "string",                      "v_bit_rate": 0,                      "v_codec": "string"                    },                    "qualities": [                      null                    ]                  },                  "stream_data": "string"                }              },              "pull_datas": {},              "stream_orientation": 0            },            "title": "string",            "user_count_str": "string"          },          "tag_name": "string",          "title_type": 0,          "uniq_id": "string",          "web_rid": "string"        }      ],      "user": {        "avatar_thumb": {          "url_list": [            "string"          ]        },        "follow_info": {          "follow_status": 0,          "follow_status_str": "string"        },        "foreign_user": 0,        "id_str": "string",        "nickname": "string",        "open_id_str": "string",        "sec_uid": "string"      }    },    "extra": {      "now": 0    },    "status_code": 0  },  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}