全部产品
存储与CDN 数据库 域名与网站(万网) 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网 钉钉智能硬件
CDN

查询域名某天的热门URL列表

更新时间:2017-12-25 10:51:20

DescribeDomainTopUrlVisit

描述

获取加速域名某天内的热门URL列表

不指定StartTime,默认读取前一天的数据。

  • 只支持一个域名,或当前用户下所有域名
  • 最多可获取最近90天的数据

请求参数

参数 类型 必要 描述
Action String 操作接口名,系统规定参数
取值:DescribeDomainTopUrlVisit
DomainName String 只支持一个域名,若参数为空,默认返回所有加速域名合并后数据
StartTime String 获取数据起始时间点,北京时间。
格式为:YYYY-MM-DD
不写默认读取过去24小时数据。

返回参数

名称 类型 描述
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 流量占比

特殊错误码

错误代码 描述 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天

示例

请求示例:

  1. http://cdn.aliyuncs.com?Action=DescribeDomainTopUrlVisit&DomainName=test.com
  2. &StartTime=2015-12-03
  3. &<公共请求参数>

返回示例:

JSON格式

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

XML格式:

  1. <DescribeDomainTopUrlVisitResponse>
  2. <Url300List></Url300List>
  3. <AllUrlList>
  4. <UrlList>
  5. <VisitData>161673</VisitData>
  6. <UrlDetail>http://test.com/nn_live/nn_x64/a0.m3u8</UrlDetail>
  7. <VisitProportion>0.35</VisitProportion>
  8. <Flow>460486880</Flow>
  9. <FlowProportion>0.35</FlowProportion>
  10. </UrlList>
  11. <UrlList>
  12. <VisitData>37</VisitData>
  13. <UrlDetail>http://test.com/nn_live/nn_x64/ZXg9MQ,,/HNJSMPP360.ts</UrlDetail>
  14. <VisitProportion>0.35</VisitProportion>
  15. <Flow>460486880</Flow>
  16. <FlowProportion>0.35</FlowProportion>
  17. </UrlList>
  18. </AllUrlList>
  19. <Url400List>
  20. <UrlList>
  21. <VisitData>1884</VisitData>
  22. <UrlDetail>http://test.com/nn_live/nn_x64/aWQ9SE5KU01QUhbGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8</UrlDetail>
  23. <VisitProportion>0.35</VisitProportion>
  24. <Flow>460486880</Flow>
  25. <FlowProportion>0.35</FlowProportion>
  26. </UrlList>
  27. <UrlList>
  28. <VisitData>1</VisitData>
  29. <UrlDetail>http://test.com/nn_live/nn_x64/aWQ9SEEwODgmpbmRleZPTE,/HNJSMPP360.ts</UrlDetail>
  30. <VisitProportion>0.35</VisitProportion>
  31. <Flow>460486880</Flow>
  32. <FlowProportion>0.35</FlowProportion>
  33. </UrlList>
  34. </Url400List>
  35. <RequestId>64D28B53-5902-409B-94F6-FD46680144FE</RequestId>
  36. <DomainName>test.com</DomainName>
  37. <Url200List>
  38. <UrlList>
  39. <VisitData>161673</VisitData>
  40. <UrlDetail>http://test.com/nn_live/nn_x64/aWQ9SE5KU0bGxfcGNfbGl2ZQ,,/HNJSMPP360.m3u8</UrlDetail>
  41. <VisitProportion>0.35</VisitProportion>
  42. <Flow>460486880</Flow>
  43. <FlowProportion>0.35</FlowProportion>
  44. </UrlList>
  45. <UrlList>
  46. <VisitData>3</VisitData>
  47. <UrlDetail>http://test.com/nn_live/nn_x64/aWQ9SE5KU01QUDMlPTIwMTxMDk5ZXg9MQ,,/HNJSMPP360.ts</UrlDetail>
  48. <VisitProportion>0.35</VisitProportion>
  49. <Flow>460486880</Flow>
  50. <FlowProportion>0.35</FlowProportion>
  51. </UrlList>
  52. </Url200List>
  53. <StartTime>2015-12-03</StartTime>
  54. <Url500List>
  55. <UrlList>
  56. <VisitData>161673</VisitData>
  57. <UrlDetail>http://test.com/nn_live/nn_x64/aWQ9SE5KU0GNfbGl2ZQ,,/HNJSMPP360.m3u8</UrlDetail>
  58. <VisitProportion>0.35</VisitProportion>
  59. <Flow>460486880</Flow>
  60. <FlowProportion>0.35</FlowProportion>
  61. </UrlList>
  62. <UrlList>
  63. <VisitData>3</VisitData>
  64. <UrlDetail>http://test.com/nn_live/nn_x64/aWQ9SE5KU01QUDZXg9MQ,,/HNJSMPP360.ts</UrlDetail>
  65. <VisitProportion>0.35</VisitProportion>
  66. <Flow>460486880</Flow>
  67. <FlowProportion>0.35</FlowProportion>
  68. </UrlList>
  69. </Url500List>
  70. </DescribeDomainTopUrlVisitResponse>
本文导读目录