0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

昔、天気予報のAPIを取ってくるものを作った話。

0
Last updated at Posted at 2025-08-19

今年5月くらいに、Next.jsとAPIの練習として緯度経度を指定すると天気予報が取得できるものを作りました。

出来上がりはこちら

Adobe Express - 天気予報.gif

感想と考察

APIと連携するところまではすんなりといけたが、JSONでどのように入ってくるのかがイマイチ分かりづらかったと当時感じていました。今思えば、Console.logなどをうまく駆使して、送られてくるJSONをそのままコンソールに出せば一発で分かったのではと思います。
当時は、(結構アバウトにしか書かれていない)天気予報APIの公式ドキュメントを読んで、形にしていてがんばっていたと思います。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?