Application Programming Interface (API) in a nutshell

Photo by ComputerLanguage.com

Web service APIs

Web service APIs send and receive messages across the web using HTTP to transport the request and response. Web service APIs are not language-specific.

Native library APIs

Native library APIs involve incorporating code directly into the project for desired functionality (e.g., navigation, payment, email communication, etc.). Native library APIs are language-specific.

How regular browser request is different from APIs?

The data you get when you browse something on the internet is a combination of HTML, CSS, and JavaScript. Here the purpose is a machine to human communication.

An example for real-life application of API

Let’s take the example of Uber. As shown below the Uber controls the user experience and relies on third-party services for infrastructure, communication, navigation, and payments. These service providers are providing their services through APIs and integrated into Uber. Hence, Uber doesn’t want to develop everything from scratch.

Image source: Uber

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rahul

Rahul

Technical Writer | Writer | Autodidact | Short Stories | Content Writer | My vocation is to write.