<aside> 💡
Your app looks great. But the data is fake. Where does real data come from?
</aside>
Your app needs data it doesn't own. Weather, maps, payments, user posts. That data lives on someone else's server. The API is the door between your app and that server.
| Restaurant | Code |
|---|---|
| You (customer) | Your App |
| The waiter | The API |
| The kitchen | The Server |
| The menu | The Documentation |
| Your order | The Request |
| The food | The Response |
You never enter the kitchen. Your app never touches the database. The API carries everything back and forth.
Every API call follows this shape:

You ask. It answers. That's it.
| Term | Meaning |
|---|---|
| API | The door between your app and a server |
| Request | What you send (URL + method) |
| Response | What comes back (status code + data) |
| Server | Someone else's computer with the data you need |
The format your app and the server agree on. Keys and values.
{
"id": 1,
"dish": "Suqaar",
"price": 8
}
Rules: