GetVideoList
Queries a list of audio and video media assets based on conditions such as creation time, category, and video status, and supports sorting and paging.
Operation description
This operation retrieves up to 5,000 audio and video files that meet specified filter conditions, such as video status and category ID. Specify StartTime and EndTime to retrieve data in batches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetVideoList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CateId |
integer |
No |
The category ID. |
781111 |
| Status |
string |
No |
The video status. You can specify multiple statuses separated by commas (,). Valid values:
|
Uploading,Normal |
| StartTime |
string |
No |
The start time for the creation time filter. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2017-01-11T12:00:00Z |
| EndTime |
string |
No |
The end time for the creation time filter. The end time must be later than the start time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2017-01-11T12:59:00Z |
| SortBy |
string |
No |
The sorting method for query results. Valid values:
|
CreationTime:Asc |
| PageNo |
integer |
No |
The current page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Default value: 10. Maximum value: 50. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
| Success |
string |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The return code. |
200 |
| Total |
integer |
The total number of media assets that meet the filter conditions. |
163 |
| MediaList |
array<object> |
The list of media asset information. |
|
|
object |
The list of media asset information. |
||
| StorageLocation |
string |
The storage location. |
out-****.oss-cn-shanghai.aliyuncs.com |
| Status |
string |
The video status. Valid values:
|
Normal |
| CreationTime |
string |
The creation time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2017-11-14T09:15:50Z |
| CateId |
integer |
The category ID. |
3679 |
| MediaId |
string |
The media asset ID. |
1c6ce34007d571ed94667630a6bc**** |
| Tags |
string |
The list of tags. |
Tag1, Tag2 |
| ModificationTime |
string |
The update time. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2017-11-14T09:16:50Z |
| CateName |
string |
The category name. |
Cate1 |
| Description |
string |
The description. |
Alibaba Cloud VOD video description |
| AppId |
string |
The application ID. Default value: app-1000000. |
app-1000000 |
| Size |
integer |
The size of the source file. Unit: bytes. |
10897890 |
| CoverUrl |
string |
The URL of the cover image. |
http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333**** |
| Duration |
number |
The duration. Unit: seconds. |
135.6 |
| Title |
string |
The title. |
The greatest music player in history |
| Snapshots |
array |
The array of video snapshot URLs. |
|
|
string |
The URL of the video snapshot. |
http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333**** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"Success": "true",
"Code": "200",
"Total": 163,
"MediaList": [
{
"StorageLocation": "out-****.oss-cn-shanghai.aliyuncs.com",
"Status": "Normal",
"CreationTime": "2017-11-14T09:15:50Z",
"CateId": 3679,
"MediaId": "1c6ce34007d571ed94667630a6bc****",
"Tags": "Tag1, Tag2",
"ModificationTime": "2017-11-14T09:16:50Z",
"CateName": "Cate1",
"Description": "Alibaba Cloud VOD video description",
"AppId": "app-1000000",
"Size": 10897890,
"CoverUrl": "http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****",
"Duration": 135.6,
"Title": "The greatest music player in history",
"Snapshots": [
"http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.