Retrieves daily playback statistics for top videos, including the number of views, unique viewers, and total playback duration.
Operation description
Currently, the only supported service region is China (Shanghai).
You can query playback statistics for up to the top 1000 videos per day. The top video list is sorted in descending order by the number of views by default.
Only playback data collected through ApsaraVideo Player SDK is supported.
Based on UTC+8, playback statistics for the previous day are generated at 9:00 AM each day.
You can query data generated after January 1, 2018. The maximum time range for a query is 180 days.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribePlayTopVideos |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BizDate |
string |
Yes |
The date to query. Format: yyyy-MM-ddTHH:mm:ssZ (UTC). |
2016-06-29T13:00:00Z |
| PageNo |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 100. Maximum value: 1000. |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNo |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
4B0BCF9F-2FD5-4817-****-7BEBBE3AF90B" |
| PageSize |
integer |
The number of entries per page. |
100 |
| TotalNum |
integer |
The total number of top videos. |
2 |
| TopPlayVideos |
object |
||
| TopPlayVideoStatis |
array<object> |
The playback data of top videos for the day. |
|
|
object |
|||
| Title |
string |
The title of the video. |
Alibaba Cloud video |
| VV |
string |
The number of views. |
107 |
| PlayDuration |
string |
The total playback duration. Unit: milliseconds. |
4640369 |
| VideoId |
string |
The ID of the video. |
2a8d4cb9ecbb487681473a15****8fda |
| UV |
string |
The number of unique visitors. |
1 |
Examples
Success response
JSON format
{
"PageNo": 1,
"RequestId": "4B0BCF9F-2FD5-4817-****-7BEBBE3AF90B\"",
"PageSize": 100,
"TotalNum": 2,
"TopPlayVideos": {
"TopPlayVideoStatis": [
{
"Title": "Alibaba Cloud video",
"VV": "107",
"PlayDuration": "4640369",
"VideoId": "2a8d4cb9ecbb487681473a15****8fda",
"UV": "1"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidBizDate.Malformed | Specified BizDate is malformed. | |
| 400 | InvalidBizDate.BeyondCurrent | BizDate beyond current time. | |
| 400 | InvalidParamter | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.