API stands for Application Programming Interface which acts as an interface between two applications and allows them to communicate with each other. In simple words, APIs ensure how one part of the software program interacts with the other part and allow exchanging of data between systems that are located at different remote places.

Working of APIs

Let’s understand this with the help of a simple flow diagram-

API automation interview questions
It is very clear from the diagram the manner APIs work. Imagine you are a customer at a restaurant. The waiter which acts as an intermediary between customers and the kitchen takes an order from the customer and requests it from the kitchen. Finally, he/she provided what you have ordered.
To understand API in technical terms, replace customer with user/ mobile app, a waiter with API, and kitchen with the application/webserver.
BY Best Interview Question ON 18 Dec 2021