What is an API?
API stands for Application Programming Interface. It’s like a waiter in a restaurant.
Example – Restaurant
Imagine you go to a restaurant.
You (the customer) sit at the table and look at the menu. You decide what you want and tell the waiter. The waiter goes to the kitchen, tells the chef, and then brings your food back to you. You don’t go into the kitchen yourself — you just talk to the waiter.
Now in Tech Terms:
You (the user) are like a website or app. The kitchen is the data or services (like Google, Facebook, MyFatoorah, etc.). The waiter (API) takes your request, sends it to the kitchen, and brings the result back to you. Real-Life Example:
Let’s say your app needs to show the weather:
Your app asks the Weather API: "What’s the weather in Cairo?" The Weather API gets the data from the weather system. It sends back the answer, like: “Sunny, 32°C”. Your app didn’t have to know how the weather system works, it just asked for what it needed.
An API is a messenger that lets two systems talk to each other, without you needing to know how they work inside.