API, the acronym for "Application Programming Interface", represents a set of rules and specifications that must be followed in order to access and use the services and resources of a program or software that implements that API.
It is a somewhat abstract notion, but for clarification we can try to simplify the definition: API serves as an interface between various software programs and facilitates the interaction between them, in a similar way to the way we interact with computers.