All Products
Search
Document Center

ApsaraVideo VOD:GetDailyPlayRegionStatis

Last Updated:Jul 30, 2025

This operation retrieves the traffic data for all media assets in a specified region on a specific date. The data is generated from CDN Traffic Logs and represents the traffic consumed by videos. The resulting CSV file contains information such as the date, video ID, domain name, traffic, application ID, and category ID. You can download this file for use in scenarios such as data analytics.

Operation description

  • The endpoint of this operation is available only in the China (Shanghai) region.

  • You can query data generated within the last 90 days. The earliest available data is from April 29, 2025.

  • The traffic data provided by this operation is raw data. To align the data with the billable 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 support 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. The date is in the yyyy-MM-dd format.

Note
  • You can query data only by day.

  • You can query data that is generated in the last year.

2025-03-20

MediaRegion

string

Yes

The ID of the region where the media asset is stored. You can specify this parameter to query the playback data of all audio and video files in a specific 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 parameters

Parameter

Type

Description

Example

object

RequestId

string

The request ID.

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

DailyPlayRegionStatisList

array<object>

The information about the returned CSV file.

object

Date

string

The playback date. The date is in the yyyy-MM-dd format.

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 data exporting of playback data fails on a specific day, the date is returned.

string

The date on which the data exporting failed.

[]

EmptyDates

array

If no playback data is available on a specific day, the date is returned.

string

The date on which no data is available.

[]

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.