What is API | Full Form of API?
API Full Form: API stands for Application Programming Interface, abbreviated as API, is a computing interface that defines the interaction between multiple software intermediaries, as well as the kinds of calls or requests that can be made, and how to Call or make a request, what data format should be used, what convention should be followed, etc.
It can also provide an extension mechanism so that users can extend existing functions to varying degrees in various ways. An API can be fully customized, specific to a component, or designed based on industry standards to ensure interoperability.
Through information hiding, the API enables modular programming, allowing user implementations to use the interface independently.
Purpose of API
The application program interface refers to the code provided by the computer operating system or the program function library for the application program to call.
Its main purpose is to allow the application program developer to call a set of routine functions without considering the underlying source code. Or understand the details of its inner workings. API itself is abstract, it only defines an interface, and does not involve the specific operation of the application in the actual implementation process.
For example, a set of APIs in the graphics library defines the way to draw indicators, which can be displayed on a graphics output device.
When the application needs the indicator function, it can link to this set of APIs at the time of reference and compilation, and the implementation (library) of this API will be called to display the indicators during execution.
An API can be a set of thousands of extremely complex functions and subroutines that allow programmers to do a lot of work, such as “reading files”, “displaying menus”, “displaying web pages in windows”, and so on.
The operating system’s API can be used to allocate memory or read files. Many system applications are implemented through API interfaces, such as graphics systems, databases, network Web services, and even online games.
APIs come in many different designs. Interfaces for fast execution typically include functions, constants, variables, and data structures.
There are also other ways, such as through an interpreter, or by providing an abstraction layer to obscure the information related to the API implementation, ensuring that the code using the API does not need to change to adapt to the implementation change.
Application programming interfaces are often part of a software development kit (SDK).
Type of API
APIs are further divided into system-level APIs (for Windows, Linux, Unix, and other systems), and non-operating-system-level custom APIs.
As an effective code encapsulation mode, the API development mode of Microsoft Windows has been used for reference by many commercial application development companies and has developed and released some API functions of commercial application systems to facilitate third-party functional expansion.
Such as Google, Apple Computer, and APIs developed by mobile phones such as Nokia, etc.