An API is an interface for interacting with a given service. Most often we talk about web API, to read data from an existing service, see write new data on this service. Today, APIs often use standardized HTTP, REST communications with data passing in the form of XML or JSON. An API therefore corresponds to the definition of possible interactions with a service, and the format of the data exchanged.