Web API provides you a platform where you can build and consume HTTP services. We can get and post data in XML and JSON format. It is good for mobile and iPad applications that return data in JSON and XML. We go with JSON because JSON is faster than XML. JSON doesn’t have attribute and is good even with a slow internet connection.