Essentially, an API allows two software programs to communicate with each other. One program or website can USE another program’s API to get access to data or functionality of the other program or website.
Types of API
Open APIs: aka Public APIs. publicly available
Partner APIs: specific rights or licenses are needed to access them.
Internal APIs: used within a company and are not exposed to the internet..
Composite APIs: These APIs combine different data and service APIs.