国家气象局提供的天气预报接口
http://www.weather.com.cn/data/sk/101010100.html
http://www.weather.com.cn/data/cityinfo/101010100.html
http://m.weather.com.cn/data/101010100.html (不稳定)
百度
http://apistore.baidu.com/apiworks/servicedetail/478.html
先申请apikey
新浪天气预报API
http://php.weather.sina.com.cn/xml.php?city=北京&password=DJOYnieT8234jlsK&day=0
其中,city后的城市转码。
Password固定
http://www.weather.com.cn/data/sk/101010100.html
http://www.weather.com.cn/data/cityinfo/101010100.html
http://m.weather.com.cn/data/101010100.html (不稳定)
百度
http://apistore.baidu.com/apiworks/servicedetail/478.html
先申请apikey
新浪天气预报API
http://php.weather.sina.com.cn/xml.php?city=北京&password=DJOYnieT8234jlsK&day=0
其中,city后的城市转码。
Password固定
Day为0表示当天天气,1表示第二天的天气,2表示第三天的天气,以此类推,最大为4
accuweather
http://apidev.accuweather.com/developers/