You can call this operation to retrieve information about multiple audio or video files in a batch using their IDs. The information includes the title, description, duration, thumbnail URL, status, creation time, size, snapshots, categorization, and tags.
Operation description
You can retrieve information for a maximum of 20 audio or video files in a single call.
After you upload an audio or video file, VOD analyzes the source file. The media asset information is generated asynchronously. You can set an event notification for the VideoAnalysisComplete event. After you receive the notification, you can call this operation to retrieve the audio or video information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetVideoInfos |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VideoIds |
string |
No |
A list of audio or video IDs. Separate multiple IDs with commas (,). A maximum of 20 IDs is supported. You can obtain audio or video IDs in the following ways:
|
7753d144efd8e649c6c45fe0579****,7753d144efd74d6c45fe0570**** |
| ReferenceIds |
string |
No |
A list of one or more custom IDs. Separate multiple IDs with commas (,). A maximum of 20 IDs is supported. |
123-123,1234-1234 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response that is returned. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| NonExistVideoIds |
array |
A list of audio or video IDs that do not exist. |
|
|
string |
A list of audio or video IDs that do not exist. |
["7753d144efd8e649c6c45fe0579****"] |
|
| NonExistReferenceIds |
array |
A list of custom IDs that do not exist. |
|
|
string |
A list of custom IDs that do not exist. |
123-123 |
|
| VideoList |
array<object> |
The list of audio or video information. |
|
|
object |
The details of the audio or video information. |
||
| StorageLocation |
string |
The storage address of the audio or video file. |
out-****.oss-cn-shanghai.aliyuncs.com |
| CreationTime |
string |
The time when the audio or video file was created. The format is yyyy-MM-ddTHH:mm:ssZ in UTC. |
2017-06-26T05:38:48Z |
| Status |
string |
The status of the video. Valid values:
|
Normal |
| CateId |
integer |
The category ID. |
781111**** |
| VideoId |
string |
The audio or video ID. |
7753d144efd74d6c45fe0570**** |
| DownloadSwitch |
string |
The status of the offline download feature. If this feature is enabled, users of mobile devices can use ApsaraVideo Player to cache videos for offline viewing. For more information, see Offline download. Valid values:
|
on |
| Tags |
string |
The tags of the audio or video file. Separate multiple tags with commas (,). |
tag1, tag2 |
| ModificationTime |
string |
The time when the audio or video file was last updated. The format is yyyy-MM-ddTHH:mm:ssZ in UTC. |
2017-06-26T06:38:48Z |
| CateName |
string |
The category name. |
cate1 |
| Description |
string |
The description of the audio or video file. |
Alibaba Cloud VOD video description |
| AppId |
string |
The application ID. |
app-**** |
| Size |
integer |
The size of the source audio or video file, in bytes. |
453 |
| CoverURL |
string |
The thumbnail URL of the audio or video file. |
https://example.aliyundoc.com/****.jpg |
| TemplateGroupId |
string |
The ID of the transcoding template group. |
b4039216985f4312a5382a4ed**** |
| Duration |
number |
The duration of the audio or video file, in seconds. |
120 |
| Title |
string |
The title of the audio or video file. |
Alibaba Cloud VOD Video Title |
| Snapshots |
array |
An array of video snapshot URLs. |
|
|
string |
An array of video snapshot URLs. Note
This operation returns only the thumbnail snapshot data of the video. To query data for normal snapshots, sprites, original sprite images, and WebVTT snapshots that are captured using the video snapshot feature, call the ListSnapshots operation. |
["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 |
The storage class of the media asset. Valid values:
|
Standard |
| RestoreStatus |
string |
The restoration status of the media asset. Valid values:
|
Success |
| RestoreExpiration |
string |
The time when the restored media asset expires. |
2023-03-30T10:14:14Z |
| UserData |
string |
Custom settings. This is a JSON string that supports settings such as message callbacks and upload acceleration. For more information, see UserData. |
{"MessageCallback":{"CallbackURL":"http://example.aliyundoc.com"},"Extend":{"localId":"*****","test":"www"}} |
| ReferenceId |
string |
The custom ID. The ID can contain only lowercase letters, uppercase letters, digits, hyphens (-), and underscores (_). The ID must be 6 to 64 characters in length and unique for each user. |
123-123 |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"NonExistVideoIds": [
"[\"7753d144efd8e649c6c45fe0579****\"]"
],
"NonExistReferenceIds": [
"123-123"
],
"VideoList": [
{
"StorageLocation": "out-****.oss-cn-shanghai.aliyuncs.com",
"CreationTime": "2017-06-26T05:38:48Z",
"Status": "Normal",
"CateId": 0,
"VideoId": "7753d144efd74d6c45fe0570****",
"DownloadSwitch": "on",
"Tags": "tag1, tag2",
"ModificationTime": "2017-06-26T06:38:48Z",
"CateName": "cate1",
"Description": "Alibaba Cloud VOD video description",
"AppId": "app-****",
"Size": 453,
"CoverURL": "https://example.aliyundoc.com/****.jpg",
"TemplateGroupId": "b4039216985f4312a5382a4ed****",
"Duration": 120,
"Title": "Alibaba Cloud VOD Video Title",
"Snapshots": [
"[\"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"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.