码迷,mamicode.com
首页 > Windows程序 > 详细

天气预报、查询API接口大全

时间:2018-02-15 16:15:20      阅读:2252      评论:0      收藏:0      [点我收藏+]

标签:pop   html   load   pow   参数   访问   智能   name   direction   

 
天气api最新开放天气预报查询

目录:

  1.  中国天气网

     1.1  实时天气 API 接口

     1.2  当天天气 API接口

     1.3 生活指数 API接口

     1.4 未来五天天气 API 接口(失效)

 2.   开放数据网天气

      2.1 简介

      2.2. 一天天气 API 接口

      2.3 未来五天天气 API 接口

3.   中国天气&开放数据 综合版

    3.1  实时天气

    3.2  当天天气

    3.3 未来五天

    3.4 生活指数

4.  随身云天气API (无天气标志)

    4.1 简介

    4.1  简化版 未来6天天气 API接口

    4.2   详细版 未来6天 天气API接口

5. 新浪天气

    5. 1  简介

    5.2   使用方法

    5.3   天气标志

6.  总结

 

正文:

 

第一节: 中国天气网

    1.1 简介

       中国最权威的天气预报网络平台,很多平台实际上也是用的他们的数据。

        官方网站:http://www.weather.com.cn

     1.2  地方代码获取方法

         它对外提供了有限的免费API接口,通过地方代码来查询,使用前先需要确定地方代码:

         获取城市代码方法: 进入   http://www.weather.com.cn

         在搜索框上输入你要需要获得天气的城市,点击查询,即可在地址栏获得相应城市编号,示范:北京的地方代码:101010100

 

     1.3  实时天气接口

   
         接口示例:  http://www.weather.com.cn/data/sk/101010100.html

     返回格式:

 

 

    {"weatherinfo":{"city":"北京","cityid":"101010100","temp":"23","WD":"东风","WS":"2级","SD":"92%","WSE":"2","time":"09:55","isRadar":"1","Radar":"JC_RADAR_AZ9010_JB"}}

   

      说明:其中 city 是地方名称,cityid是地方代码,temp是当前温度,"WD"是风向,“WS"是风速”,“SD"是湿度,time是更新时间。

 

    1.4 获取当天天气:

        http://www.weather.com.cn/data/cityinfo/101010100.html

 

   返回格式:

 

      weatherinfo":{"city":"北京","cityid":"101010100","temp1":"29℃","temp2":"24℃","weather":"阴转晴","img1":"d2.gif","img2":"n0.gif","ptime":"08:00"}}

  

       注意:其中 img1和img2是天气标志图片,接口格式如下:

                http://m.weather.com.cn/img/c0.gif
                http://m.weather.com.cn/img/b0.gif
          这个图就是天气现象0(晴)的图片,其他天气现象的图片依此类推。c打头的图片是20*20像素的,b打头的是50*46像素的,d打头的是反白的图标,  29*20像素,n打头的是夜间反白图标,29*20像素,注意这里的文件名是两位数字!

 

 

  1.5  生活指数:

        http://www.weather.com.cn/data/zs/101010100.html

      返回格式: 文字较多,这里省略,请点击访问。

 

   1.6 获取未来几天天气

      http://m.weather.com.cn/data/101110101.html(已经失效)

 

     这个是获取未来5天天气的接口,可惜已经失效,不能获取到最新的准确数据。

 

      解决方法是可以采集主站数据,缺点是一旦主页布局修改,就会失效,比如 2014年7月29号网站就改版过一次。

    

2. 开放数据 - k780数据

    2.1 简介

       官方网站:http://www.k780.com

       说明: 数据来自国家气象局天气网,每小时更新一次    

       免费版有每小时点击次数的限制(免费版最多每小时72000次查询)

 

     2.2   获取今日天气

             详细说明:  http://www.k780.com/api/weather.today

 

返回实例:

 

 <?xml version="1.0" encoding="utf-8" ?>

- <root>
  <success>1</success>
- <result>
  <weaid>1</weaid>
  <days>2014-07-30</days>
  <week>星期三</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>29℃/24℃</temperature>
  <humidity>84.2℉/75.2℉</humidity>
  <weather>阴转晴</weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/2.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>29</temp_high>
  <temp_low>24</temp_low>
  <humi_high>84.2</humi_high>
  <humi_low>75.2</humi_low>
  <weatid>3</weatid>
  <weatid1>1</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </result>
  </root>

 

         参数说明:其中 ,wedid 是城市气象编号,与中国天气网编号一致,key和sign是身份验证,注册一个可以换成自己的,上例中的10003是公众帐号,formt是返回格式,支持 json,xml,除了formt不是必须的以外,其他参数都是必须提供的。

 

  比如 我想获得深圳的今日数据:

  第一步: 首先查询深圳的城市代码

           方法1:通过 http://api.k780.com:88/?app=weather.city&format=xml 查询

           方法2:通过 http://www.weather.com.cn 查询,前面已经提到过。

   经查询,深圳的地方代码是 101280601

 

 第二步: 通过地方代码获取今日天气

          深圳的今天天气数据就是:

        http://api.k780.com:88/?app=weather.today&weaid=101280601&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=xml

 

  2.3  获取未来五天

      请求示例(Xml)
 

 返回示例:

 

 <?xml version="1.0" encoding="utf-8" ?>

- <root>
  <success>1</success>
- <result>
- <item_0>
  <weaid>1</weaid>
  <days>2014-07-30</days>
  <week>星期三</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>29℃/24℃</temperature>
  <humidity>84.2℉/75.2℉</humidity>
  <weather>阴转晴</weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/2.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>29</temp_high>
  <temp_low>24</temp_low>
  <humi_high>84.2</humi_high>
  <humi_low>75.2</humi_low>
  <weatid>3</weatid>
  <weatid1>1</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </item_0>
- <item_1>
  <weaid>1</weaid>
  <days>2014-07-31</days>
  <week>星期四</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>31℃/24℃</temperature>
  <humidity>87.8℉/75.2℉</humidity>
  <weather></weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>31</temp_high>
  <temp_low>24</temp_low>
  <humi_high>87.8</humi_high>
  <humi_low>75.2</humi_low>
  <weatid>1</weatid>
  <weatid1>1</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </item_1>
- <item_2>
  <weaid>1</weaid>
  <days>2014-08-01</days>
  <week>星期五</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>33℃/25℃</temperature>
  <humidity>91.4℉/77℉</humidity>
  <weather></weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>33</temp_high>
  <temp_low>25</temp_low>
  <humi_high>91.4</humi_high>
  <humi_low>77</humi_low>
  <weatid>1</weatid>
  <weatid1>1</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </item_2>
- <item_3>
  <weaid>1</weaid>
  <days>2014-08-02</days>
  <week>星期六</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>34℃/24℃</temperature>
  <humidity>93.2℉/75.2℉</humidity>
  <weather></weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>34</temp_high>
  <temp_low>24</temp_low>
  <humi_high>93.2</humi_high>
  <humi_low>75.2</humi_low>
  <weatid>1</weatid>
  <weatid1>1</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </item_3>
- <item_4>
  <weaid>1</weaid>
  <days>2014-08-03</days>
  <week>星期日</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>33℃/25℃</temperature>
  <humidity>91.4℉/77℉</humidity>
  <weather>晴转多云</weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/0.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/1.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>33</temp_high>
  <temp_low>25</temp_low>
  <humi_high>91.4</humi_high>
  <humi_low>77</humi_low>
  <weatid>1</weatid>
  <weatid1>2</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </item_4>
- <item_5>
  <weaid>1</weaid>
  <days>2014-08-04</days>
  <week>星期一</week>
  <cityno>beijing</cityno>
  <citynm>北京</citynm>
  <cityid>101010100</cityid>
  <temperature>33℃/25℃</temperature>
  <humidity>91.4℉/77℉</humidity>
  <weather>多云</weather>
  <weather_icon>http://api.k780.com:88/upload/weather/d/1.gif</weather_icon>
  <weather_icon1>http://api.k780.com:88/upload/weather/d/1.gif</weather_icon1>
  <wind>微风</wind>
  <winp>小于3级</winp>
  <temp_high>33</temp_high>
  <temp_low>25</temp_low>
  <humi_high>91.4</humi_high>
  <humi_low>77</humi_low>
  <weatid>2</weatid>
  <weatid1>2</weatid1>
  <windid>1</windid>
  <winpid>2</winpid>
  </item_5>
  </result>
  </root>

 

   转换方法与前面类似,这里就不需要重复了。

 

3. 综合方案

    3. 1 实时天气

          我们用 :  http://www.weather.com.cn/data/sk/101010100.html

    3.2  今天天气

         2个选择: 

         1.   http://www.weather.com.cn/data/cityinfo/101010100.html 

   

         2.   http://api.k780.com:88/?app=weather.today&weaid=101010100&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=xml

 

     3.3  未来几天天气

           今天天气及未来五天天气 :

         http://api.k780.com:88/?app=weather.future&weaid=101010100&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=xml

   

    3.4    生活指数

             http://www.weather.com.cn/data/zs/101010100.html

           

 

 4. 随身云 天气API接口

    4.1 简介
        这个是官方没有公开的接口,是网络上有人访问中国农历网无意中截取到的,所以不保证稳定性,还有一个缺点是不能获取天气标志图片。
     4.2  简化版接口
      接口示例(北京): http://wthrcdn.etouch.cn/weather_mini?citykey=101010100
      参数citykey就是设置地方代码,和中国天气网的地方代码一样,替换要查询的地方代码即可,下同。
返回示例:

{"desc":"OK","status":1000,"data":{"wendu":"28","ganmao":"相对今天出现了较大幅度降温,较易发生感冒,体质较弱的朋友请注意适当防护。","forecast":[{"fengxiang":"微风","fengli":"小于3级","high":"高温 29℃","type":"阴","low":"低温 24℃","date":"30日星期三"},{"fengxiang":"微风","fengli":"小于3级","high":"高温 31℃","type":"晴","low":"低温 24℃","date":"31日星期四"},{"fengxiang":"微风","fengli":"小于3级","high":"高温 33℃","type":"晴","low":"低温 25℃","date":"1日星期五"},{"fengxiang":"微风","fengli":"小于3级","high":"高温 34℃","type":"晴","low":"低温 24℃","date":"2日星期六"},{"fengxiang":"微风","fengli":"小于3级","high":"高温 33℃","type":"晴","low":"低温 25℃","date":"3日星期天"},{"fengxiang":"微风","fengli":"小于3级","high":"高温 33℃","type":"多云","low":"低温 25℃","date":"4日星期一"},{"fengxiang":"微风","fengli":"小于3级","high":"高温 33℃","type":"多云","low":"低温 25℃","date":"5日星期二"}],"yesterday":{"fl":"小于3级","fx":"微风","high":"高温 29℃","type":"中雨","low":"低温 22℃","date":"29日星期二"},"aqi":"186","city":"北京"}}



    2.  详细版接口
     接口示例: http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100
返回示例:

 
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. - <resp>
  3. <city>北京</city>
  4. <updatetime>16:05</updatetime>
  5. <wendu>28</wendu>
  6. <fengli>2级</fengli>
  7. <shidu>66%</shidu>
  8. <fengxiang>东风</fengxiang>
  9. <sunrise_1>05:10</sunrise_1>
  10. <sunset_1>19:31</sunset_1>
  11. <sunrise_2 />
  12. <sunset_2 />
  13. - <environment>
  14. <aqi>186</aqi>
  15. <pm25>140</pm25>
  16. <suggest>...适量减少户外运动</suggest>
  17. <quality>中度污染</quality>
  18. <MajorPollutants>颗粒物(PM2.5)</MajorPollutants>
  19. <o3>142</o3>
  20. <co>2</co>
  21. <pm10>0</pm10>
  22. <so2>4</so2>
  23. <no2>24</no2>
  24. <time>15:00:00</time>
  25. </environment>
  26. - <yesterday>
  27. <date_1>29日星期二</date_1>
  28. <high_1>高温 29℃</high_1>
  29. <low_1>低温 22℃</low_1>
  30. - <day_1>
  31. <type_1>中雨</type_1>
  32. <fx_1>微风</fx_1>
  33. <fl_1>小于3级</fl_1>
  34. </day_1>
  35. - <night_1>
  36. <type_1>中雨</type_1>
  37. <fx_1>微风</fx_1>
  38. <fl_1>小于3级</fl_1>
  39. </night_1>
  40. </yesterday>
  41. - <forecast>
  42. - <weather>
  43. <date>30日星期三</date>
  44. <high>高温 29℃</high>
  45. <low>低温 24℃</low>
  46. - <day>
  47. <type></type>
  48. <fengxiang>微风</fengxiang>
  49. <fengli>小于3级</fengli>
  50. </day>
  51. - <night>
  52. <type></type>
  53. <fengxiang>微风</fengxiang>
  54. <fengli>小于3级</fengli>
  55. </night>
  56. </weather>
  57. - <weather>
  58. <date>31日星期四</date>
  59. <high>高温 31℃</high>
  60. <low>低温 24℃</low>
  61. - <day>
  62. <type></type>
  63. <fengxiang>微风</fengxiang>
  64. <fengli>小于3级</fengli>
  65. </day>
  66. - <night>
  67. <type></type>
  68. <fengxiang>微风</fengxiang>
  69. <fengli>小于3级</fengli>
  70. </night>
  71. </weather>
  72. - <weather>
  73. <date>1日星期五</date>
  74. <high>高温 33℃</high>
  75. <low>低温 25℃</low>
  76. - <day>
  77. <type></type>
  78. <fengxiang>微风</fengxiang>
  79. <fengli>小于3级</fengli>
  80. </day>
  81. - <night>
  82. <type></type>
  83. <fengxiang>微风</fengxiang>
  84. <fengli>小于3级</fengli>
  85. </night>
  86. </weather>
  87. - <weather>
  88. <date>2日星期六</date>
  89. <high>高温 34℃</high>
  90. <low>低温 24℃</low>
  91. - <day>
  92. <type></type>
  93. <fengxiang>微风</fengxiang>
  94. <fengli>小于3级</fengli>
  95. </day>
  96. - <night>
  97. <type></type>
  98. <fengxiang>微风</fengxiang>
  99. <fengli>小于3级</fengli>
  100. </night>
  101. </weather>
  102. - <weather>
  103. <date>3日星期天</date>
  104. <high>高温 33℃</high>
  105. <low>低温 25℃</low>
  106. - <day>
  107. <type></type>
  108. <fengxiang>微风</fengxiang>
  109. <fengli>小于3级</fengli>
  110. </day>
  111. - <night>
  112. <type>多云</type>
  113. <fengxiang>微风</fengxiang>
  114. <fengli>小于3级</fengli>
  115. </night>
  116. </weather>
  117. - <weather>
  118. <date>4日星期一</date>
  119. <high>高温 33℃</high>
  120. <low>低温 25℃</low>
  121. - <day>
  122. <type>多云</type>
  123. <fengxiang>微风</fengxiang>
  124. <fengli>小于3级</fengli>
  125. </day>
  126. - <night>
  127. <type>多云</type>
  128. <fengxiang>微风</fengxiang>
  129. <fengli>小于3级</fengli>
  130. </night>
  131. </weather>
  132. - <weather>
  133. <date>5日星期二</date>
  134. <high>高温 33℃</high>
  135. <low>低温 25℃</low>
  136. - <day>
  137. <type>多云</type>
  138. <fengxiang>微风</fengxiang>
  139. <fengli>小于3级</fengli>
  140. </day>
  141. - <night>
  142. <type>多云</type>
  143. <fengxiang>微风</fengxiang>
  144. <fengli>小于3级</fengli>
  145. </night>
  146. </weather>
  147. </forecast>
  148. - <zhishus>
  149. - <zhishu>
  150. <name>感冒指数</name>
  151. <value>较易发</value>
  152. <detail>较易发生感冒,体质较弱的朋友请注意适当防护。</detail>
  153. </zhishu>
  154. - <zhishu>
  155. <name>紫外线指数</name>
  156. <value></value>
  157. <detail>紫外线强度较弱。</detail>
  158. </zhishu>
  159. - <zhishu>
  160. <name>穿衣指数</name>
  161. <value></value>
  162. <detail>天气热,建议着短裙、短裤、短薄外套、T恤等夏季服装。</detail>
  163. </zhishu>
  164. - <zhishu>
  165. <name>舒适度</name>
  166. <value>较舒适</value>
  167. <detail>白天以阴或多云天气为主。</detail>
  168. </zhishu>
  169. - <zhishu>
  170. <name>洗车指数</name>
  171. <value>不宜</value>
  172. <detail>不宜洗车,路面积水较多,不宜擦洗汽车...</detail>
  173. </zhishu>
  174. - <zhishu>
  175. <name>旅游指数</name>
  176. <value>适宜</value>
  177. <detail>天气较好,温度适宜,总体来说还是好天气哦...</detail>
  178. </zhishu>
  179. - <zhishu>
  180. <name>运动指数</name>
  181. <value>较不宜</value>
  182. <detail>阴天,且天气较热,请减少运动时间并降低运动强度。</detail>
  183. </zhishu>
  184. - <zhishu>
  185. <name>晨练指数</name>
  186. <value>较适宜</value>
  187. <detail>早晨气象条件较适宜晨练...</detail>
  188. </zhishu>
  189. - <zhishu>
  190. <name>约会指数</name>
  191. <value>较适宜</value>
  192. <detail>虽然天空有些阴沉,但情侣们可以放心外出...</detail>
  193. </zhishu>
  194. - <zhishu>
  195. <name>逛街指数</name>
  196. <value>适宜</value>
  197. <detail>阴天,在这种天气里去逛街,省去了涂防晒霜...</detail>
  198. </zhishu>
  199. - <zhishu>
  200. <name>晾晒指数</name>
  201. <value>不太适宜</value>
  202. <detail>天气阴沉,请尽量选择通风的地点。</detail>
  203. </zhishu>
  204. - <zhishu>
  205. <name>雨伞指数</name>
  206. <value>不带伞</value>
  207. <detail>阴天,但降水概率很低,无须带雨伞。</detail>
  208. </zhishu>
  209. </zhishus>
  210. </resp>
  211. - <!-- 127.0.0.1(127.0.0.1):48457 ; 127.0.0.1:8080
  212. -->

5. 新浪天气接口

    接口示例:

        http://php.weather.sina.com.cn/xml.php?city=深圳&password=DJOYnieT8234jlsK&day=0

 

     其中,city后是城市名称。Password固定,Day为0表示当天天气,1表示第二天的天气,2表示第三天的天气,以此类推,最大为4

 

返回示例:

 

 
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2.  
  3. - <!--
  4. published at 2014-07-30 15:18:36
  5. --> f%28clean%29%3B
  6. - <Profiles>
  7. - <Weather>
  8. <city>深圳</city>
  9. <status1>多云</status1>
  10. <status2>多云</status2>
  11. <figure1>duoyun</figure1>
  12. <figure2>duoyun</figure2>
  13. <direction1>无持续风向</direction1>
  14. <direction2>无持续风向</direction2>
  15. <power1>≤3</power1>
  16. <power2>≤3</power2>
  17. <temperature1>34</temperature1>
  18. <temperature2>27</temperature2>
  19. <ssd>8</ssd>
  20. <tgd1>31</tgd1>
  21. <tgd2>31</tgd2>
  22. <zwx>1</zwx>
  23. <ktk>2</ktk>
  24. <pollution>3</pollution>
  25. <xcz>4</xcz>
  26. <zho />
  27. <diy />
  28. <fas />
  29. <chy>1</chy>
  30. <zho_shuoming>暂无</zho_shuoming>
  31. <diy_shuoming>暂无</diy_shuoming>
  32. <fas_shuoming>暂无</fas_shuoming>
  33. <chy_shuoming>短袖衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫</chy_shuoming>
  34. <pollution_l>轻度</pollution_l>
  35. <zwx_l>最弱</zwx_l>
  36. <ssd_l>较热</ssd_l>
  37. <fas_l>暂无</fas_l>
  38. <zho_l>暂无</zho_l>
  39. <chy_l>薄短袖类</chy_l>
  40. <ktk_l>适宜开启(制冷)</ktk_l>
  41. <xcz_l>不太适宜</xcz_l>
  42. <diy_l>暂无</diy_l>
  43. <pollution_s>对空气污染物扩散无明显影响</pollution_s>
  44. <zwx_s>紫外线最弱</zwx_s>
  45. <ssd_s>户外活动不适宜在中午前后展开。</ssd_s>
  46. <ktk_s>适宜开启空调</ktk_s>
  47. <xcz_s>洗车后未来1-2天内有降水、大风或沙尘天气,不太适宜洗车</xcz_s>
  48. <gm>2</gm>
  49. <gm_l>易发期</gm_l>
  50. <gm_s>天气闷热,注意预防热伤风;</gm_s>
  51. <yd>5</yd>
  52. <yd_l>不适宜</yd_l>
  53. <yd_s>天气闷热,不适宜户外运动;</yd_s>
  54. <savedate_weather>2014-07-30</savedate_weather>
  55. <savedate_life>2014-07-30</savedate_life>
  56. <savedate_zhishu>2014-07-30</savedate_zhishu>
  57. </Weather>
  58. </Profiles>
 

 图片格式:

         figure1和figure2标签分别代表天气的白天和夜间标志,根据下面的规则转换为具体的路径:

   

 多云的78*78 小图:

         白天: http://php.weather.sina.com.cn/images/yb3/78_78/duoyun_0.png 

         夜间: http://php.weather.sina.com.cn/images/yb3/78_78/duoyun_1.png

  多云的 180*180 大图:
          白天:http://php.weather.sina.com.cn/images/yb3/180_180/duoyun_0.png
          夜间:http://php.weather.sina.com.cn/images/yb3/180_180/duoyun_1.png

 
 云聚: http://api.36wu.com
 实时天气:http://api.36wu.com/Weather/GetWeather?city=%E5%8C%97%E4%BA%AC&output=xml
 一周天气: http://api.36wu.com/Weather/GetMoreWeather?city=%E5%8C%97%E4%BA%AC&output=xml
 智能IP一周: http://api.36wu.com/Weather/GetMoreWeatherByIp?city=%E5%8C%97%E4%BA%AC&output=xml

天气预报、查询API接口大全

标签:pop   html   load   pow   参数   访问   智能   name   direction   

原文地址:https://www.cnblogs.com/jueyushanlang/p/8449558.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!