分享几个好用的天气API
腾讯接口
天气(各城市排行)
http://weather.gtimg.cn/aqi/cityrank.json
城市ID
http://mat1.gtimg.com/weather/index2014/wtData_v2.js
获取城市天气(javascript)
http://weather.gtimg.cn/city/01010101.js
//http://weather.gtimg.cn/city/{城市ID}.js
获取城市天气(jsonp)
http://weather.gtimg.cn/aqi/01010508.json
//http://weather.gtimg.cn/aqi/{城市ID}.json
调用方法(参考)
http://mat1.gtimg.com/weather/index2014/wtEvent_v2.js
搜索方法(参考)
http://mat1.gtimg.com/weather/index2014/searchEvent_v3.js?v3
etouch接口
通过城市名字获得天气数据(json)
http://wthrcdn.etouch.cn/weather_mini?city=北京市
通过城市ID获得天气数据(json)
http://wthrcdn.etouch.cn/weather_mini?citykey=101010100
通过城市名字获得天气数据(xml)
http://wthrcdn.etouch.cn/WeatherApi?city=北京市
通过城市ID获得天气数据(xml)
http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100
- 上一篇
分享几个获取当前城市(根据IP)的接口API
新浪接口获取当前城市信息http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js获取指定IP所在城市信息http://int.dpool.sina.com.cn/iplookup/iplookup.php?for
- 下一篇
分享几个好用的股票API
指数接口上证指数http://qt.gtimg.cn/q=s_sh000001道琼斯指数http://qt.gtimg.cn/q=s_usDJI腾讯济安http://qt.gtimg.cn/q=s_sh000847恒生指数http://qt.gtimg.cn/q=s_r_hkH