a real api, a real fetch chain

Weather API Playground

Type in a city, and add a state or country if you want to narrow it down (the format is City, ST, CC). The page asks Open-Meteo to geocode the name, picks the right match from the results, and then asks the same API for a 7-day forecast. There is no backend, no library, and no API key needed. Just fetch() and async/await, with a small bit of code that handles errors so the page does not break when something goes wrong. The JSON pane below shows the raw response from the API.

Search city, state, country

Use commas to narrow it down, e.g. Springfield, MO, US. State and country are optional.

try:

Loading the default forecast…

View raw API response (JSON)
Last call: ·
// Run a search to see the raw forecast JSON here.