Some web-services expose API to allow algorithmic access to the information they serve.
Request/ response format
They specify the serialization formats in which input/ request and output/ response objects (structured data) are to be encoded. This is usually in JSON or XML format.
XML, being more verbose, results in slower computation and transmission.
Underlying Protocol
Usually, they use http or rpc protocol.
Web interface Protocols
Simple Object access protocol (SOAP)
It specifies the use of XML for representing objects, certain Message Exchange Patterns (MEP).