Web services use four APIs: partner, public, private, and composite. These types vary in scope of use. The API types based on protocols or architectures are Rest, RPC, and SOAP.