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

taobao.vmac.video.copyright.get (按照ID取有版权的视频信息)

按照ID取有版权的视频信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
source_type String 必须 YOUKU 视频来源
app_id String 必须 4272 合作方KEY
video_id String 必须 xcxcasww 视频ID

响应参数

名称 类型 示例值 描述
result ResultDto - result
  • └ detail_message
  • String
  • SUCCESS
  • detailMessage
  • result_code
  • VmacResultCode
  • -
  • resultCode
  • └ message
  • String
  • -
  • message
  • └ code
  • String
  • -
  • code
  • value
  • SingleVideoResultDto
  • -
  • value
  • video
  • VideoOuterDto
  • -
  • video
  • └ web_url
  • String
  • http://v.youku.com/v_show/id_XNTU5NTc5MzEy.html
  • webUrl
  • └ source_type
  • String
  • YOUKU
  • sourceType
  • └ video_stage
  • Number
  • 25
  • videoStage
  • └ media_url
  • String
  • -
  • mediaUrl
  • └ status
  • String
  • 发布
  • status
  • └ show_id
  • String
  • 87ba45c24e5111e2b2ac
  • showId
  • └ panorama
  • Boolean
  • false
  • panorama
  • └ video_type
  • String
  • 资讯
  • videoType
  • └ category
  • String
  • 娱乐
  • category
  • └ license_list
  • String []
  • -
  • licenseList
  • └ paid
  • Number
  • 0
  • paid
  • └ title
  • String
  • 周杰伦导演作品《天台》落户微信
  • title
  • └ duration
  • String
  • 14
  • duration
  • └ release_date
  • String
  • -
  • releaseDate
  • └ small_thumb_url
  • String
  • http://cn-vmc-images.alicdn.com/vmac/11000000054102015A0D97998B78D21F040897FA?x-oss-process=image/resize,p_45
  • smallThumbUrl
  • └ description
  • String
  • -
  • description
  • └ definition_list
  • String []
  • -
  • definitionList
  • └ sequence
  • String
  • 19
  • sequence
  • └ video_id
  • String
  • XNTU5NTc5MzEy
  • videoId
  • └ thumb_url
  • String
  • http://cn-vmc-images.alicdn.com/vmac/11000000054102015A0D97998B78D21F040897FA
  • thumbUrl
  • └ language_list
  • String []
  • -
  • languageList
  • └ rc_title
  • String
  • -
  • rcTitle
  • └ success
  • Boolean
  • false
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
VmacVideoCopyrightGetRequest req = new VmacVideoCopyrightGetRequest();
req.setSourceType("YOUKU");
req.setAppId("4272");
req.setVideoId("xcxcasww");
VmacVideoCopyrightGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<vmac_video_copyright_get_response>
    <result>
        <detail_message>SUCCESS</detail_message>
        <result_code>
            <message>-</message>
            <code>-</code>
        </result_code>
        <value>
            <video>
                <web_url>http://v.youku.com/v_show/id_XNTU5NTc5MzEy.html</web_url>
                <source_type>YOUKU</source_type>
                <video_stage>25</video_stage>
                <media_url>-</media_url>
                <status>发布</status>
                <show_id>87ba45c24e5111e2b2ac</show_id>
                <panorama>false</panorama>
                <video_type>资讯</video_type>
                <category>娱乐</category>
                <license_list>
                    <string>-</string>
                </license_list>
                <paid>0</paid>
                <title>周杰伦导演作品《天台》落户微信</title>
                <duration>14</duration>
                <release_date>-</release_date>
                <small_thumb_url>http://cn-vmc-images.alicdn.com/vmac/11000000054102015A0D97998B78D21F040897FA?x-oss-process=image/resize,p_45</small_thumb_url>
                <description>-</description>
                <definition_list>
                    <string>-</string>
                </definition_list>
                <sequence>19</sequence>
                <video_id>XNTU5NTc5MzEy</video_id>
                <thumb_url>http://cn-vmc-images.alicdn.com/vmac/11000000054102015A0D97998B78D21F040897FA</thumb_url>
                <language_list>
                    <string>-</string>
                </language_list>
                <rc_title>-</rc_title>
            </video>
        </value>
        <success>false</success>
    </result>
</vmac_video_copyright_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

返回
顶部