What is an API? | CMSC 240 Software Systems Development - Fall 2024

What is an API?

Imagine you’re at a restaurant. You have a menu with a list of dishes you can order, along with a description of each dish. When you decide what you want, you tell the server, and the server goes to the kitchen to tell the cooks what to make. The cooks prepare your meal, and the server brings it back to you.

In this scenario, think of:

So, an API is like a menu that tells you what requests you can make to a software system. It’s a set of rules that lets different software applications or components communicate with each other. When you use an API, you’re essentially sending a request to a system (like ordering a dish) and getting a response back (like the dish served to you).

For example, if you’ve ever used a weather app on your phone, that app probably used an API to get weather data from a service.

Here are some key points about APIs:

In short, APIs are like messengers or translators that let different software systems talk to each other, request actions, and share data. They are fundamental in creating interconnected systems and applications in the world of computing.

Resources