API stands for Application Programming Interface .
Think of it like a waiter in a restaurant:
- You (client) → ask for food
- Waiter (API) → takes request
- Kitchen (server/database) → prepares it
- Waiter → brings response back
In Tech,
- Client = frontend / app
- API = middle layer
- Server = backend / database
For Example,
When you open a weather app:
- App → asks API: “What’s the weather in Mexico?”
- API → fetches data from server
API → sends JSON response back
{
"city": "Mexico",
"temp": 12
}