DescribeRankingReferer

1. API Description

This API (DescribeRankingReferer) is used to query the ranking of CDN referers. Return the Top 100 Referers.

2. Request Parameters

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

Parameter Name
Required
Type
Description

domain

Yes

String

Accelerated domain

date

Yes

String

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

3. Output Parameterss

Parameter Name
Type
Description

dataSet

Referer 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 Referer Ranking.

POST / HTTP/1.1
Host: console.zenlayer.com/api/v2/cdn
Content-Type: application/json
X-TC-Action: DescribeRankingReferer
<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": [{
            "refer": "-",
            "count": 70,
            "traffic": 274.05
        },
        {
            "refer": "http://testcdn.ddd520.cn/",
            "count": 23,
            "traffic": 1.31
        }]
    }
}

5. Error Codes

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

Last updated