🔌Application Programming Interface (API)
Also known as API, APIs, Web API
Rules that let one program ask another for data or work. A menu for code.
Think of it like
Think of it like a waiter. You ask from the menu, and the food comes out.
Example
Lucy's shop calls a payment API to charge a card. Her code sends the amount, and the API answers paid or declined.
Why it matters
Apps can reuse what others built, like maps, payments and logins. They do not have to write it all again.
Definition
Common mistake
Key takeaways
- 1A menu for code. What you can ask for.
- 2Inside stays hidden. Only the doors show.
- 3Mostly over HTTP. For web APIs.