Lesson 4 · Interactive lab

Try an API request yourself

Use this simulator to make a simple API request yourself. Choose a city, send the request, and watch the weather data come back in the response.

Try it: request the weather for a city
Your turn: make a request
1Choose a city
2Send the request

This simulates a GET request to a weather API.

GET /weather?city=San Francisco
Ready. Choose a city and click “Check weather.”
Temperature-
Condition-
Humidity-
Wind-
🔎

GET

Usually means “give me information.” In this example, it asks for the weather data for a specific city.

📍

Input value

The city name is the input. APIs often need one or more input values so they know exactly what information to return.

🌤️

Returned data

The response contains useful information such as temperature, conditions, humidity, and wind.

Key idea: an API call is simply a structured request for information or functionality, followed by a structured answer.