
Explain like I'm five
Think of an API like a waiter at a restaurant. You tell the waiter what you want (your request), the waiter tells the kitchen, and then brings back your food (the response). You don't need to know how the kitchen works—you just get what you asked for.

Why it matters
APIs are everywhere—they let apps like Instagram show weather data from a different service, or let you pay with PayPal on a shopping site. Without APIs, software would be isolated and couldn't share information easily.

Common misconception
Many people think an API is a piece of software itself, but it's actually a set of rules or a contract for how software should interact. It's not the program doing the work; it's the instructions for how to request and receive that work.

Formal definition
An API (Application Programming Interface) is a set of defined rules and protocols that allows one software application to interact with another. It specifies the methods, data formats, and endpoints for requests and responses, enabling modular integration between systems.