Web Development

What is an API

What an API is and how it works: the waiter between client and server, plus endpoints, API keys, JSON replies, status codes and the mistakes beginners make.

  • 5 min read
  • 5 questions
  • +35 XP
Transcript

What is an API, explained by cats? Kitty wants a fish from the kitchen. Kitty does not go into the kitchen. Instead, Kitty tells the waiter what she wants. The waiter goes to the kitchen. Kitchen Kitty prepares the fish.

The waiter brings the fish back to Kitty. Happy, happy, happy. The waiter is the API. Kitty is the user. Kitchen Kitty is the server. API is how Kitty gets fish without entering the kitchen.