Retrieves playback data of an audio or video file on a specified date by media ID (audio or video ID), including the number of unique visitors, average plays per user, total plays, average play duration per user, and total play duration.
Operation description
Currently, this operation is available only in the China (Shanghai) region.
Only playback data collected by ApsaraVideo Player SDK is supported. Traffic statistics for audio-only streams are not supported.
Only data within the last 30 days can be queried.
- Android Player SDK or iOS Player SDK
The Player SDK version is 5.4.9.2 or later.
A License for the Player SDK has been obtained and integrated. For more information, see License management.
The event tracking log reporting feature of the Player SDK is enabled. By default, this feature is enabled in ApsaraVideo Player SDK. For more information, see Create a player for Android and Create a player for iOS.
- Web Player SDK
The Player SDK version is 2.16.0 or later.
A License for Playback Quality Monitoring has been obtained and integrated. Submit the Web Player SDK value-added service application form to apply. For the License integration method, see the
licenseproperty in Web SDK API reference.The event tracking log reporting feature of the Player SDK is enabled. By default, this feature is enabled in ApsaraVideo Player SDK.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribeVodMediaPlayData |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PlayDate |
string |
No |
The playback date. Unit: day. Format: yyyyMMdd. Note
|
20240322 |
| TerminalType |
string |
No |
The terminal type of the Player SDK. Specify this parameter to perform a filtered query for playback data of all audio and video files by terminal type. Valid values:
|
Native |
| Os |
string |
No |
The operating system of the playback device. Specify this parameter to perform a filtered query for playback data of all audio and video files by operating system. Valid values:
|
Android |
| Region |
string |
No |
The service region. Specify this parameter to perform a filtered query for playback data of all audio and video files by service region. Valid values:
|
cn-beijing |
| MediaId |
string |
No |
The media ID, which is the audio or video ID (VideoId). Specify this parameter filtered query playback data for a specific media file. Only one media ID can be specified. You can obtain the media ID by using the following methods:
|
9ae2af636ca6c10412f44891fc**** |
| PageNo |
integer |
Yes |
The page number of the data to return. Specify this parameter to set the page from which data starts to be returned. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Specify this parameter to set the number of entries displayed on each page. Maximum value: 100. |
20 |
| OrderType |
string |
No |
The sort order. This parameter is used together with the
|
ASC |
| OrderName |
string |
No |
The metric name. This parameter is used together with the
|
PlaySuccessVv |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| PageNo |
integer |
The page number of the returned data. |
1 |
| PageSize |
integer |
The number of entries per page. |
20 |
| QoeInfoList |
array<object> |
The list of returned data. |
|
|
object |
The details of the returned data. |
||
| VideoTitle |
string |
The title of the audio or video file. |
Alibaba Cloud VOD video title |
| VideoDuration |
number |
The duration of the audio or video file. Unit: seconds. |
246 |
| MediaId |
string |
The media ID, which is the audio or video ID (VideoId). |
9ae2af636ca6c10412f44891fc**** |
| DAU |
number |
The number of unique visitors for the audio or video file. |
5 |
| PlaySuccessVv |
number |
The total number of plays for the audio or video file. |
20 |
| PlayDurationPerUv |
number |
The average play duration per user for the audio or video file. Unit: seconds. |
120 |
| PlayDuration |
number |
The total play duration for the audio or video file. Unit: seconds. |
2400 |
| PlayPerVv |
number |
The average number of plays per user for the audio or video file. |
4 |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"TotalCount": 1,
"PageNo": 1,
"PageSize": 20,
"QoeInfoList": [
{
"VideoTitle": "Alibaba Cloud VOD video title",
"VideoDuration": 246,
"MediaId": "9ae2af636ca6c10412f44891fc****",
"DAU": 5,
"PlaySuccessVv": 20,
"PlayDurationPerUv": 120,
"PlayDuration": 2400,
"PlayPerVv": 4
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Meter.ParamError | Param Error:%s,Please Check Again. | One or more parameters are invalid. |
| 500 | Meter.ServerInternalError | The Request Processing Has Failed Due To Some Unknown Error. | An internal error occurred. |
| 500 | Meter.DataSourceQueryError | Data Source Error:%s,Please Try Again. | An internal data source error occurred. |
| 403 | Meter.AuthError | Authentication Failed,Please Try Again. | You do not have permissions to perform this operation. |
| 502 | Meter.ReadyTsError | Get ReadyTs Failed,Please Try Again. | The data is not prepared. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.