DEV Community

SAKSHAM KUMAR
SAKSHAM KUMAR

Posted on

Application Programming Interface or API

You might have come across the acronym API which stands for Application Programming Interface and might have read about it and still if you think that you didn't understand what exactly is an API, then do read this blog.

Remainder: It's a beginner's guide to API.

So, before understanding API, let's understand how a conversation between a program and an end user happens.

So, the conversation between an user and a program may happen either through GUI or CLI.
Now again you might be thinking what is a GUI or CLI.

GUI(Graphical User Interface) : You talk to a program via graphics like clicking, scrolling etc.

CLI(Command Line Interface) : You talk to a program via commands like typing some command to create a repository etc.

Now, let's understand API.
So, now suppose, if a program wants to talk to another program and wants the other program to do some processing for itself, then they will talk via API i.e Application Programming Interface.

Let's understand it with an example.
Let's suppose you have made a weather app in which the app detects your current location and it sends your location to another program(server) which takes your location and based on that location provides the temperature of that location back to your application.
So, the conversation that happened between your application and the other program (server) took place via an API.

Thank you for reading my blog and I suppose now API is clear to you.

Top comments (0)