API VS Web Service

API VS Web Service


API

1. An API is an Interface between two or more applications by which they can access each other
2. API is not necessarily web based
3. API can use any means of communications to interact between applications
4. API don't always need a Network for communication

Web Service

1. Web Services facilitates interactions of two or more applications over a network
2. Web Services uses SOAP, REST, XML-RPC as a medium of communication
3. Web Services must requires Network for communication
4. All Web Services are API's but all API's are not Web Services

All Web Services are API's but all API's are not Web Services

API can use any means of Communication
Web Services only use 3 means SOAP, REST, XML-RPC for communication

Comments