SecLern
Blog · Video lessons · 2 min

APIs explained: one weather request, one key, and no web page

Your weather app has never measured a single temperature.

By The SecLern Team · Nov 18, 2026

Key points

  • The app never measured a temperature. It asks a server that holds the measurements.
  • Loading the whole weather page is slow, and every layout change breaks the app.
  • So the app calls an API instead: one program asking another for exactly what it needs.
  • The request names the city, GET /v1/weather?city=Berlin, and carries a long string, the API key.
  • The key is the app's membership card, so the server knows which app is asking.
  • Back comes JSON, 20 fields of it, and the app uses just two: temp_c 18.0 and sky clear.
  • The catch: the key rides on every request, so a copy can order as your app and you pay.
  • That's why the app maker guards that key and changes it often.

Transcript

0:00The question

Your weather app has never measured a single temperature.

0:04The request

It asks a server, which is just a computer holding the measurements. What passes between them? Loading a whole weather page is slow, and any layout change breaks the app. So the app calls an API: one program asking another for what it needs. Imagine a service counter. You order one dish, and the kitchen stays hidden. You tap Berlin, and the app sends a request naming the city. The API key, a long string, rides along. At the counter the key is your membership card: it names the app. The server checks it and looks up Berlin.

0:47The reply

Back comes JSON for Berlin: a text block holding two values, eighteen and clear. The app shows eighteen degrees and a sun. Only your dish comes back.

0:59The key

But here's the catch. The key is the only proof of who is asking, and it rides on every request. Anyone who copies it can order as your app, and you pay. So the app maker guards that key and changes it often. So here's the mental model: the request names Berlin, the reply carries eighteen and clear, and the key says who asks.

1:26Wrap-up

Your app never measured a temperature. It just knew who to ask. Follow for more.

The SecLern TeamSecLern builds practice questions, performance-based questions and browser-based hands-on labs for IT certifications.