The basic idea of API is that it enables two programs to talk to each other with zero disruption to the users. This graphic explains it.