Retrieves playback data for an audio or video file on a specified date using its media ID. The data includes the number of unique visitors, average playback count per user, total playback count, average playback duration per user, and total playback duration.
Operation description
The endpoint for this operation is available only in the China (Shanghai) region.
This operation collects playback data only from ApsaraVideo Player SDK. Traffic statistics for audio-only files are not supported.
You can query data from the last 30 days only.
- ApsaraVideo Player SDK for Android or iOS
The SDK version is 5.4.9.2 or later.
A license for the player SDK has been obtained and configured. For more information, see License management.
The instrumentation log reporting feature of the player SDK is enabled. This feature is enabled by default. For more information, see Create a player for Android and Create a player for iOS.
- ApsaraVideo Player SDK for Web
The SDK version is 2.16.0 or later.
A license for the Playback Quality Monitoring value-added service has been requested and configured. To request the license, fill out the ApsaraVideo Player SDK for Web Value-added Service Request form. For information about how to configure the license, see the
licenseproperty in Web client API reference.The instrumentation log reporting feature of the player SDK is enabled. This feature is enabled by default.
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 in the yyyyMMdd format. Note
|
20240322 |
| TerminalType |
string |
No |
The type of terminal that uses the player SDK. Use this parameter to query playback data for a specific terminal type. Valid values:
|
Native |
| Os |
string |
No |
The operating system of the client. Use this parameter to query playback data for a specific operating system. Valid values:
|
Android |
| Region |
string |
No |
The service region. Use this parameter to query playback data for a specific service region. Valid values:
|
cn-beijing |
| MediaId |
string |
No |
The ID of the media asset. This is the same as the audio or video ID (VideoId). Use this parameter to query the playback data of a specific media asset. You can specify only one media ID. You can obtain the media ID in one of the following ways:
|
9ae2af636ca6c10412f44891fc**** |
| PageNo |
integer |
Yes |
The number of the page to return. |
1 |
| PageSize |
integer |
Yes |
The number of entries to return on each page. The maximum value is 100. |
20 |
| OrderType |
string |
No |
The sort order. This parameter must be used with the
|
ASC |
| OrderName |
string |
No |
The metric for sorting. This parameter must be used 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 returned entries. |
1 |
| PageNo |
integer |
The page number of the returned data. |
1 |
| PageSize |
integer |
The number of entries returned on each page. |
20 |
| QoeInfoList |
array<object> |
The list of returned data. |
|
|
object |
The details of the returned data. |
||
| VideoTitle |
string |
The name of the audio or video file. |
阿里云VOD视频标题 |
| VideoDuration |
number |
The duration of the audio or video file, in 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 playbacks for the audio or video file. |
20 |
| PlayDurationPerUv |
number |
The average playback duration per user for the audio or video file, in seconds. |
120 |
| PlayDuration |
number |
The total playback duration for the audio or video file, in seconds. |
2400 |
| PlayPerVv |
number |
The average number of playbacks 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": "阿里云VOD视频标题",
"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.