各位亲爱的用户:
您好!为了给您提供更优质的售后服务,保障您在平台获得更多权益,需要您登录用户中心完成用户认证操作。完成用户认证后,您可在平台顺利购买数据。
若用户未完成用户认证操作,或将影响您的购买体验,望各位用户知悉。
天气预报Finalcityid版
标识:finalcityid
- 接口地址:
https://way.jd.com/moi/finalcityid
- 请求方式:
HTTPS GET POST
- 请求示例:
https://way.jd.com/moi/finalcityid?cityId=2&appkey=您申请的APPKEY
QUERY请求参数
- 公共请求参数
-
名称 类型 必填 示例值 描述 appkey String 是 1 您申请的appkey - 业务请求参数
-
名称 类型 必填 示例值 描述 cityId String 是 2 cityid值
返回参数
- 公共返回参数
-
名称 类型 示例值 描述 code string 10000 更多返回参数示例值请参看“错误参照码” charge boolean false 或 true false:不扣费 true:扣费 remain long 1305 数据剩余次数 msg string 查询成功 更多返回参数示例值请参看“错误参照码” result object {...} 数据查询结果
返回示例值
{"code":0,"data":{"aqi":{"cityName":"北京市","co":"11","coC":"1.1","no2":"35","no2C":"70.0","o3":"2","o3C":"6.0","pm10":"59","pm10C":"67.0","pm25":"39","pm25C":"27.0","pubtime":"1510135200000","rank":"205\/607","so2":"2","so2C":"6.0","value":"59"},"aqiForecast":[{"date":"2017-11-07","publishTime":"2017-11-07 00:00:00","value":224},{"date":"2017-11-08","publishTime":"2017-11-08 17:00:00","value":54},{"date":"2017-11-09","publishTime":"2017-11-08 18:00:00","value":106},{"date":"2017-11-10","publishTime":"2017-11-08 18:00:00","value":44},{"date":"2017-11-11","publishTime":"2017-11-08 18:00:00","value":67},{"date":"2017-11-12","publishTime":"2017-11-08 18:00:00","value":99},{"date":"2017-11-13","publishTime":"2017-11-08 18:00:00","value":40}],"city":{"cityId":2,"counname":"中国","name":"北京市","pname":"北京市","timezone":"8"},"condition":{"condition":"多云","conditionId":"8","humidity":"50","icon":"31","pressure":"1024","realFeel":"12","sunRise":"2017-11-08 06:50:00","sunSet":"2017-11-08 17:05:00","temp":"10","tips":"天冷了,该加衣服了!","updatetime":"2017-11-08 18:40:00","uvi":"0","windDir":"西风","windLevel":"1","windSpeed":"0.9"},"forecast":[{"conditionDay":"晴","conditionIdDay":"0","conditionIdNight":"30","conditionNight":"晴","moonphase":"WaningGibbous","moonrise":"2017-11-07 20:01:00","moonset":"2017-11-08 10:56:00","predictDate":"2017-11-07","sunrise":"2017-11-07 06:49:00","sunset":"2017-11-07 17:06:00","tempDay":"19","tempNight":"2","updatetime":"2017-11-07 23:10:08","windDirDay":"西北风","windDirNight":"西北风","windLevelDay":"3-4","windLevelNight":"1","windSpeedDay":"6.0","windSpeedNight":"1.0"},{"conditionDay":"多云","conditionIdDay":"1","conditionIdNight":"2","conditionNight":"阴","moonphase":"WaningGibbous","moonrise":"2017-11-08 21:02:00","moonset":"2017-11-09 11:53:00","predictDate":"2017-11-08","sunrise":"2017-11-08 06:50:00","sunset":"2017-11-08 17:05:00","tempDay":"15","tempNight":"2","updatetime":"2017-11-08 18:10:09","windDirDay":"南风","windDirNight":"东南风","windLevelDay":"1","windLevelNight":"1","windSpeedDay":"1.0","windSpeedNight":"1.0"},{"conditionDay":"阴","conditionIdDay":"2","conditionIdNight":"31","conditionNight":"多云","moonphase":"WaningGibbous","moonrise":"2017-11-09 22:06:00","moonset":"2017-11-10 12:41:00","predictDate":"2017-11-09","sunrise":"2017-11-09 06:52:00","sunset":"2017-11-09 17:04:00","tempDay":"13","tempNight":"5","updatetime":"2017-11-08 18:10:09","windDirDay":"西北风","windDirNight":"西北风","windLevelDay":"2","windLevelNight":"2","windSpeedDay":"3.0","windSpeedNight":"3.0"},{"conditionDay":"晴","conditionIdDay":"0","conditionIdNight":"30","conditionNight":"晴","moonphase":"Last","moonrise":"2017-11-10 23:12:00","moonset":"2017-11-11 13:24:00","predictDate":"2017-11-10","sunrise":"2017-11-10 06:53:00","sunset":"2017-11-10 17:03:00","tempDay":"10","tempNight":"-1","updatetime":"2017-11-08 18:10:09","windDirDay":"西北风","windDirNight":"北风","windLevelDay":"4-5","windLevelNight":"4","windSpeedDay":"9.0","windSpeedNight":"7.0"},{"conditionDay":"晴","conditionIdDay":"0","conditionIdNight":"31","conditionNight":"多云","moonphase":"WaningCrescent","moonrise":"None","moonset":"2017-11-11 13:24:00","predictDate":"2017-11-11","sunrise":"2017-11-11 06:54:00","sunset":"2017-11-11 17:02:00","tempDay":"10","tempNight":"0","updatetime":"2017-11-08 18:10:09","windDirDay":"南风","windDirNight":"西北风","windLevelDay":"3","windLevelNight":"3","windSpeedDay":"5.0","windSpeedNight":"5.0"},{"conditionDay":"多云","conditionIdDay":"1","conditionIdNight":"30","conditionNight":"晴","moonphase":"WaningCrescent","moonrise":"2017-11-12 00:17:00","moonset":"2017-11-12 14:01:00","predictDate":"2017-11-12","sunrise":"2017-11-12 06:55:00","sunset":"2017-11-12 17:01:00","tempDay":"11","tempNight":"1","updatetime":"2017-11-08 18:10:09","windDirDay":"西南风","windDirNight":"西北风","windLevelDay":"3","windLevelNight":"3","windSpeedDay":"5.0","windSpeedNight":"5.0"},{"conditionDay":"晴","conditionIdDay":"0","conditionIdNight":"30","conditionNight":"晴","moonphase":"WaningCrescent","moonrise":"2017-11-13 01:22:00","moonset":"2017-11-13 14:34:00","predictDate":"2017-11-13","sunrise":"2017-11-13 06:56:00","sunset":"2017-11-13 17:00:00","tempDay":"12","tempNight":"-2","updatetime":"2017-11-08 18:10:09","windDirDay":"西北风","windDirNight":"北风","windLevelDay":"3-4","windLevelNight":"4","windSpeedDay":"6.0","windSpeedNight":"7.0"},{"conditionDay":"晴","conditionIdDay":"0","conditionIdNight":"30","conditionNight":"晴","moonphase":"WaningCrescent","moonrise":"2017-11-14 02:24:00","moonset":"2017-11-14 15:05:00","predictDate":"2017-11-14","sunrise":"2017-11-14 06:57:00","sunset":"2017-11-14 17:00:00","tempDay":"8","tempNight":"-3","updatetime":"2017-11-08 18:10:09","windDirDay":"西北风","windDirNight":"北风","windLevelDay":"4","windLevelNight":"4","windSpeedDay":"7.0","windSpeedNight":"7.0"},{"conditionDay":"晴","conditionIdDay":"0","conditionIdNight":"30","conditionNight":"晴","moonphase":"WaningCrescent","moonrise":"2017-11-15 03:26:00","moonset":"2017-11-15 15:36:00","predictDate":"201