全部产品

DescribeDcdnDomainTopUrlVisit

更新时间:2019-03-19 15:32:42

获取加速域名某天内的热门URL列表。
不指定StartTime,默认读取前一天的数据。

  • 只支持一个域名。
  • 最多可获取最近90天的数据。

请求参数

参数 类型 必要 描述
Action String 操作接口名,系统规定参数
取值:DescribeDcdnDomainTopUrlVisit
DomainName String 只支持一个域名
StartTime String 开始获取数据的时间点。
格式为:YYYY-MM-DDThh:mm:ssZ,查询某天的数据,建议传YYYY-MM-DDT16:00:00Z
不写默认读取过去24小时数据。
SortBy String 排序方式,支持traf和pv,默认pv。

返回参数

名称 类型 描述
RequestId String 请求ID
DomainName String 加速域名信息
StartTime String 查询指定日期
AllUrlList UrlList[] 全部热门URLlist
Url200List UrlList[] 返回为2xx的Urllist
Url300List UrlList[] 返回为3xx的Urllist
Url400List UrlList[] 返回为4xx的Urllist
Url500List UrlList[] 返回为5xx的Urllist

UrlList

名称 类型 描述
UrlDetail String 完整的Url地址
VisitData String 访问次数
VisitProportion Float 访问占比
Flow String 流量。单位:byte
FlowProportion Float 流量占比

示例

请求示例

  1. http://dcdn.aliyuncs.com?Action=DescribeDcdnDomainTopUrlVisit&DomainName=example.com
  2. &StartTime=2018-10-03T16:00:00Z
  3. &<公共请求参数>

返回示例

JSON格式

  1. {
  2. "AllUrlList": {
  3. "UrlList": [
  4. {
  5. "VisitData": "161673",
  6. "UrlDetail": "http://example.com/nn_live/nn_x64/a0.m3u8",
  7. "VisitProportion": 0.35,
  8. "Flow": "460486880",
  9. "FlowProportion": 0.35
  10. },
  11. {
  12. "VisitData": "37",
  13. "UrlDetail": "http://example.com/nn_live/nn_x64/ZXg9MQ,,/HNJSMPP360.ts",
  14. "VisitProportion": 0.35,
  15. "Flow": "460486880",
  16. "FlowProportion": 0.35
  17. }
  18. ]
  19. },
  20. "Url300List": {
  21. "UrlList": [
  22. {
  23. "VisitData": "161673",
  24. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU0GNfbGl2ZQ,,/HNJSMPP360.m3u8",
  25. "VisitProportion": 0.35,
  26. "Flow": "460486880",
  27. "FlowProportion": 0.35
  28. },
  29. {
  30. "VisitData": "3",
  31. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU01QUDZXg9MQ,,/HNJSMPP360.ts",
  32. "VisitProportion": 0.35,
  33. "Flow": "460486880",
  34. "FlowProportion": 0.35
  35. }
  36. ]
  37. },
  38. "Url400List": {
  39. "UrlList": [
  40. {
  41. "VisitData": "1884",
  42. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU01QUhbGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8",
  43. "VisitProportion": 0.35,
  44. "Flow": "460486880",
  45. "FlowProportion": 0.35
  46. },
  47. {
  48. "VisitData": "1",
  49. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SEEwODgmpbmRleZPTE,/HNJSMPP360.ts",
  50. "VisitProportion": 0.35,
  51. "Flow": "460486880",
  52. "FlowProportion": 0.35
  53. }
  54. ]
  55. },
  56. "RequestId": "64D28B53-5902-409B-94F6-FD46680144FE",
  57. "DomainName": "example.com",
  58. "Url200List": {
  59. "UrlList": [
  60. {
  61. "VisitData": "161673",
  62. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU0bGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8",
  63. "VisitProportion": 0.35,
  64. "Flow": "460486880",
  65. "FlowProportion": 0.35
  66. },
  67. {
  68. "VisitData": "3",
  69. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU01QUDMlPTIwMTxMDk5ZXg9MQ,,/HNJSMPP360.ts",
  70. "VisitProportion": 0.35,
  71. "Flow": "460486880",
  72. "FlowProportion": 0.35
  73. }
  74. ]
  75. },
  76. "StartTime": "2018-10-03T16:00:00Z",
  77. "Url500List": {
  78. "UrlList": [
  79. {
  80. "VisitData": "161673",
  81. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU0GNfbGl2ZQ,,/HNJSMPP360.m3u8",
  82. "VisitProportion": 0.35,
  83. "Flow": "460486880",
  84. "FlowProportion": 0.35
  85. },
  86. {
  87. "VisitData": "3",
  88. "UrlDetail": "http://example.com/nn_live/nn_x64/aWQ9SE5KU01QUDZXg9MQ,,/HNJSMPP360.ts",
  89. "VisitProportion": 0.35,
  90. "Flow": "460486880",
  91. "FlowProportion": 0.35
  92. }
  93. ]
  94. }
  95. }

特殊错误码

错误代码 描述 Http 状态码 语义
Throttling Request was denied due to request throttling. 503 请求被流量控制限制
IllegalOperation Illegal domain, operation is not permitted. 403 非法域名, 无法操作
OperationDenied Your account does not open CDN service yet. 403 未开通CDN服务
OperationDenied Your CDN service is suspended. 403 CDN服务已被停止
InvalidDomain.NotFound The domain provided does not belong to you. 404 域名不存在或不属于当前用户
InvalidDomain.Offline The domain provided is offline. 404 域名已下线
ServiceBusy The specified Domain is configuring, please retry later. 403 域名正在配置中, 请稍后再试
InvalidDomain.Configure_failed Failed to configure the provided domain. 500 域名配置失败
MissingParameter The specified value of parameter StartTime is not valid. 400 缺少StartTime参数
InvalidStartTime.Malformed Specified start time is malformed. 400 StartTime格式错误
InvalidStartTime.ValueNotSupported Specified end time does not math the specified start time. 400 当前时间和StartTime差值超过90天