Queries the snapshots that are captured by submitting snapshot jobs or snapshots that are generated by the system when you upload the video.
Operation description
If multiple snapshots of a video exist, the data of the latest snapshot is returned.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
VideoId | string | Yes | The ID of the video. | d3e680e618708fbf2cae7cc931**** |
SnapshotType | string | No | The type of snapshots that are returned. Valid values:
| CoverSnapshot |
AuthTimeout | string | No | The validity period of the snapshot URL. Unit: seconds. Default value: 3600. Minimum value: 3600.
| 3600 |
PageSize | string | No | The number of entries to return on each page. Default value: 20. Maximum value: 100. | 20 |
PageNo | string | No | The number of the page to turn. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"MediaSnapshot": {
"CreationTime": "2017-12-20T12:23:45Z",
"Regular": "http://example.aliyundoc.com/snapshot/sample{SnapshotCount}.jpg",
"Total": 100,
"JobId": "ad90a501b1b9472374ad005046****",
"Snapshots": {
"Snapshot": [
{
"Index": 1,
"Url": "http://example.aliyundoc.com/snapshot/sample00001****.jpg"
}
]
}
}
}
Error codes
For a list of error codes, visit the Service error codes.
Common errors
The following table describes the common errors that this operation can return.
Error code | Error message | HTTP status code | Description |
---|---|---|---|
InvalidVideo.NotFound | The video does not exist. | 404 | The error message returned because the video does not exist. |
NoSuchResource | The specified resource %s does not exist. | 404 | The error message returned because the specified resource does not exist. |
Forbidden.IllegalStatus | Status of the video is illegal. | 400 | The error message returned because the video status is invalid. You can query the snapshot data of videos only when they are in the UploadSucc, Normal, Checking, or Blocked state. |