What is use of Web API

You could try this example to get an idea of how APIs work:

http://community.thunkable.com/t/introduction-to-apis/12067?u=domhnall