Skip to main content

Command Palette

Search for a command to run...

What is an API?

API (Application programming Interface) is a software that allows two application to talk to each other

Updated
2 min read
What is an API?
N

I am a senior-year graduating engineering student who loves coding and trying to help others through these blogs.

When i started my journey in computer science, the term that confused me the most was API. as a beginner (still a beginner) i confused myself with the term API & APK (Android Package Kit).

Application Programming Interface (API)

API stands for Application Programming Interface. which is a software intermediary that allows two application to talk to each other. Each time you use an app like Facebook, send an instant message or check the weather on your phone, you are using an API. The API is not the database or even the server; it is the code that governs the access point(s) for the server.

What Is an Example of an API?

A real world example is ordering a food at a restaurant. The client order his food through the waiter. But what's going on between ordering your pizza and receiving it? API's, that's what! then the waiter talks to the cook (other services and databases) to prepare your food. Finally, the cook gives the order to the waiter and he delivers it to your table.

API example.jpeg

One thing to keep in mind is that the name of some APIs are often used to refer to both the specification of the interactions and the actual software component you interact with. The phase "Twitter API," for example not only refers to the set of rules of programmtically interact with Twitter but is generally understood to mean thing you interact with as in "we are analyzing the tweets we got from the Twitter API".

C

The way you try to make us understand is awesome.🙌 Keep going Naveen.🚀

D

This is a great start, and you provide good illustrations. Remember an API, is not merely to provide two endpoints to communicate. Whilst you are correct in referring to them as intermediaries, which essentially they are, in the wider context, we often refer to an API as an abstraction from complexity. So in the case, as you show above, between integrations, such as the client and database example, the interface provides many more obvious examples, for example, we could say jQuery [is/was] an API for the DOM since it abstracts the complexity of DOM manipulation with a library of easy to use functional code components.

2
N

Thanks @thebarefootdev. next time i will try next time to be accurate. Thanks for help.