Updated on 2025-11-27 GMT+08:00

Querying Top Path Details

Function

This API is used to query top path details.

Calling Method

For details, see Calling APIs.

URI

GET /v1.0/cdn/statistics/top-path

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

start_time

Yes

Long

Start timestamp of the query. Only the timestamp of 00:00:00 is allowed.

end_time

Yes

Long

End timestamp of the query. Only the timestamp of 00:00:00 is allowed.

domain_name

Yes

String

Domain name list. Use commas (,) to separate multiple domain names, for example, www.test1.com,www.test2.com.

all indicates that all domain names are queried. If no data is available for a domain name within the query period, no information about the domain name is returned.

stat_type

Yes

String

  • Statistics types. Possible values: flux (traffic) and req_num (total requests).

service_area

No

String

Service area. Possible values: mainland_china (Chinese mainland), outside_mainland_china (outside the Chinese mainland), and global (default value).

user_domain_id

No

String

Domain ID of the domain name's owner.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

top_path_summary

Array of TopPathSummary objects

Detailed data.

Table 3 TopPathSummary

Parameter

Type

Description

path

String

Path value.

value

Long

Return value of a query. Traffic unit: byte.

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

Error response.

Error Codes

See Error Codes.