一、新浪天氣:http://php.weather.sina.com.cn/iframe/index/w_cl.php?code=js&day=0&city=&dfc=1&charset=utf-8javascript
二、中國天氣網:1)http://www.weather.com.cn/data/sk/101010100.html 2)http://www.weather.com.cn/data/cityinfo/101010100.htmlphp
三、中國萬年曆:1)http://wthrcdn.etouch.cn/weather_mini?city=北京 2)http://wthrcdn.etouch.cn/weather_mini?citykey=101010100html
四、和風天氣(天氣服務1天免費試用,城市查詢服務免費,不推薦使用)java
var key='';//自行輸入獲取的key
$.getJSON('https://free-api.heweather.com/v5/now?city=蘇州&key='+key,function (data) { })
五、心知天氣git
官方連接:https://github.com/seniverse/seniverse-api-demos/blob/master/javascript/jsonp.htmlgithub
參考連接:http://www.jianshu.com/p/fa6e5eb6ba86json
六、百度APIapi
var type='jsonp'; var ak='';//自行輸入百度獲取的ak var url='http://api.map.baidu.com/location/ip?callback=JSON_CALLBACK'; //經過IP獲取當前地理位置 $http({ method: type, // 支持jsonp, url: url, params: { // 請求的參數 ak: ak }, }).success(function (locationData) { })