API is developed to communicate between two machines with entirely different architecture. The API is developed from Things to Large corporate servers to send the usefull command from one system to another. The API is a data transfer, mostly in JSON format on requesting different HTTP callbacks. These callbacks usually termed RESTful services.
The data from servers to mobile application is usually transfers over JSON format via REST protocol. The request is usually of GET/POST/UPDATE/DELETE/PUT type.