A web API is an API to a service delivered over the web, that is using HTTP protocol. Typically results are returned in JSON or XML. The request may also be framed as an operation encoded in JSON or XML, or as a normal web-form-like html query string. Often web APIs use REST, which uses urls denoting resources and HTTP PUT, GET, POST,and DELETE headers to encode creation, access, update and removal operations.

SOAP XML encoding of lookup (“Hello world”)... Figure 12.23 from Network-Based Interaction

JSON encoding of lookup (“Hello world”)... Figure 12.24 from Network-Based Interaction
