文档中心 > API类目 > 多媒体平台API

taobao.live.room.fetch (获取直播间详情)

获取直播间的详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
url String 可选 https://h5.m.taobao.com/taolive/video.html?id=200361040000&type=473&livetype=living&vrType=0 直播分享url

响应参数

名称 类型 示例值 描述
result WeiboLiveBundle result
  • └ summary
  • String
  • 韩国免税店开始买起来,欧蕙干细胞,雪花秀,欧美口红,买买买
  • summary
  • └ app_android_url
  • String
  • null
  • app_android_url
  • └ stime
  • String
  • null
  • stime
  • └ status
  • Number
  • 1
  • status
  • urls
  • WeiboUrlBundle
  • urls
  • └ live_ld
  • String
  • https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c_daren360.m3u8?auth_key=1507691181-0-0-1ac87eb939759a4912cff2cdf782098f&viewer_id=0
  • live_ld
  • └ rtmp_ld
  • String
  • rtmp://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c_daren360?auth_key=1507691181-0-0-dc5b0b7d181c480ce7f25c579f8e3ca4
  • rtmp_ld
  • └ replay_ld
  • String
  • null
  • replay_ld
  • └ live_flv_ld
  • String
  • https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c_daren360.flv?auth_key=1507691181-0-0-0c648d7bc6cbd0e5b8aeeb08ae891623&viewer_id=0"
  • live_flv_ld
  • └ live_hd
  • String
  • "https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c.m3u8?auth_key=1507691181-0-0-22b7a138e15737aaf5fb26b663275bda&viewer_id=0"
  • live_hd
  • └ rtmp_hd
  • String
  • rtmp://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c?auth_key=1507691181-0-0-3c0781858a3ef9ee5b2a025401e0a8d6
  • rtmp_hd
  • └ replay_hd
  • String
  • null
  • replay_hd
  • └ live_flv_hd
  • String
  • https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c.flv?auth_key=1507691181-0-0-869191acb2a66e90a75ddebd83278d20&viewer_id=0"
  • live_flv_hd
  • └ object_type_detail
  • String
  • live
  • object_type_detail
  • image
  • WeiboImage
  • image
  • └ height
  • Number
  • 1200
  • height
  • └ width
  • Number
  • 900
  • width
  • └ url
  • String
  • https://img.alicdn.com/imgextra/i4/6000000005430/TB2QehgdnZRMeJjSspoXXcCOFXa_!!0-tbCommonAudio.jpg
  • url
  • └ url
  • String
  • //h5.m.taobao.com/taolive/video.html?id=200361040000&type=473&livetype=living&vrType=0
  • url
  • └ id
  • String
  • 123456
  • id
  • └ object_type
  • String
  • live
  • object_type
  • author
  • WeiboAuthor
  • author
  • └ id
  • String
  • 123456
  • id
  • └ object_type
  • String
  • person
  • object_type
  • └ display_name
  • String
  • 阿拉蕾
  • display_name
  • └ display_name
  • String
  • 淘宝直播
  • display_name
  • └ duration
  • Number
  • 1200
  • duration
  • └ title
  • String
  • 韩国免税店买欧美口红欧蕙,雪花秀
  • title
  • └ scheme_app_android
  • String
  • null
  • scheme_app_android
  • └ app_ios_url
  • String
  • null
  • app_ios_url
  • └ updated_at
  • String
  • 2016-06-02
  • updated_at
  • └ etime
  • String
  • 2017-06-02 12:01:01
  • etime
  • └ scheme_app_ios
  • String
  • null
  • scheme_app_ios
  • └ embed_code
  • String
  • null
  • embed_code
  • └ share_text
  • String
  • 来自淘宝直播的分享
  • share_text
  • └ mid
  • String
  • null
  • mid
  • └ target_url
  • String
  • https://h5.m.taobao.com/taolive/video.html?id=200361040000&type=473&livetype=living&vrType=0
  • target_url
  • live
  • WeiboLive
  • live
  • └ height
  • Number
  • 700
  • height
  • └ width
  • Number
  • 500
  • width
  • └ bitrate
  • Number
  • 700
  • bitrate
  • └ scheme_url
  • String
  • https://h5.m.taobao.com/taolive/video.html?id=200361040000&type=473&livetype=living&vrType=0
  • scheme_url

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LiveRoomFetchRequest req = new LiveRoomFetchRequest();
req.setUrl("https://h5.m.taobao.com/taolive/video.html?id=200361040000&type=473&livetype=living&vrType=0");
LiveRoomFetchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<live_room_fetch_response>
    <result>
        <summary>韩国免税店开始买起来,欧蕙干细胞,雪花秀,欧美口红,买买买</summary>
        <app_android_url>null</app_android_url>
        <stime>null</stime>
        <status>1</status>
        <urls>
            <live_ld>https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c_daren360.m3u8?auth_key=1507691181-0-0-1ac87eb939759a4912cff2cdf782098f&amp;viewer_id=0</live_ld>
            <rtmp_ld>rtmp://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c_daren360?auth_key=1507691181-0-0-dc5b0b7d181c480ce7f25c579f8e3ca4</rtmp_ld>
            <replay_ld>null</replay_ld>
            <live_flv_ld>https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c_daren360.flv?auth_key=1507691181-0-0-0c648d7bc6cbd0e5b8aeeb08ae891623&amp;viewer_id=0&quot;</live_flv_ld>
            <live_hd>&quot;https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c.m3u8?auth_key=1507691181-0-0-22b7a138e15737aaf5fb26b663275bda&amp;viewer_id=0&quot;</live_hd>
            <rtmp_hd>rtmp://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c?auth_key=1507691181-0-0-3c0781858a3ef9ee5b2a025401e0a8d6</rtmp_hd>
            <replay_hd>null</replay_hd>
            <live_flv_hd>https://tbflive.alicdn.com/mediaplatform/799d0f5e-0fed-41a7-ba73-1eeec7a8d52c.flv?auth_key=1507691181-0-0-869191acb2a66e90a75ddebd83278d20&amp;viewer_id=0&quot;</live_flv_hd>
        </urls>
        <object_type_detail>live</object_type_detail>
        <image>
            <height>1200</height>
            <width>900</width>
            <url>https://img.alicdn.com/imgextra/i4/6000000005430/TB2QehgdnZRMeJjSspoXXcCOFXa_!!0-tbCommonAudio.jpg</url>
        </image>
        <url>//h5.m.taobao.com/taolive/video.html?id=200361040000&amp;type=473&amp;livetype=living&amp;vrType=0</url>
        <id>123456</id>
        <object_type>live</object_type>
        <author>
            <id>123456</id>
            <object_type>person</object_type>
            <display_name>阿拉蕾</display_name>
        </author>
        <display_name>淘宝直播</display_name>
        <duration>1200</duration>
        <title>韩国免税店买欧美口红欧蕙,雪花秀</title>
        <scheme_app_android>null</scheme_app_android>
        <app_ios_url>null</app_ios_url>
        <updated_at>2016-06-02</updated_at>
        <etime>2017-06-02 12:01:01</etime>
        <scheme_app_ios>null</scheme_app_ios>
        <embed_code>null</embed_code>
        <share_text>来自淘宝直播的分享</share_text>
        <mid>null</mid>
        <target_url>https://h5.m.taobao.com/taolive/video.html?id=200361040000&amp;type=473&amp;livetype=living&amp;vrType=0</target_url>
        <live>
            <height>700</height>
            <width>500</width>
            <bitrate>700</bitrate>
        </live>
        <scheme_url>https://h5.m.taobao.com/taolive/video.html?id=200361040000&amp;type=473&amp;livetype=living&amp;vrType=0</scheme_url>
    </result>
</live_room_fetch_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部