Call DescribeLiveTopDomainsByFlow to retrieve a list of domain names ranked by traffic.
Operation description
If you do not specify StartTime and EndTime, data for the current month is returned by default. To query data for a specific time range, you must specify both StartTime and EndTime.
You can query data from the last 90 days.
QPS limit
The queries per second (QPS) limit for this API is 10 for each user. If you exceed this limit, API calls are throttled. This may impact your business. We recommend that you use this API reasonably.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveTopDomainsByFlow |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| StartTime |
string |
No |
The start of the time range to query. Use the ISO 8601 standard format: YYYY-MM-DDThh:mm:ssZ. The time is in Coordinated Universal Time (UTC). The minimum data granularity is 5 minutes. If you leave this parameter empty, data for the current month is returned. |
2018-03-17T16:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. The end time must be later than the start time. Use the ISO 8601 standard format: YYYY-MM-DDThh:mm:ssZ. The time is in UTC. |
2018-03-20T16:00:00Z |
| Limit |
integer |
No |
The maximum number of domain names to return. The default value is 20. The value can be from 1 to 100. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| DomainOnlineCount |
integer |
The total number of active domain names for your account. |
1 |
| EndTime |
string |
The end of the time range. |
2018-03-20T16:00:00Z |
| StartTime |
string |
The start of the time range. |
2018-03-17T16:00:00Z |
| RequestId |
string |
The request ID. |
33834C3E-388E-5FFE-A8AE-63575035C064 |
| DomainCount |
integer |
The total number of domain names for your account. |
1 |
| TopDomains |
object |
||
| TopDomain |
array<object> |
The list of top domain names. |
|
|
object |
The list of top domain names. |
||
| MaxBps |
integer |
The peak bandwidth. |
22139626 |
| Rank |
integer |
The rank. |
1 |
| TotalAccess |
integer |
The total number of access requests. |
107784230 |
| TrafficPercent |
string |
The traffic percentage. |
30.64191989360235 |
| DomainName |
string |
The domain name. |
example.com |
| TotalTraffic |
string |
The total traffic. |
2043859876683.9001 |
| MaxBpsTime |
string |
The time when the peak bandwidth was reached. |
1457111400 |
Examples
Success response
JSON format
{
"DomainOnlineCount": 1,
"EndTime": "2018-03-20T16:00:00Z",
"StartTime": "2018-03-17T16:00:00Z",
"RequestId": "33834C3E-388E-5FFE-A8AE-63575035C064",
"DomainCount": 1,
"TopDomains": {
"TopDomain": [
{
"MaxBps": 22139626,
"Rank": 1,
"TotalAccess": 107784230,
"TrafficPercent": "30.64191989360235",
"DomainName": "example.com",
"TotalTraffic": "2043859876683.9001",
"MaxBpsTime": "1457111400"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.