天气预报接口调研

2022-10-17 10:57:00
pjd
原创 347
摘要:免费天气预报接口、天气预报接口、免费天气api

1、https://tianqiapi.com 天气api

https://tianqiapi.com/index/doc?version=v9


7日天气数据半小时左右更新一次,实况天气最快5分钟更新,包含基本天气信息、湿度、每日小时预报、6大生活指数、pm2.5、pm10、o3、no2、so2、是否需要带口罩、外出适宜、开窗适宜、是否需要打开净化器等,可按地名、城市编号、IP查询。

2、百度接口


基础服务
https://api.map.baidu.com/weather/v1/?district_id=222405&data_type=all&ak=你的ak  //GET请求
国内天气查询服务全新上线,支持通过行政区划编码或经纬度查询实时和未来天气情况。 新增24小时逐小时天气预报;资源下载中新增天气取值对照表。

3、 sojson.com



免费_当日或未来几日

k780:http://www.k780.com/api/weather.history

接口地址:http://api.k780.com:88/?app=weather.history&weaid=1&date=2015-07-20&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json

 

中华万年历:

http://wthrcdn.etouch.cn/weather_mini?city=北京

通过城市名字获得天气数据,json数据

http://wthrcdn.etouch.cn/weather_mini?citykey=101010100

通过城市id获得天气数据,json数据

http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100

通过城市id获得天气数据,xml文件数据,

http://wthrcdn.etouch.cn/WeatherApi?city=北京

通过城市名字获得天气数据,xml文件数据

 

小米:

http://weatherapi.market.xiaomi.com/wtr-v2/weather?cityId=101121301

 

中央天气预报:

http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=101040100&weatherType=0

http://weather.51wnl.com/weatherinfo/GetMoreWeather?cityCode=101040100&weatherType=1

 

其他来源:

新浪天气预报API:http://php.weather.sina.com.cn/xml.php?city=%B1%B1%BE%A9&password=DJOYnieT8234jlsK&day=0

 

 

免费_历史天气

天气网:http://lishi.tianqi.com/acheng/index.html

 

 

收费_聚合数据

天气预报:https://www.juhe.cn/docs/api/id/73

全国天气预报:https://www.juhe.cn/docs/api/id/39

 

 

友情链接

(别人已经整理好的,有效性未验证)

天气API接口大全(nohacks.cn 收集整理):http://www.nohacks.cn/post-35.html

网上的天气 API 哪一个更加可靠?:https://www.zhihu.com/question/20575288

免费的天气接口(满足你的大部分需求):http://blog.csdn.net/wanghao940101/article/details/72123184

真正的中国天气api接口xml,json(求加精) ...:http://blog.csdn.net/fancylovejava/article/details/26102635

免费的天气接口(满足你的大部分需求):http://blog.csdn.net/wanghao940101/article/details/72123184


/t.weather.sojson.com/api/weather/city/101030100

http://t.weather.sojson.com/api/weather/city/101030100