2021 Jan. 23.
出典 天気予報 API(livedoor 天気互換)
WEB API
https://weather.tsukumijima.net/api/forecast/city/CityID
あるいは
https://weather.tsukumijima.net/api/forecast?city=CityID
CityIDリストページ
コマンドラインでの例
$ curl https://weather.tsukumijima.net/api/forecast/city/330010 ## 全データ $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq . ## 全データ $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq .description ## 天気概況 $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq .forecasts[0]."date" ## 予報日 $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq .forecasts[0]."telop" ## 予報内容 $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq .forecasts[0]."temperature"."max"."celsius" ## 最高気温 $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq .forecasts[0]."chanceOfRain" $ curl https://weather.tsukumijima.net/api/forecast/city/330010 | jq .forecasts[1]."date" ## 2日目の予報日