全部产品
存储与CDN 数据库 安全 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 阿里云办公 培训与认证 物联网

获取地区流量数据

更新时间:2017-07-20 10:01:12

描述

获取用户当前自然月内每个地区的流量数据

请求参数

名称 类型 是否必须 描述
Action String 系统参数,取值: GetTrafficByRegion

返回参数

名称 类型 描述
TrafficDataList TrafficData[] 数据列表

数据类型TrafficData

名称 类型 描述
Name String 地区名称
Traffic Long 流量数据

特定错误码

ErrorCode 错误码 HTTP 状态 语义
101013134 200 域名不合法

示例

请求示例

  1. http://pcdn.aliyuncs.com/?SignatureVersion=1.0&Action=GetTrafficByRegion&Format=JSON&SignatureNonce=f56e3411-4b5e-4d51-9ab1-78ca76e90019&Version=2017-04-11&AccessKeyId=LTAIHB6hAhgmlYBP&Signature=eI4eChRHWobwKhDcoynmnAkta4A%3D&SignatureMethod=HMAC-SHA1&RegionId=cn-hangzhou&Timestamp=2017-05-31T10%3A55%3A49Z&<公共参数>

返回示例JSON格式:

  1. {
  2. "TrafficDataList": {
  3. "TrafficData": [
  4. {
  5. "Name": "北京",
  6. "Traffic": 448096774168859
  7. },
  8. {
  9. "Name": "天津",
  10. "Traffic": 149046039126012
  11. },
  12. {
  13. "Name": "河北",
  14. "Traffic": 311633084563883
  15. },
  16. {
  17. "Name": "山西",
  18. "Traffic": 111913357608613
  19. },
  20. {
  21. "Name": "内蒙古",
  22. "Traffic": 121310599233230
  23. },
  24. {
  25. "Name": "辽宁",
  26. "Traffic": 356807056403655
  27. },
  28. {
  29. "Name": "吉林",
  30. "Traffic": 151925345175750
  31. },
  32. {
  33. "Name": "黑龙江",
  34. "Traffic": 141110412597382
  35. },
  36. {
  37. "Name": "上海",
  38. "Traffic": 532977262961283
  39. },
  40. {
  41. "Name": "江苏",
  42. "Traffic": 1253060710817965
  43. },
  44. {
  45. "Name": "浙江",
  46. "Traffic": 1257256406683929
  47. },
  48. {
  49. "Name": "安徽",
  50. "Traffic": 334797729767759
  51. },
  52. {
  53. "Name": "福建",
  54. "Traffic": 566841917282337
  55. },
  56. {
  57. "Name": "江西",
  58. "Traffic": 272442583002765
  59. },
  60. {
  61. "Name": "山东",
  62. "Traffic": 821863346319563
  63. },
  64. {
  65. "Name": "河南",
  66. "Traffic": 379985564854609
  67. },
  68. {
  69. "Name": "湖北",
  70. "Traffic": 456205987172989
  71. },
  72. {
  73. "Name": "湖南",
  74. "Traffic": 328102608958956
  75. },
  76. {
  77. "Name": "广东",
  78. "Traffic": 2191515252948832
  79. },
  80. {
  81. "Name": "广西",
  82. "Traffic": 445799095250735
  83. },
  84. {
  85. "Name": "海南",
  86. "Traffic": 66774008061768
  87. },
  88. {
  89. "Name": "重庆",
  90. "Traffic": 193123106090999
  91. },
  92. {
  93. "Name": "四川",
  94. "Traffic": 498112097201725
  95. },
  96. {
  97. "Name": "贵州",
  98. "Traffic": 100434438057521
  99. },
  100. {
  101. "Name": "云南",
  102. "Traffic": 303816561733595
  103. },
  104. {
  105. "Name": "西藏",
  106. "Traffic": 18238481216618
  107. },
  108. {
  109. "Name": "陕西",
  110. "Traffic": 231890693493741
  111. },
  112. {
  113. "Name": "甘肃",
  114. "Traffic": 110097638533238
  115. }
  116. ]
  117. },
  118. "RequestId": "26CF81F8-18F5-4F93-A1D6-33AAA592CF56",
  119. "Code": 0
  120. }

XML格式

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <GetTrafficByRegionResponse>
  3. <TrafficDataList>
  4. <TrafficData>
  5. <Name>北京</Name>
  6. <Traffic>448096774168859</Traffic>
  7. </TrafficData>
  8. <TrafficData>
  9. <Name>天津</Name>
  10. <Traffic>149046039126012</Traffic>
  11. </TrafficData>
  12. <TrafficData>
  13. <Name>河北</Name>
  14. <Traffic>311633084563883</Traffic>
  15. </TrafficData>
  16. <TrafficData>
  17. <Name>山西</Name>
  18. <Traffic>111913357608613</Traffic>
  19. </TrafficData>
  20. <TrafficData>
  21. <Name>内蒙古</Name>
  22. <Traffic>121310599233230</Traffic>
  23. </TrafficData>
  24. <TrafficData>
  25. <Name>辽宁</Name>
  26. <Traffic>356807056403655</Traffic>
  27. </TrafficData>
  28. <TrafficData>
  29. <Name>吉林</Name>
  30. <Traffic>151925345175750</Traffic>
  31. </TrafficData>
  32. <TrafficData>
  33. <Name>黑龙江</Name>
  34. <Traffic>141110412597382</Traffic>
  35. </TrafficData>
  36. <TrafficData>
  37. <Name>上海</Name>
  38. <Traffic>532977262961283</Traffic>
  39. </TrafficData>
  40. <TrafficData>
  41. <Name>江苏</Name>
  42. <Traffic>1253060710817965</Traffic>
  43. </TrafficData>
  44. <TrafficData>
  45. <Name>浙江</Name>
  46. <Traffic>1257256406683929</Traffic>
  47. </TrafficData>
  48. <TrafficData>
  49. <Name>安徽</Name>
  50. <Traffic>334797729767759</Traffic>
  51. </TrafficData>
  52. <TrafficData>
  53. <Name>福建</Name>
  54. <Traffic>566841917282337</Traffic>
  55. </TrafficData>
  56. <TrafficData>
  57. <Name>江西</Name>
  58. <Traffic>272442583002765</Traffic>
  59. </TrafficData>
  60. <TrafficData>
  61. <Name>山东</Name>
  62. <Traffic>821863346319563</Traffic>
  63. </TrafficData>
  64. <TrafficData>
  65. <Name>河南</Name>
  66. <Traffic>379985564854609</Traffic>
  67. </TrafficData>
  68. <TrafficData>
  69. <Name>湖北</Name>
  70. <Traffic>456205987172989</Traffic>
  71. </TrafficData>
  72. <TrafficData>
  73. <Name>湖南</Name>
  74. <Traffic>328102608958956</Traffic>
  75. </TrafficData>
  76. <TrafficData>
  77. <Name>广东</Name>
  78. <Traffic>2191515252948832</Traffic>
  79. </TrafficData>
  80. <TrafficData>
  81. <Name>广西</Name>
  82. <Traffic>445799095250735</Traffic>
  83. </TrafficData>
  84. <TrafficData>
  85. <Name>海南</Name>
  86. <Traffic>66774008061768</Traffic>
  87. </TrafficData>
  88. <TrafficData>
  89. <Name>重庆</Name>
  90. <Traffic>193123106090999</Traffic>
  91. </TrafficData>
  92. <TrafficData>
  93. <Name>四川</Name>
  94. <Traffic>498112097201725</Traffic>
  95. </TrafficData>
  96. <TrafficData>
  97. <Name>贵州</Name>
  98. <Traffic>100434438057521</Traffic>
  99. </TrafficData>
  100. <TrafficData>
  101. <Name>云南</Name>
  102. <Traffic>303816561733595</Traffic>
  103. </TrafficData>
  104. <TrafficData>
  105. <Name>西藏</Name>
  106. <Traffic>18238481216618</Traffic>
  107. </TrafficData>
  108. <TrafficData>
  109. <Name>陕西</Name>
  110. <Traffic>231890693493741</Traffic>
  111. </TrafficData>
  112. <TrafficData>
  113. <Name>甘肃</Name>
  114. <Traffic>110097638533238</Traffic>
  115. </TrafficData>
  116. </TrafficDataList>
  117. <RequestId>5F949A3F-850B-4139-B666-638F563BE843</RequestId>
  118. <Code>0</Code>
  119. </GetTrafficByRegionResponse>
本文导读目录