> 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/describerankingip.md).

# DescribeRankingIp

## 1. API Description

This API (DescribeRankingIp) is used to query the ranking of CDN access IPs. Return the top 100 client IPs with the most requests.

## 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 [RankingIpData](/api-reference/networking/cdn/datastructure.md#rankingipdata) | IP 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 Access IP Ranking.**

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

Request:
{
    "domain": "www.xxx.com",
    "date": "2024-08-23"
}

Response:
{
    "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
    "response": {
        "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
        "dataSet": [{
            "ip": "12.12.12.12",
            "isp": "dianxin",
            "count": 23,
            "traffic": 302.09
        },
        {
            "ip": "111.7.100.26",
            "isp": "yidong",
            "count": 2,
            "traffic": 0.16
        }]
    }
}

```

{% 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).
