Some free weather APIs I collected myself
Machine-translated (anthropic, claude-haiku-5-5) from the Chinese original. Read the original in 中文
Contents
Preface
I've been so bored lately and couldn't think of anything to write about, with no material on hand, so I had to repost something instead.. hehehe
Main Text
Lately I've become hooked on capturing the interfaces that big companies expose (such as ones behind searching for things, and so on)
Below I'll share some weather APIs I've captured (for example: http://www.iv1.pw/tools/weather)
P.S. Of course, some companies also publish open interfaces, such as QWeather (和风天气) and Seniverse (心知天气), among others. However, they all have limitations such as incomplete data or fixed quotas.
- 360 Navigation Weather API
https://cdn.weather.hao.360.cn/sed_api_weather_info.php?ip=
- QQ Navigation Weather API
https://daohang.qq.com/weather?ip=
- Toutiao Homepage Weather API
https://www.toutiao.com/stream/widget/local_weather/data/?ip=
- Zuimei Weather API
http://www.zuimeitianqi.com/zuimei/queryWeather?cityCode=01010101
- QQ Weather API
- Forgot whose it is
http://wthrcdn.etouch.cn/weather_mini?city=%E8%8F%8F%E6%B3%BD
Parameters
Here is a brief introduction to some parameters of these APIs. (Since none of these interfaces are public, the parameters are also guessed by the blogger, and not all of them support every parameter listed here. Please test them yourself.)
ip The IP address of the region to be located. Once filled in, it allows fetching the weather for the specified region, e.g. 111.17.188.xx
city The city name, e.g. 烟台 (Yantai)
cityCode The city code, e.g. 01010101
Bonus
Region-to-code API: https://wis.qq.com/city/getcode?source=pc&province=%E5%B1%B1%E4%B8%9C&city=%E7%83%9F%E5%8F%B0
(Baidu Open Platform, AMap Open Platform, etc. also provide basic IP-based location services)
IP database APIs:
Sina: http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=
Kuwo: http://ipdomainserver.kuwo.cn/ipip?ip=
The above interfaces are for personal study only. If used illegally for commercial or other purposes, it has nothing to do with the blogger!
Copyright
Reposted from: some free weather APIs I collected myself (will be continuously updated later) http://www.ourpast.cn/200.html
Comments