What exactly is an API?

An application program interface (API) is a set of routines, protocols, and tools for building software applications. Basically, an API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components.

For More Information Please Refer: https://www.webopedia.com/TERM/A/API.html