Dokumentation (english)

What Is an API?

Understanding APIs and how they work

An API is a way to ask the internet a question and get an answer back.

When you open a website, your browser:

  1. sends a request i.e. question
  2. receives information i.e. response
  3. displays it on the screen

An API works the same way, but instead of showing a website, it sends data.

Example: Weather

If you type "weather" into Google, you see:

  1. today's date
  2. temperature
  3. sun or clouds
  4. the forecast for the week

Figure: Screenshot from Google Search with "weather near Baden-Baden" as search keyword.

Behind the scenes, your browser asks an API for this information.

Sometimes, the browser also sends information, for example your location (if you allow it).

APIs use structured data formats like JSON to exchange information.

To use many APIs, you need an API key to identify yourself.

On this page


Command Palette

Search for a command to run...

Schnellzugriffe
STRG + KSuche
STRG + DNachtmodus / Tagmodus
STRG + LSprache ändern

Software-Details
Kompiliert vor etwa 13 Stunden
Release: v4.0.0-production
Buildnummer: master@d237a7f
Historie: 10 Items