All Products
Search
Document Center

ApsaraVideo VOD:GetDailyPlayRegionStatis

Last Updated:Jul 21, 2026

Retrieves the full traffic data of media assets for a specified date and region. The data is generated based on CDN traffic logs and primarily reflects the traffic consumption of videos. The generated CSV file contains the following information: date, video ID, domain name, traffic, application ID, and category ID. You can download the file to your local machine for scenarios such as operational data analytics.

Operation description

  • Currently, the service address of this operation only supports: China (Shanghai).

  • Only data within the past 90 days can be queried (data starts from April 29, 2025).

  • The traffic data provided by this operation is raw traffic data. To align with billing traffic, multiply the data by a TCP coefficient of 1.1.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vod:GetDailyPlayRegionStatis

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Date

string

Yes

The playback date, in days. Format: yyyy-MM-dd.

Note
  • Only daily queries are supported.

  • Only data within the past year can be queried.

2025-03-20

MediaRegion

string

Yes

The media asset region ID. Specify this parameter to perform a filtered query for the playback data of all audio and video files in a specified service region. Valid values:

  • cn-beijing: China (Beijing)

  • cn-shanghai: China (Shanghai)

  • cn-shenzhen: China (Shenzhen)

  • ap-northeast-1: Japan (Tokyo)

  • ap-southeast-1: Singapore

  • ap-southeast-5: Indonesia (Jakarta)

  • eu-central-1: Germany (Frankfurt)

cn-beijing

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

67720502-CDDB-3F1C-8A91-12258*******

DailyPlayRegionStatisList

array<object>

The CSV file information returned.

object

Date

string

The playback date, in days. Format: yyyy-MM-dd.

2025-03-20

FileUrl

string

The download URL of the CSV file.

https://outin-e70266d4ed*******0163e1403e7.oss-cn-shanghai.aliyuncs.com/dataexport/play/cn_hangzhou_20250320_video_traffic.csv?*******

FailDates

array

If the playback data export fails on a specific day, the date is displayed in this field.

string

The date on which the export failed.

[]

EmptyDates

array

If no playback data exists on a specific day, the date is displayed in this field.

string

The date on which no data exists.

[]

Examples

Success response

JSON format

{
  "RequestId": "67720502-CDDB-3F1C-8A91-12258*******",
  "DailyPlayRegionStatisList": [
    {
      "Date": "2025-03-20",
      "FileUrl": "https://outin-e70266d4ed*******0163e1403e7.oss-cn-shanghai.aliyuncs.com/dataexport/play/cn_hangzhou_20250320_video_traffic.csv?*******"
    }
  ],
  "FailDates": [
    "[]"
  ],
  "EmptyDates": [
    "[]"
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.