Queries top 100 frequently requested URLs of an accelerated domain name in a specified time range.
- If you do not set StartTime or EndTime, data within the last 24 hours is queried. If you set both StartTime and EndTime, data within the specified time range is queried.
- You can query data collected within the last 90 days.
- You can specify only one domain name in each call.
- You can call this operation up to 10 times per second per account.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDomainTopUrlVisit |
The operation that you want to perform. Set the value to DescribeDomainTopUrlVisit. |
DomainName | String | Yes | example.com |
The accelerated domain name for which you want to query data. If you do not set this parameter, frequently requested URLs of all accelerated domain names of your Alibaba Cloud account are queried. |
StartTime | String | No | 2019-10-04T00:00:00Z |
The start of the time range to query. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. If you want to query data within a specific day, we recommend that you set the value in the yyyy-MM-ddT16:00:00Z format. |
EndTime | String | No | 2019-10-04T16:00:00Z |
The end of the time range to query. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. Note The end time must be later than the start time. The difference between the end time
and the start time cannot exceed seven days.
|
SortBy | String | No | pv |
The method that is used to sort the returned URLs. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
StartTime | String | 2019-10-03T16:00:00Z |
The start of the time range that was queried. |
RequestId | String | 64D28B53-5902-409B-94F6-FD46680144FE |
The ID of the request. |
DomainName | String | example.com |
The accelerated domain name. |
AllUrlList | Array of UrlList |
A list of frequently requested URLs. |
|
UrlList | |||
Flow | String | 460486880 |
The amount of network traffic. (Unit: bytes) |
UrlDetail | String | http://example.com/nn_live/nn_x64/a0.m3u8 |
The complete URL. |
FlowProportion | Float | 0.35 |
The proportion of the amount of network traffic consumed for visiting the web page. |
VisitData | String | 161673 |
The number of visits to the specified path. |
VisitProportion | Float | 0.35 |
The proportion of visits to the web page. |
Url200List | Array of UrlList |
A list of URLs for which 2xx status codes were returned. |
|
UrlList | |||
Flow | String | 460486880 |
The amount of network traffic. (Unit: bytes) |
UrlDetail | String | http://example.com/nn_live/nn_x64/aWQ9SE5KU0bGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8 |
The complete URL. |
FlowProportion | Float | 0.35 |
The proportion of the amount of network traffic consumed for visiting the web page. |
VisitData | String | 161673 |
The number of visits to the specified path. |
VisitProportion | Float | 0.35 |
The proportion of visits to the web page. |
Url300List | Array of UrlList |
A list of URLs for which 3xx status codes were returned. |
|
UrlList | |||
Flow | String | 460486880 |
The amount of network traffic. (Unit: bytes) |
UrlDetail | String | http://example.com/nn_live/nn_x64/a0.m3u8 |
The complete URL. |
FlowProportion | Float | 0.35 |
The proportion of the amount of network traffic consumed for visiting the web page. |
VisitData | String | 161673 |
The number of visits to the URL. |
VisitProportion | Float | 0.35 |
The proportion of visits to the web page. |
Url400List | Array of UrlList |
A list of URLs for which 4xx status codes were returned. |
|
UrlList | |||
Flow | String | 460486880 |
The amount of network traffic. (Unit: bytes) |
UrlDetail | String | http://example.com/nn_live/nn_x64/aWQ9SE5KU01QUhbGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8 |
The complete URL. |
FlowProportion | Float | 0.35 |
The proportion of the amount of network traffic consumed for visiting the web page. |
VisitData | String | 1884 |
The number of visits to the URL. |
VisitProportion | Float | 0.35 |
The proportion of visits to the web page. |
Url500List | Array of UrlList |
A list of URLs for which 5xx status codes were returned. |
|
UrlList | |||
Flow | String | 460486880 |
The amount of network traffic. (Unit: bytes) |
UrlDetail | String | http://example.com/nn_live/nn_x64/aWQ9SE5KU0GNfbGl2ZQ,,/HNJSMPP360.m3u8 |
The complete URL. |
FlowProportion | Float | 0.35 |
The proportion of the amount of network traffic consumed for visiting the web page. |
VisitData | String | 161673 |
The number of visits to the URL. |
VisitProportion | Float | 0.35 |
The proportion of visits to the web page. |
Examples
Sample requests
http://cdn.aliyuncs.com?Action=DescribeDomainTopUrlVisit
&DomainName=example.com
&StartTime=2019-10-04T00:00:00Z
&EndTime=2019-10-04T16:00:00Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDomainTopUrlVisitResponse>
<Url300List>
</Url300List>
<AllUrlList>
<UrlList>
<Flow>9304</Flow>
<VisitProportion>0</VisitProportion>
<VisitData>2</VisitData>
<UrlDetail>http://example.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
<FlowProportion>0</FlowProportion>
</UrlList>
<UrlList>
<Flow>3986</Flow>
<VisitProportion>0</VisitProportion>
<VisitData>1</VisitData>
<UrlDetail>http://example.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
<FlowProportion>0</FlowProportion>
</UrlList>
<UrlList>
<Flow>784</Flow>
<VisitProportion>0</VisitProportion>
<VisitData>1</VisitData>
<UrlDetail>http://example.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
<FlowProportion>0</FlowProportion>
</UrlList>
</AllUrlList>
<Url400List>
<UrlList>
<Flow>3986</Flow>
<VisitProportion>0</VisitProportion>
<VisitData>1</VisitData>
<UrlDetail>http://example.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
<FlowProportion>0</FlowProportion>
</UrlList>
<UrlList>
<Flow>784</Flow>
<VisitProportion>0</VisitProportion>
<VisitData>1</VisitData>
<UrlDetail>http://example.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
<FlowProportion>0</FlowProportion>
</UrlList>
</Url400List>
<RequestId>8E7A2ABF-1BB0-4E46-AE3E-58DB3151080C</RequestId>
<DomainName>example.com</DomainName>
<Url200List>
<UrlList>
<Flow>9304</Flow>
<VisitProportion>0</VisitProportion>
<VisitData>2</VisitData>
<UrlDetail>http://example.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
<FlowProportion>0</FlowProportion>
</UrlList>
</Url200List>
<StartTime>2019-10-04T00:00:00Z</StartTime>
<Url500List>
</Url500List>
</DescribeDomainTopUrlVisitResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Url300List" : {
"UrlList" : [ ]
},
"AllUrlList" : {
"UrlList" : [ {
"Flow" : 9304,
"VisitProportion" : 0,
"VisitData" : 2,
"UrlDetail" : "http://example.com/nn_live/nn_x64/a0.m3u8",
"FlowProportion" : 0
}, {
"Flow" : 3986,
"VisitProportion" : 0,
"VisitData" : 1,
"UrlDetail" : "http://example.com/nn_live/nn_x64/a0.m3u8",
"FlowProportion" : 0
}, {
"Flow" : 784,
"VisitProportion" : 0,
"VisitData" : 1,
"UrlDetail" : "http://example.com/nn_live/nn_x64/a0.m3u8",
"FlowProportion" : 0
} ]
},
"Url400List" : {
"UrlList" : [ {
"Flow" : 3986,
"VisitProportion" : 0,
"VisitData" : 1,
"UrlDetail" : "http://example.com/nn_live/nn_x64/a0.m3u8",
"FlowProportion" : 0
}, {
"Flow" : 784,
"VisitProportion" : 0,
"VisitData" : 1,
"UrlDetail" : "http://example.com/nn_live/nn_x64/a0.m3u8",
"FlowProportion" : 0
} ]
},
"RequestId" : "8E7A2ABF-1BB0-4E46-AE3E-58DB3151080C",
"DomainName" : "example.com",
"Url200List" : {
"UrlList" : [ {
"Flow" : 9304,
"VisitProportion" : 0,
"VisitData" : 2,
"UrlDetail" : "http://example.com/nn_live/nn_x64/a0.m3u8",
"FlowProportion" : 0
} ]
},
"StartTime" : "2019-10-04T00:00:00Z",
"Url500List" : {
"UrlList" : [ ]
}
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The error message returned because the format of the specified end time is invalid. For more information about the time format, see the Request parameters section. |
400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The error message returned because the specified start time is invalid. Rectify the start time and try again. |
400 | InvalidTime.ValueNotSupported | StartTime or EndTime is miss match. | The time range specified by the StartTime and EndTime parameters is invalid. |
For a list of error codes, visit the Error Center.