> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/api-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/api-reference/networking/cdn/analysis/describerankingreferer.md).

# 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        | Array of [RankingRefererData](/api-reference/networking/cdn/datastructure.md#rankingrefererdata) | Referer ranking.                                                                                     |
| requestId      | String                                                                                           | Unique request ID, which is returned with every request. This request ID is needed to locate issues. |

## 4. Code Example

{% tabs %}
{% tab title="Example" %}

1. **Query CDN Referer Ranking.**

```json
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.com",
    "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.com/",
            "count": 23,
            "traffic": 1.31
        }]
    }
}

```

{% endtab %}
{% endtabs %}

## 5. Error Codes

The following includes error codes encountered in business logic. For other error codes, see [Common Error Codes](/api-reference/api-introduction/instruction/commonerrorcode.md).
