all templates
APIs & Data

Weather Right Now

Type a city, get the live weather — your first two-step API call.

Search any city and see the current temperature, wind and conditions, pulled live from a free weather service. You'll learn to chain two API calls (find the place, then fetch its weather) and turn codes into plain English.

What's inside

  • Live current conditions for any city
  • Two chained calls: geocode, then forecast
  • Weather codes mapped to text and emoji
  • Loading and "city not found" states handled
  • Free API, no key required

Quickstart

$ git clone https://github.com/devai-io/devai_boilerplates.git$ cd devai_boilerplates/weather-now$ open index.html   # or just double-click the file

Browse the code

The full source, exactly as it ships in the repo.

loading…
Download .zip
loading tree…

about this tutorial

A devai.io starter tutorial — calling a real API and combining two requests.