Gets information about video and audio files.
Operation description
Get information about up to the first 5,000 audio and video files based on the filter condition, such as the status or category ID of the file. We recommend that you set the StartTime and EndTime parameters to narrow down the time range and perform multiple queries to obtain data.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetVideoList |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CateId |
integer |
No |
The ID of the category. |
781111 |
| Status |
string |
No |
The status of the video. You can specify multiple video statuses and separate them with commas (,). Valid values:
Valid values:
|
Uploading,Normal |
| StartTime |
string |
No |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-01-11T12:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. The end time must be later than the start time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2017-01-11T12:59:00Z |
| SortBy |
string |
No |
The sorting method of the results. Valid values:
|
CreationTime:Asc |
| PageNo |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 50. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| 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 status code returned. |
200 |
| Total |
integer |
The total number of audio and video files that meet the conditions. |
163 |
| MediaList |
array<object> |
The information about the audio and video files. |
|
|
object |
The information about the audio or video file. |
||
| StorageLocation |
string |
The storage address. |
out-****.oss-cn-shanghai.aliyuncs.com |
| Status |
string |
The status of the video. Valid values:
Valid values:
|
Normal |
| CreationTime |
string |
The time when the audio or video file was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2017-11-14T09:15:50Z |
| CateId |
integer |
The ID of the category. |
3679 |
| MediaId |
string |
The ID of the audio or video file. |
1c6ce34007d571ed94667630a6bc**** |
| Tags |
string |
The tags of the audio or video file. |
Tag1, Tag2 |
| ModificationTime |
string |
The time when the audio or video file was updated. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2017-11-14T09:16:50Z |
| CateName |
string |
The name of the category. |
Category1 |
| Description |
string |
The description of the audio or video file. |
Alibaba CloudVODVideo description |
| AppId |
string |
The ID of the application. Default value: app-1000000. |
app-1000000 |
| Size |
integer |
The size of the source file. Unit: bytes. |
10897890 |
| CoverUrl |
string |
The URL of the thumbnail. |
http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333**** |
| Duration |
number |
The duration. Unit: seconds. |
135.6 |
| Title |
string |
The title of the audio or video file. |
The best music player ever |
| 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": "Category1",
"Description": "Alibaba CloudVODVideo description",
"AppId": "app-1000000",
"Size": 10897890,
"CoverUrl": "http://example.aliyundoc.com/snapshot/****.jpg?auth_key=1498476426-0-0-f00b9455c49a423ce69cf4e27333****",
"Duration": 135.6,
"Title": "The best music player ever",
"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.