API stands for
  • Application
  • Programming
  • Interface

It's a mean by which server-side functionalities are abstracted into discrete resources, each dealing with a specialist task.
Resources share a uniform interface for transferring data.

A webservice is called to access these resources. Made available via the http (or https) protocol, it allows to make requests like GET, POST, PUT, DELETE.