Mengambil statistik pemutaran harian total dalam rentang waktu tertentu, termasuk jumlah total pemutaran, jumlah total penonton unik, durasi pemutaran total, dan distribusi durasi pemutaran.
Deskripsi operasi
Saat ini, wilayah layanan yang didukung hanya China (Shanghai).
Hanya data pemutaran dari SDK Pemutar Video ApsaraVideo yang didukung.
Berdasarkan UTC+8, statistik pemutaran untuk hari sebelumnya dihasilkan pada pukul 09:00 setiap hari.
Data setelah 2018-01-01 dapat dikueri. Rentang waktu maksimum antara waktu mulai dan waktu akhir adalah 180 hari.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribePlayUserTotal |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
Waktu mulai kueri. Tentukan waktu dalam format yyyy-MM-ddTHH:mm:ssZ (UTC). |
2016-06-29T13:00:00Z |
| EndTime |
string |
Yes |
Waktu akhir kueri. Tentukan waktu dalam format yyyy-MM-ddTHH:mm:ssZ (UTC). Catatan
Waktu akhir harus lebih lambat daripada waktu mulai. Rentang waktu maksimum antara waktu mulai dan waktu akhir adalah 180 hari. |
2016-06-30T13:00:00Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
1FAFB884-D5A7-47D1-****-8928AA9C8720 |
| UserPlayStatisTotals |
object |
||
| UserPlayStatisTotal |
array<object> |
Statistik pemutaran total harian. |
|
|
array<object> |
|||
| Date |
string |
The playback date in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2016-06-30T13:00:00Z |
| PlayDuration |
string |
The total playback duration. Unit: milliseconds. |
9340070 |
| PlayRange |
string |
The playback duration distribution. |
"<=1m:74.3%;>1<=5m:22.8%;>5<=10m:1.0%;>10<=15m:1.0%;>15<=30m:1.0%" |
| VV |
object |
The total play count statistics. |
|
| Flash |
string |
The total number of plays on the Flash player. |
2 |
| iOS |
string |
The total number of plays on the iOS player. |
0 |
| HTML5 |
string |
The total number of plays on the HTML5 player. |
2 |
| Android |
string |
The total number of plays on the Android player. |
161 |
| UV |
object |
The total unique viewer statistics. |
|
| Flash |
string |
The total number of unique viewers on the Flash player. |
1 |
| iOS |
string |
The total number of unique viewers on the iOS player. |
0 |
| HTML5 |
string |
The total number of unique viewers on the HTML5 player. |
1 |
| Android |
string |
The total number of unique viewers on the Android player. |
2 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1FAFB884-D5A7-47D1-****-8928AA9C8720",
"UserPlayStatisTotals": {
"UserPlayStatisTotal": [
{
"Date": "2016-06-30T13:00:00Z",
"PlayDuration": "9340070",
"PlayRange": "\"<=1m:74.3%;>1<=5m:22.8%;>5<=10m:1.0%;>10<=15m:1.0%;>15<=30m:1.0%\"",
"VV": {
"Flash": "2",
"iOS": "0",
"HTML5": "2",
"Android": "161"
},
"UV": {
"Flash": "1",
"iOS": "0",
"HTML5": "1",
"Android": "2"
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The start time is in an invalid format. |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The end time is in an invalid format. |
| 400 | InvalidEndTime.BeyondCurrent | EndTime beyond current time. | |
| 400 | InvalidParamter | %s | |
| 400 | InvalidEndTime.Mismatch | StartTime or EndTime is mismatch. | The start time and end time do not match. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.