Queries the top N accelerated domain names that are ranked by network traffic. You can query data that was collected within the last 90 days.

Before you call this operation, pay attention to the following considerations:If you do not specify the StartTime and EndTime parameters, the data within the current month is queried by default. If you specify the StartTime and EndTime parameters, the data within the specified time range is queried.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDcdnTopDomainsByFlow

The operation that you want to perform. Set the value to DescribeDcdnTopDomainsByFlow.

StartTime String No 2016-03-01T04:00:00Z

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

EndTime String No 2016-03-14T07:34:00Z

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

The end time must be later than the start time.

Limit Long No 20

The maximum number of domain names to return. Valid values: 1 to 100. Default value: 20.

Response parameters

Parameter Type Example Description
DomainCount Long 68

The total number of accelerated domains under your account.

DomainOnlineCount Long 68

The total number of accelerated domains that are in the Enabled state under your account.

EndTime String 2016-03-14T07:34:00Z

The end of the time range during which the data was collected.

RequestId String 4E09C5D7-E1CF-4CAA-A45E-8727F4C8FD70

The ID of the request.

StartTime String 2016-03-14T06:34:00Z

The beginning of the time range during which the data was collected.

TopDomains Array

The top N domain names ranked by network traffic.

TopDomain
DomainName String example.com

The name of the accelerated domain.

MaxBps Long 22139626

The peak bandwidth.

MaxBpsTime String 2018-11-01T08:10:00Z

The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.

Rank Long 1

The ranking of the domains.

TotalAccess Long 3

The number of visits to the URL that was queried.

TotalTraffic String 123

The total amount of network traffic.

TrafficPercent String 21.686305274906182

The proportion of the network traffic that was consumed for accessing the URL.

Examples

Sample requests

http://dcdn.aliyuncs.com?Action=DescribeDcdnTopDomainsByFlow
&StartTime=2016-03-01T04:00:00Z
&EndTime=2016-03-14T07:34:00Z
&Limit=5
&<Common request parameters>

Sample success responses

XML format

<DescribeDcdnTopDomainsByFlowResponse>
	  <DomainCount>68</DomainCount>
	  <DomainOnlineCount>68</DomainOnlineCount>
	  <RequestId>4E09C5D7-E1CF-4CAA-A45E-8727F4C8FD70</RequestId>
	  <EndTime>2016-03-14T07:34:00Z</EndTime>
	  <TopDomains>
		    <TopDomain>
			      <MaxBps>22139626</MaxBps>
			      <Rank>1</Rank>
			      <TrafficPercent>30.64191989360235</TrafficPercent>
			      <TotalTraffic>2043859876683.9001</TotalTraffic>
			      <TotalAccess>107784230</TotalAccess>
			      <DomainName>example.com</DomainName>
			      <MaxBpsTime>2018-11-01T08:10:00Z</MaxBpsTime>
		    </TopDomain>
		    <TopDomain>
			      <MaxBps>1008772351</MaxBps>
			      <Rank>2</Rank>
			      <TrafficPercent>25.936032624725815</TrafficPercent>
			      <TotalTraffic>1729970466149.2002</TotalTraffic>
			      <TotalAccess>3843128</TotalAccess>
			      <DomainName>example.com</DomainName>
			      <MaxBpsTime>2018-11-01T08:10:00Z</MaxBpsTime>
		    </TopDomain>
		    <TopDomain>
			      <MaxBps>16046911</MaxBps>
			      <Rank>3</Rank>
			      <TrafficPercent>21.686305274906182</TrafficPercent>
			      <TotalTraffic>1446507574551.6</TotalTraffic>
			      <TotalAccess>547567</TotalAccess>
			      <DomainName>example.com</DomainName>
			      <MaxBpsTime>2018-11-01T08:10:00Z</MaxBpsTime>
		    </TopDomain>
		    <TopDomain>
			      <MaxBps>15990893</MaxBps>
			      <Rank>4</Rank>
			      <TrafficPercent>21.261081185428147</TrafficPercent>
			      <TotalTraffic>1418144519687.5</TotalTraffic>
			      <TotalAccess>548380</TotalAccess>
			      <DomainName>example.com</DomainName>
			      <MaxBpsTime>2018-11-01T08:10:00Z</MaxBpsTime>
		    </TopDomain>
		    <TopDomain>
			      <MaxBps>473599</MaxBps>
			      <Rank>5</Rank>
			      <TrafficPercent>0.4308743788055894</TrafficPercent>
			      <TotalTraffic>28739937242.500004</TotalTraffic>
			      <TotalAccess>152150</TotalAccess>
			      <DomainName>ali.ddimg.cn</DomainName>
			      <MaxBpsTime>2018-11-01T08:10:00Z</MaxBpsTime>
		    </TopDomain>
	  </TopDomains>
	  <StartTime>2016-03-01T04:00:00Z</StartTime>
</DescribeDcdnTopDomainsByFlowResponse>

JSON format

{
  "DomainCount": 68,
  "DomainOnlineCount": 68,
  "RequestId": "4E09C5D7-E1CF-4CAA-A45E-8727F4C8FD70",
  "EndTime": "2016-03-14T07:34:00Z",
  "TopDomains": {
    "TopDomain": [
      {
        "MaxBps": 22139626,
        "Rank": 1,
        "TrafficPercent": 30.64191989360235,
        "TotalTraffic": 2043859876683.9001,
        "TotalAccess": 107784230,
        "DomainName": "example.com",
        "MaxBpsTime": "2018-11-01T08:10:00Z"
      },
      {
        "MaxBps": 1008772351,
        "Rank": 2,
        "TrafficPercent": 25.936032624725815,
        "TotalTraffic": 1729970466149.2002,
        "TotalAccess": 3843128,
        "DomainName": "example.com",
        "MaxBpsTime": "2018-11-01T08:10:00Z"
      },
      {
        "MaxBps": 16046911,
        "Rank": 3,
        "TrafficPercent": 21.686305274906182,
        "TotalTraffic": 1446507574551.6,
        "TotalAccess": 547567,
        "DomainName": "example.com",
        "MaxBpsTime": "2018-11-01T08:10:00Z"
      },
      {
        "MaxBps": 15990893,
        "Rank": 4,
        "TrafficPercent": 21.261081185428147,
        "TotalTraffic": 1418144519687.5,
        "TotalAccess": 548380,
        "DomainName": "example.com",
        "MaxBpsTime": "2018-11-01T08:10:00Z"
      },
      {
        "MaxBps": 473599,
        "Rank": 5,
        "TrafficPercent": 0.4308743788055894,
        "TotalTraffic": 28739937242.500004,
        "TotalAccess": 152150,
        "DomainName": "ali.ddimg.cn",
        "MaxBpsTime": "2018-11-01T08:10:00Z"
      }
    ]
  },
  "StartTime": "2016-03-01T04:00:00Z"
}

Error codes

HttpCode Error code Error message Description
400 MissingTimeParameter The StartTime and EndTime must be both specified. The error message returned because the StartTime and EndTime parameters must be specified together.
400 InvalidEndTime.Malformed The specified EndTime is invalid. The error message returned because the format of the specified EndTime parameter is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400 InvalidEndTime.Mismatch The specified EndTime is earlier than the StartTime. The error message returned because the end time is earlier than the start time.
400 InvalidStartTime.ValueNotSupported The specified StartTime is invalid. The error message returned because the specified start time is invalid.

For a list of error codes, visit the API Error Center.