Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-07-20 11:45:43
You can call this operation to obtain the top IP addresses that accessed specified domain names within a specified time period in a specified day. Up to 200 IP addresses can be returned. Only unique IP addresses that initiated more than 15 requests are included. The statistics data includes the number of requests and the traffic. The data is sorted by the number of requests.
The API request contains the specified directory /2020-06-30/statistics/GetTopIpData, common request headers, and operation-specific request parameters. For more information, see the sample request.
Parameter | Required | Type | Description |
---|---|---|---|
StartTime | Yes | String | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm+0800 format. The time must be in UTC+8. Example: 2016-08-01T21:14+0800. |
EndTime | Yes | String | The end of the time range to query. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm+0800 format. The time must be in UTC+8. The end time must be later than the start time. Example: 2016-08-01T21:14+0800. |
CdnType | Yes | String | The business type. You can specify only one type at a time. Valid values: file, video, and page. |
Domains | No | String | The domain names to query. Separate multiple domain names with commas (,). By default, all domain names of the current account that are online in the specified time period are queried. |
LimitN | No | Long | The maximum number of unique IP addresses to return. Valid values: 1 to 200. Default value: 100. |
SortBy | No | String | Specifies how the data is sorted. Valid values: flow (sort by traffic) and pv (sort by the number of requests). Default value: pv. |
Parameter | Type | Description |
---|---|---|
StartTime | String | The beginning of the time range that is queried. |
EndTime | String | The end of the time range that is queried. |
CdnType | String | The business type. |
Domains | String | The domain names. |
LimitN | Long | The maximum number of unique IP addresses to return. Valid values: 1 to 200. Default value: 100. |
RequestId | String | The ID of the request. A unique request ID is returned for each request. The request ID is required for troubleshooting. |
Datas | IpList[] | The unique IP addresses. |
Parameter | Type | Description |
---|---|---|
Ip | String | The unique IP addresses. |
Pv | Long | The number of requests from the IP address. |
Flow | Long | The traffic from the IP address. |
Sample request
GET method:
GET /2020-06-30/statistics/GetTopIpData?StartTime=2020-09-01T08%3a00%2b0800&EndTime=2020-09-01T08%3a05%2b0800&CdnType=video&LimitN=10&SortBy=flow
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetTopIpData
x-version: 2020-06-30
POST method:
POST /2020-06-30/statistics/GetTopIpData
Host: cdn.api.ksyun.com
X-Amz-Date: date
Authorization:authorization string
x-action: GetTopIpData
x-version: 2020-06-30
Content-Type: application/json
{
"StartTime":"2020-09-01T08:00+0800",
"EndTime":"2020-09-01T08:05+0800",
"CdnType":"video",
"LimitN":10,
"SortBy":"flow"
}
Sample response
{
"StartTime": "2020-09-01T08:00+0800",
"EndTime": "2020-09-01T08:05+0800",
"CdnType": "video",
"LimitN": 10,
"Datas": [
{
"Ip": "1.1.1.1",
"Pv": 243,
"Flow": 160311
}
],
"Domains": "www.test.com",
"RequestId": "e4bcd7fc-e991-4c3b-3839-52d6cbdf20f5",
"SortBy": "flow"
}
Pure Mode