Queries information such as the title, description, duration, thumbnail URL, status, creation time, size, snapshots, category, and tags about a single audio or video files based on the ID.
Operation description
After a media file is uploaded, ApsaraVideo VOD processes the source file. Then, information about the media file is asynchronously generated. You can configure notifications for the VideoAnalysisComplete event and call this operation to query information about a media file after you receive notifications for the VideoAnalysisComplete event. For more information, see Overview .
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
VideoId | string | Yes | The ID of the audio or video file. You can specify only one ID in each call. You can use one of the following methods to obtain the ID:
| 9b73864d75f1d231e9001cd5f8**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"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": "Tag 1,Tag 2",
"ModificationTime": "2017-11-14T10:15:50Z",
"RegionId": "cn-shanghai",
"CustomMediaInfo": "{\"aaa\":\"test\"}",
"CateName": "Category name",
"Description": "Video description in ApsaraVideo VOD",
"AppId": "app-****",
"Size": 10897890,
"CoverURL": "https://example.aliyundoc.com/****.jpg",
"TemplateGroupId": "9ae2af636ca64835b0c10412f448****",
"Duration": 135.6,
"Title": "Video title in ApsaraVideo 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"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-23 | The response structure of the API has changed | View Change Details |
2023-04-11 | The response structure of the API has changed | View Change Details |