An API is an Application Programming Interface, means by which third parties can write code that interfaces with other code.
OR
An api is a collection of class which provide you some functionalities like google api gives you the opportunity to work with the google search.