文档中心 > API类目 > 数娱媒资输出

taobao.vmac.normal.video.get (按照ID获取normal视频信息)

按照ID获取normal视频信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
source_type String 可选 YOUKU 视频源
app_id String 可选 121211121212 厂商ID
video_id String 可选 XXSCSC=SSD 视频ID

响应参数

名称 类型 示例值 描述
result ResultDto -- --
  • └ detail_message
  • String
  • --
  • 响应信息
  • result_code
  • VmacResultCode
  • --
  • --
  • └ message
  • String
  • --
  • 服务端响应信息
  • └ code
  • String
  • --
  • 响应码
  • value
  • SingleVideoResultDTO
  • --
  • --
  • video
  • VideoOuterDto
  • --
  • --
  • └ web_url
  • String
  • http://v.youku.com/v_show/id_XNTQ4OTMwNjcy.html
  • 优酷PC主站地址
  • └ source_type
  • String
  • YOUKU
  • 视频来源
  • └ video_stage
  • Number
  • 3
  • 期号、集号
  • └ media_url
  • String
  • --
  • 介质地址
  • └ status
  • String
  • 发布
  • 状态
  • └ show_id
  • String
  • 9b7884f09e0a11e0a046
  • 节目ID
  • └ panorama
  • Boolean
  • false
  • 是否全景
  • └ video_type
  • String
  • 预告片
  • 视频类型(正片、预告片等)
  • └ category
  • String
  • 电影
  • 视频主分类
  • └ license_list
  • String []
  • --
  • 牌照列表
  • └ paid
  • Number
  • 0
  • 是否收费,1=收费 0=免费
  • └ title
  • String
  • 一次离别 预告片
  • 标题
  • └ duration
  • Number
  • 15.09
  • 视频时长(秒)
  • └ release_date
  • String
  • --
  • 发行日期
  • └ small_thumb_url
  • String
  • http://cn-vmc-images.alicdn.com/daily/110000000541040851E952706A0A4143C387D583?x-oss-process=image/resize,p_45
  • 海报缩略图
  • └ description
  • String
  • --
  • 描述
  • └ definition_list
  • String []
  • --
  • 清晰度列表,DEF_FLUENCY=流畅清晰度,DEF_NORMAL=普通清晰度,DEF_HIGH=高清清晰度,DEF_SUPER=超清/720P清晰度,DEF_FHD=超高清/1080P清晰度,DEF_4K=4K清晰度
  • └ sequence
  • String
  • 3
  • 节目中视频的集数或期数
  • └ video_id
  • String
  • XNTQ4OTMwNjcy
  • 视频ID
  • └ thumb_url
  • String
  • http://cn-vmc-images.alicdn.com/daily/110000000541040851E952706A0A4143C387D583
  • 海报
  • └ language_list
  • String []
  • --
  • 语言列表
  • └ rc_title
  • String
  • --
  • 推荐标题
  • └ video_ep
  • Number
  • 1
  • 第几期
  • └ success
  • Boolean
  • false
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
VmacNormalVideoGetRequest req = new VmacNormalVideoGetRequest();
req.setSourceType("YOUKU");
req.setAppId("121211121212");
req.setVideoId("XXSCSC=SSD");
VmacNormalVideoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<vmac_normal_video_get_response>
    <result>
        <detail_message>--</detail_message>
        <result_code>
            <message>--</message>
            <code>--</code>
        </result_code>
        <value>
            <video>
                <web_url>http://v.youku.com/v_show/id_XNTQ4OTMwNjcy.html</web_url>
                <source_type>YOUKU</source_type>
                <video_stage>3</video_stage>
                <media_url>--</media_url>
                <status>发布</status>
                <show_id>9b7884f09e0a11e0a046</show_id>
                <panorama>false</panorama>
                <video_type>预告片</video_type>
                <category>电影</category>
                <license_list>
                    <string>--</string>
                </license_list>
                <paid>0</paid>
                <title>一次离别  预告片</title>
                <duration>15.09</duration>
                <release_date>--</release_date>
                <small_thumb_url>http://cn-vmc-images.alicdn.com/daily/110000000541040851E952706A0A4143C387D583?x-oss-process=image/resize,p_45</small_thumb_url>
                <description>--</description>
                <definition_list>
                    <string>--</string>
                </definition_list>
                <sequence>3</sequence>
                <video_id>XNTQ4OTMwNjcy</video_id>
                <thumb_url>http://cn-vmc-images.alicdn.com/daily/110000000541040851E952706A0A4143C387D583</thumb_url>
                <language_list>
                    <string>--</string>
                </language_list>
                <rc_title>--</rc_title>
                <video_ep>1</video_ep>
            </video>
        </value>
        <success>false</success>
    </result>
</vmac_normal_video_get_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

返回
顶部