An application programming interface (API) is a way for two or more computer programmes to communicate with each other. It is a type of software interface, offering a service to other pieces of software.