各位亲爱的用户:
您好!为了给您提供更优质的售后服务,保障您在平台获得更多权益,需要您登录用户中心完成用户认证操作。完成用户认证后,您可在平台顺利购买数据。
若用户未完成用户认证操作,或将影响您的购买体验,望各位用户知悉。
城市月度历史天气
标识:getmonthlymete
- 接口地址:
https://way.jd.com/cstor/getmonthlymete
- 请求方式:
HTTPS GET POST
- 请求示例:
https://way.jd.com/cstor/getmonthlymete?citycode=101010100&year=2006&appkey=您申请的APPKEY
QUERY请求参数
- 公共请求参数
-
名称 类型 必填 示例值 描述 appkey String 是 1 您申请的appkey - 业务请求参数
-
名称 类型 必填 示例值 描述 citycode String 是 101010100 查询的城市编码 year String 是 2006 查询的时间,格式:yyyyMM,范围:1961~2015
返回参数
- 公共返回参数
-
名称 类型 示例值 描述 code string 10000 更多返回参数示例值请参看“错误参照码” charge boolean false 或 true false:不扣费 true:扣费 remain long 1305 数据剩余次数 msg string 查询成功 更多返回参数示例值请参看“错误参照码” result object {...} 数据查询结果 - 业务返回参数
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
info | array | [...] | 信息列表 |
pre | string | 0.7 | 降水量(mm) |
tem_min | string | -13.0 | 最低气温(℃) |
year | number | 2015 | 年份 |
tem_max | string | 5.0 | 最高气温(℃) |
tem_avg | string | -3.5 | 平均气温(℃) |
month | number | 1 | 月份 |
citycode | string | 101010100 | 城市编码 |
rcode | number | 200 | 结果码 |
rdesc | string | Success | 结果描述 |
返回示例值
{"code":"10000","charge":false,"remain":1305,"msg":"查询成功","result":{
"citycode":"101010100",
"rdesc":"Success",
"rcode":200,
"info":
[{
"tem_max":"5.0",
"pre":"0.7",
"tem_min":"-13.0",
"month":1,
"year":2015,
"tem_avg":"-3.5"
},{
"tem_max":"7.1",
"pre":"8.2",
"tem_min":"-11.8",
"month":2,
"year":2015,
"tem_avg":"-1.3"
},{
"tem_max":"15.4",
"pre":"1.6",
"tem_min":"-5.6",
"month":3,
"year":2015,
"tem_avg":"6.3"
},{
"tem_max":"22.0",
"pre":"35.2",
"tem_min":"2.0",
"month":4,
"year":2015,
"tem_avg":"13.5"
},{
"tem_max":"27.5",
"pre":"44.3",
"tem_min":"7.6",
"month":5,
"year":2015,
"tem_avg":"19.3"
},{
"tem_max":"30.8",
"pre":"65.9",
"tem_min":"12.4",
"month":6,
"year":2015,
"tem_avg":"22.5"
},{
"tem_max":"32.1",
"pre":"160.3",
"tem_min":"15.3",
"month":7,
"year":2015,
"tem_avg":"24.8"
},{
"tem_max":"31.8",
"pre":"77.1",
"tem_min":"14.0",
"month":8,
"year":2015,
"tem_avg":"24.1"
},{
"tem_max":"26.3",
"pre":"117.8",
"tem_min":"9.4",
"month":9,
"year":2015,
"tem_avg":"18.4"
},{
"tem_max":"20.3",
"pre":"14.2",
"tem_min":"2.5",
"month":10,
"year":2015,
"tem_avg":"12.0"
},{
"tem_max":"6.9",
"pre":"45.8",
"tem_min":"-5.7",
"month":11,
"year":2015,
"tem_avg":"1.4"
},{
"tem_max":"4.4",
"pre":"2.0",
"tem_min":"-11.1",
"month":12,
"year":2015,
"tem_avg":"-2.5"
}]
}}