API stands for Application Programming Interface.
An API makes it possible for one software to interact with other software. So it’s basically a code that allows communication between two separate apps. So, for instance, when you book a hotel from your mobile phone through an app, the API takes your booking request to the system and returns it with a response to your phone. So in this case, a booking confirmation.