DescribeRankingUv

1. API Description

This API (DescribeRankingUv) is used to query the ranking of CDN UVs (Unique Visitors).

2. Request Parameters

The following table lists the required request parameters for the API:

Parameter NameRequiredTypeDescription

date

Yes

String

Date, e.g., 2022-09-21

3. Output Parameterss

Parameter NameTypeDescription

dataSet

Array of RankingUvData

UV ranking.

requestId

String

Unique request ID, which is returned with every request. This request ID is needed to locate issues.

4. Code Example

  1. Query CDN UV Ranking.

POST / HTTP/1.1
Host: console.zenlayer.com/api/v2/cdn
Content-Type: application/json
X-TC-Action: DescribeRankingUv
<Common Request Params>

Request:
{
    "date": "2024-08-23"
}

Response:
{
    "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
    "response": {
        "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
        "dataSet": [{
            "domain": "testcdn.ddd520.cn",
            "count": 40,
            "traffic": 326.99
        },
        {
            "domain": "geforce.cn",
            "count": 1,
            "traffic": 1.27
        }]
    }
}

5. Error Codes

The following includes error codes encountered in business logic. For other error codes, see Common Error Codes.

Last updated