API in a web environment

Definition of an API

The abbreviation API means Application Programming Interface and is a programming interface. It is connected at source code level. APIs are used in many applications and are used as web APIs in the web environment.

Basics and characteristics

With a programming interface, information can be exchanged between individual programme parts and an application in a standardised manner. The structured transfer of commands and data follows a previously defined syntax.

The API enables modularisation and simplification of programming. The individual connected programme parts fulfil specific functions and are clearly separated from the rest of the application. Individual programme modules can only communicate via the precisely defined interface.

An API defines the way in which data and information are taken from the application module and then sent back. An application programming interface does not take care of the actual programme flow in the module.

The provision of a programming interface is usually done together with the detailed documentation of individual functions, the possible parameters as well as the exact syntax. The API allows access to databases, hardware components, individual programme functions or interfaces as well as other elements.

Distinction between programming and user interface

The user interface provides the interface between the software user and the programme logic. The application programming interface is the equivalent for the machine-readable programme code. The user interface receives data from users, forwards it to the applications and gives it back to the user. The Application Programming interface processes the data taken from the programme module and transmits the results back to the module.

Advantages of programming interfaces

Programming interfaces create a simplified and clean overall structure. The programmes are less error-prone and easier to maintain. Programming work can be outsourced. APIs that remain the same externally increase the long-term stability of systems. Workload and costs can be minimised significantly.

nach oben