Help Center/ Content Delivery Network/ API Reference/ API/ Analytics/ Querying Operations Report Subscription Tasks by Page
Updated on 2025-09-05 GMT+08:00

Querying Operations Report Subscription Tasks by Page

Function

query subscription task

Calling Method

For details, see Calling APIs.

URI

GET /v1/cdn/statistics/subscription-tasks

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

limit

No

Integer

  • Number of items displayed on each page. If this parameter is left empty or set to 0, the default value 5 is used.

offset

No

Integer

Offset, which is the position where the query starts. The value must be greater than or equal to 0 (default value).

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

total

Integer

Total number of subscription tasks.

data

Array of SubscriptionTask objects

Subscription task.

Table 3 SubscriptionTask

Parameter

Type

Description

id

Long

Subscription task ID.

create_time

Long

Creation time.

update_time

Long

Last update time.

name

String

  • Name of a subscription task.

  • The value contains up to 32 characters, including letters and hyphens (-).

period_type

Integer

  • Type of the subscription task. Possible values:

  • 0: daily report.

  • 1: weekly report.

  • 2: monthly report.

emails

String

Email addresses for receiving operations reports. Email addresses are separated by commas (,).

domain_name

String

List of subscribed domain names, which are separated by commas (.). If this parameter is set to all, operations reports are subscribed to for all domain names under the account.

report_type

String

  • Operations report type. Multiple types are separated by commas (,).

  • 0: access area distribution.

  • 1: country distribution.

  • 2: carrier distribution.

  • 3: domain name rankings (sorted by traffic).

  • 4: popular URLs (sorted by traffic).

  • 5: popular URLs (sorted by the number of requests).

  • 6: popular referers (sorted by traffic).

  • 7: popular referers (sorted by the number of requests).

  • 10: popular origin URLs (sorted by traffic).

  • 11: popular origin URLs (sorted by the number of requests).

  • 13: popular UAs (sorted by traffic).

  • 14: popular UAs (sorted by the number of requests).

Status code: default

Table 4 Response body parameters

Parameter

Type

Description

error

ErrMsg object

Error code and error message.

Table 5 ErrMsg

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Success response

default

Abnormal response

Error Codes

See Error Codes.