文档中心 > API类目 > 内容开放API

taobao.content.video.info.get (查询视频空间短视频信息)

查询视频空间短视频信息(上传视频空间后立即调用查询可能找不到, 请于15秒后重试查询)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
content_id Number 必须 10 内容ID

响应参数

名称 类型 示例值 描述
video_info GetVideoInfoResponse 响应结果
  • └ title
  • String
  • 测试视频
  • 内容标题
  • └ content_id
  • Number
  • 10
  • 内容ID
  • └ cover_url
  • String
  • https://img.alicdn.com/imgextra/i2/O1CN01j61pd3292AnxSZXyS_!!6000000008009-2-tps-64-64.png
  • 视频封面
  • └ description
  • String
  • 这是一个女装导购视频
  • 视频描述
  • └ duration
  • Number
  • 20
  • 视频时长(s)
  • └ height
  • Number
  • 480
  • 视频高度
  • └ width
  • Number
  • 480
  • 视频宽度
  • └ aspect_ratio
  • String
  • 1:1
  • 视频比例
  • └ play_url
  • String
  • http://tbm-auth.alicdn.com/b9d4689bbf537b68/u8yp5or.mp4
  • 播放链接
  • └ audit_state
  • String
  • PASS
  • 审核状态:WAIT=等待审核,AUDITING=审核中,PASS=审核通过,REJECT=审核不通过
  • └ upload_time
  • Date
  • 2023-01-20 00:00:00
  • 上传时间
  • └ md5
  • String
  • alsjdflkasdf
  • md5
  • └ size
  • Number
  • 12323
  • size

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ContentVideoInfoGetRequest req = new ContentVideoInfoGetRequest();
req.setContentId(10L);
ContentVideoInfoGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<content_video_info_get_response>
    <video_info>
        <title>测试视频</title>
        <content_id>10</content_id>
        <cover_url>https://img.alicdn.com/imgextra/i2/O1CN01j61pd3292AnxSZXyS_!!6000000008009-2-tps-64-64.png</cover_url>
        <description>这是一个女装导购视频</description>
        <duration>20</duration>
        <height>480</height>
        <width>480</width>
        <aspect_ratio>1:1</aspect_ratio>
        <play_url>http://tbm-auth.alicdn.com/b9d4689bbf537b68/u8yp5or.mp4</play_url>
        <audit_state>PASS</audit_state>
        <upload_time>2023-01-20 00:00:00</upload_time>
        <md5>alsjdflkasdf</md5>
        <size>12323</size>
    </video_info>
</content_video_info_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

返回
顶部