【开发者福利】公开API的使用

谷歌搜索“public api github”,点击进入页面可见有很多类型的Public API,有很多种分类。
地址:https://github.com/public-apis/public-apis

比如‘Weather’,进入第3个链接MetaWeather,地址如下
https://www.metaweather.com/api/

在下方‘Location Search’的Example中第一个链接,即用来查询location中带‘san’字符串的地址天气情况。

https://www.metaweather.com/api/location/search/?query=san
同样,可以将末尾的san改为hang,可以查询到杭州和上海两地的天气情况。

猜你喜欢

转载自blog.csdn.net/figosoar/article/details/111411402