Retrieves a list of audio and video information.
Operation description
This operation retrieves up to 5000 audio and video files that match the specified filter conditions (such as video status and category ID). Specify StartTime and EndTime to retrieve data in batches. To query more audio and video files or traverse all audio and video information, see Search for media information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GetVideoList |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CateId |
integer |
No |
The category ID. You can obtain the category ID by using the following methods:
|
781111 |
| Status |
string |
No |
The video status. You can specify multiple statuses. Separate multiple statuses with commas (,). Valid values:
For more information about video statuses and related limits, see Status: video status. |
Uploading,Normal |
| PageNo |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| SortBy |
string |
No |
The sorting rule of the results. Valid values:
|
CreationTime:Asc |
| StartTime |
string |
No |
The beginning of the time range to query based on CreationTime (creation time). Specify the time in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2017-01-11T12:00:00Z |
| EndTime |
string |
No |
The end of the time range to query based on CreationTime. The end time must be later than the start time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2017-01-11T12:59:00Z |
| StorageLocation |
string |
No |
The storage address of the audio or video file. |
out-****.oss-cn-shanghai.aliyuncs.com |
| ReferenceIds |
string |
No |
The list of custom IDs. Specify one or more custom IDs separated by commas (,). A maximum of 20 IDs are supported. |
123-123,1234-1234 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Total |
integer |
The total number of audio and video files. |
100 |
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| VideoList |
object |
||
| Video |
array<object> |
The list of audio and video information. A maximum of 5000 entries can be returned. |
|
|
array<object> |
The details of the audio or video file. |
||
| StorageLocation |
string |
The storage address of the audio or video file. |
out-****.oss-cn-shanghai.aliyuncs.com |
| Status |
string |
The status of the video. Valid values:
For more information about each video status and its limits, see Status: Video status. |
Normal |
| CreationTime |
string |
The time when the audio or video file was created. The time is in UTC. The format is yyyy-MM-ddTHH:mm:ssZ. |
2017-11-14T09:15:50Z |
| CateId |
integer |
The category ID. |
781111 |
| VideoId |
string |
The audio or video ID. |
9ae2af636ca6c10412f44891fc**** |
| Tags |
string |
The tags of the audio or video file. Multiple tags are separated by a comma (,). |
Tag 1, Tag 2 |
| ModificationTime |
string |
The time when the video was last updated. The time is in UTC. The format is yyyy-MM-ddTHH:mm:ssZ. |
2017-11-14T09:16:50Z |
| CateName |
string |
The category name. |
Category name |
| Description |
string |
The description of the audio or video file. |
Alibaba Cloud VOD video description |
| AppId |
string |
The application ID. Default value: app-1000000. |
app-1000000 |
| Size |
integer |
The size of the source audio or video file. Unit: bytes. |
10897890 |
| CoverURL |
string |
The URL of the cover image for the audio or video file. |
https://example.aliyundoc.com/****.jpg |
| Duration |
number |
The duration of the audio or video file. Unit: seconds. |
135.6 |
| Title |
string |
The title of the audio or video file. |
Alibaba Cloud VOD video title |
| Snapshots |
object |
||
| Snapshot |
array |
An array of video snapshot URLs. |
|
|
string |
The URL of a video snapshot. Note
Snapshot data is returned only for videos that are processed by the video snapshot feature. Otherwise, this parameter is empty. |
http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333**** |
|
| 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 expiration time of the restored media asset. |
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. It can contain only lowercase letters, uppercase letters, digits, hyphens (-), and underscores (_). The ID must be 6 to 64 characters in length. The ID must be unique for each user. |
123-123 |
Examples
Success response
JSON format
{
"Total": 100,
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"VideoList": {
"Video": [
{
"StorageLocation": "out-****.oss-cn-shanghai.aliyuncs.com",
"Status": "Normal",
"CreationTime": "2017-11-14T09:15:50Z",
"CateId": 781111,
"VideoId": "9ae2af636ca6c10412f44891fc****",
"Tags": "Tag 1, Tag 2",
"ModificationTime": "2017-11-14T09:16:50Z",
"CateName": "Category name",
"Description": "Alibaba Cloud VOD video description",
"AppId": "app-1000000",
"Size": 10897890,
"CoverURL": "https://example.aliyundoc.com/****.jpg",
"Duration": 135.6,
"Title": "Alibaba Cloud VOD video title",
"Snapshots": {
"Snapshot": [
"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****"
]
},
"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.