There are 3 different types of API architectures.
- REST API
- SOAP API
- RCP API
REST API: An method to communications known as REST ([Representational State Transfer] architecture) encourages a comparatively straightforward interface between components (clients and servers). It places a focus on a small number of well defined operations, each with a predetermined set of parameter types.
SOAP API: A SOAP (Simple Object Access Protocol) API is a technique for XML-based communication between various systems. These files are typically used in web services to connect two systems and transfer data back and forth via a network connection.
RCP API: A service operating on one computer can request data from another using a technique called a Remote Procedure Call, (or RPC). Any remote process may be called using this kind of API, and you can obtain results from it.