What is an API?

in #technology7 years ago

What exactly is an API? Finally, learn for yourself in this helpful video from MuleSoft.

The textbook definition goes something like this:

An application programming interface (API) is a set of routines, protocols, and tools for building software applications. An API expresses a software component in terms of its operations, inputs, outputs, and underlying types. An API defines functionalities that are independent of their respective implementations, which allows definitions and implementations to vary without compromising each other. A good API makes it easier to develop a program by providing all the building blocks.

APIs often come in the form of a library that includes specifications for routines, data structures, object classes, and variables. In other cases, notably SOAP and REST services, an API is simply a specification of remote calls exposed to the API consumers.

An API specification can take many forms, including an International Standard, such as POSIX, vendor documentation, such as the Microsoft Windows API, or the libraries of a programming language, e.g., the Standard Template Library in C++ or the Java APIs.

An API differs from an application binary interface (ABI) in that an API is source code-based while an ABI is a binary interface. For instance, POSIX is an API, while the Linux Standard Base provides an ABI”.

To speak plainly, an API is a messenger that runs and delivers your request to the provider you’re requesting it from and then delivers the response back to you.

An amazing explanation in this video:


DQmSww27yWgYdcDfGK5EDhFfoJRUapGYno9oQ8pN5aiPsUG_1680x8400.png

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64768.36
ETH 3436.88
USDT 1.00
SBD 2.51