调用本接口通过音/视频ID来获取单个音视频的标题、描述、时长、封面URL、状态、创建时间、大小、截图、分类和标签等信息。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vod:GetVideoInfo |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| VideoId |
string |
否 |
音/视频 ID,仅支持传入一个音/视频 ID。可通过以下方式获取:
|
9b73864d75f1d231e9001cd5f8**** |
| ReferenceId |
string |
否 |
自定义 ID,仅支持小写字母、大写字母、数字、横线、下划线,长度 6-64 位。用户维度唯一。 |
123-123 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
25818875-5F78-4AF6-D7393642CA58**** |
| Video |
object |
音/视频信息。 |
|
| StorageLocation |
string |
音/视频存储地址。 |
out-201703232251****.oss-cn-shanghai.aliyuncs.com |
| CreationTime |
string |
音/视频创建时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。 |
2017-11-14T09:15:50Z |
| Status |
string |
音/视频状态。各状态可执行的操作及使用限制等详细信息,请参见Status:音视频状态。取值:
|
Normal |
| CateId |
integer |
分类 ID。 |
781111**** |
| VideoId |
string |
音/视频 ID。 |
9b73864d75f1d231e9001cd5f8**** |
| DownloadSwitch |
string |
离线下载开关状态,打开离线下载功能后,则允许移动端用户通过阿里云播放器将视频缓存至本地观看。具体操作,请参见离线下载。取值:
|
on |
| Tags |
string |
音/视频标签。多个标签之间使用半角逗号(,)分隔。 |
标签1, 标签2 |
| ModificationTime |
string |
音/视频的最后更新时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC 时间)。 |
2017-11-14T10:15:50Z |
| RegionId |
string |
音/视频存储所在地域。 |
cn-shanghai |
| CustomMediaInfo |
string |
自定义媒资信息。 说明
该参数已废弃,调用 API 已不会返回该参数。 |
{"aaa":"test"} |
| CateName |
string |
分类名称。 |
分类名 |
| Description |
string |
音/视频描述。 |
阿里云VOD视频描述 |
| AppId |
string |
应用 ID。 |
app-**** |
| Size |
integer |
音/视频源文件大小。单位:字节。 |
10897890 |
| CoverURL |
string |
音/视频封面 URL。 |
https://example.aliyundoc.com/****.jpg |
| TemplateGroupId |
string |
转码模板组 ID。 |
9ae2af636ca64835b0c10412f448**** |
| Duration |
number |
音/视频时长。单位:秒。 |
135.6 |
| Title |
string |
音/视频标题。 |
阿里云VOD视频标题 |
| AuditStatus |
string |
音/视频的终审结果。取值:
|
Normal |
| Snapshots |
object |
||
| Snapshot |
array |
视频截图 URL 数组。 |
|
|
string |
视频截图 URL 数组。 说明
本接口仅会返回视频的封面截图数据,通过视频截图功能截取的普通截图、雪碧截图、雪碧图原始图、WebVTT 截图的截图数据,请调用 ListSnapshots 接口查询。 |
["http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****","http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27243****",...] |
|
| StorageClass |
string |
媒资存储类型。取值:
|
Standard |
| RestoreStatus |
string |
媒资解冻状态。取值:
|
Success |
| RestoreExpiration |
string |
媒资解冻有效期。 |
2023-03-30T10:14:14Z |
| UserData |
string |
自定义设置。为 JSON 字符串,支持消息回调、上传加速等设置。更多信息,请参见 UserData 。 |
{"MessageCallback":{"CallbackURL":"http://example.aliyundoc.com"},"Extend":{"localId":"*****","test":"www"}} |
| ReferenceId |
string |
自定义 ID,仅支持小写字母、大写字母、数字、横线、下划线,长度 6-64 位。用户维度唯一。 |
123-123 |
示例
正常返回示例
JSON格式
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"Video": {
"StorageLocation": "out-201703232251****.oss-cn-shanghai.aliyuncs.com",
"CreationTime": "2017-11-14T09:15:50Z",
"Status": "Normal",
"CateId": 0,
"VideoId": "9b73864d75f1d231e9001cd5f8****",
"DownloadSwitch": "on",
"Tags": "标签1, 标签2",
"ModificationTime": "2017-11-14T10:15:50Z",
"RegionId": "cn-shanghai",
"CustomMediaInfo": "{\"aaa\":\"test\"}",
"CateName": "分类名",
"Description": "阿里云VOD视频描述",
"AppId": "app-****",
"Size": 10897890,
"CoverURL": "https://example.aliyundoc.com/****.jpg",
"TemplateGroupId": "9ae2af636ca64835b0c10412f448****",
"Duration": 135.6,
"Title": "阿里云VOD视频标题",
"AuditStatus": "Normal",
"Snapshots": {
"Snapshot": [
"[\"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****\",\"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27243****\",...]"
]
},
"StorageClass": "Standard",
"RestoreStatus": "Success",
"RestoreExpiration": "2023-03-30T10:14:14Z",
"UserData": "{\"MessageCallback\":{\"CallbackURL\":\"http://example.aliyundoc.com\"},\"Extend\":{\"localId\":\"*****\",\"test\":\"www\"}}",
"ReferenceId": "123-123"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。