DEV Community 👩‍💻👨‍💻

Cover image for What is an API?
Siva Charan
Siva Charan

Posted on • Updated on

What is an API?

Let us make this simple with a basic example. When you are hungry and not in a mood of preparing food. So we go to a restaurant or browse any food delivery apps.

Let us assume you opened zomato and browsed biriyani from some restaurant and you got your food. Here restaurant is the 'system' that will prepare your food.

What is missing here???

It is the critical link to communicate your order to the restaurant and deliver food back to your table. That's where the platform/medium of communication or API comes into play. Here it is ZOMATO app.

The app takes the request/order from you, delivers/send request to the restaurant and deliver back the response/food from the restaurant to you.

Image description

APPLICATION PROGRAMMING INTERFACE which is known as API is a software intermediary that allows two applications to talk to each other.

When you use an application on your device, it connects to internet and sends request to the server. Server retrieves that request, interprets it, performs the necessary actions and sends it back to your phone. Then the application interprets that data received and displays it to you in a beautiful/readable way. All of this happens through API.
Image description

comment down your opinions on "Do API's are really necessary? "

Top comments (4)

Collapse
natescode profile image
Nathan Hedglin

You're talking about server-side APIs.
APIs aren't limited to servers. document.getElementById('#id') is an API, a web API specifically.

Collapse
gurram_charan3 profile image
Siva Charan Author

The main theme is to help the people to get to know about what is the basic meaning of an API.
Anyway thank you for making it clear by mentioning it. From next time i would be more precise about mentioning it in a correct way.

Collapse
link2twenty profile image
Andrew Bone

You may want to remove the web3 tag as it's not really relevant here.

Collapse
gurram_charan3 profile image
Siva Charan Author

I did
Thank you...

🌚 Life is too short to browse without dark mode