API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to communicate with each other.
A closure is a structure of a function and its lexical environment, including the variables of the scope of the function at the time of the creation of the closure.