It delivers our request to the provider that you are requesting it from and then delivers back the response to us.
Envision a server in an eatery. You, the client, are sitting at the table with a menu of decisions to arrange from, and the kitchen is the supplier who will satisfy your request.
You need a connect to convey your request to the kitchen and afterward to convey your food back to your table. It can't be the gourmet specialist since she's cooking in the kitchen. You need something to interface the client who's requesting food and the gourmet specialist who sets it up. That is the place the server — or the API — enters the image.
The server takes your request, conveys it to the kitchen, guiding the kitchen. It at that point conveys the reaction, for this situation, the food, back to you.