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

$ curl -LO https://devai.io/downloads/weather-now.zip$ unzip weather-now.zip && cd weather-now$ open index.html   # or just double-click the file

Browse the code

The full source, exactly as the zip ships it.

loading…
Download .zip
loading tree…

about this tutorial

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