DescribeRankingUrl

1. API Description

This API (DescribeRankingUrl) is used to query the ranking of CDN access URLs. Return the top 100 urls with the most requests.

2. Request Parameters

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

3. Output Parameterss

4. Code Example

  1. Query CDN Access URL Ranking.

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

Request:
{
    "domain": "testcdn.ddd520.cn",
    "date": "2024-08-23"
}

Response:
{
    "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
    "response": {
        "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
        "dataSet": [{
            "url": "http://testcdn.ddd520.cn/test.jpg",
            "count": 60,
            "traffic": 273.99
        },
        {
            "url": "http://testcdn.ddd520.cn/js/nprogress.js",
            "count": 9,
            "traffic": 0.04
        }]
    }
}

5. Error Codes

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

Last updated