What is API? API is an interface that allows software programs
to interact with each other. It defines a set of rules that
should be followed by the programs to communicate with each
other. APIs generally specify how the routines, data structures,
etc. should be defined in order for two applications to
communicate. APIs differ in the functionality provided by them.
There are general APIs that provide library functionalities of a
programming language such as the Java API. There are also APIs
that provides specific functionalities such as the Google Maps
API. There are also language dependent APIs, which could only be
used by a specific programming language. Furthermore, there are
language independent APIs that could be used with several
programming languages. APIs needs to be implemented very
carefully by exposing only the required functionality or data to
the outside, while keeping the other parts of the application
inaccessible. Usage of APIs has become very popular in the
internet. It has become very common