Get Start With Application Programming Interface (API).

Mohamed Thasneem
4 min readOct 25, 2020

In this post, I’m going to share my knowledge about API. Let’s get started………………….. :) — -

What is a Web API?

API

As the name itself suggests, Web API is often accessed over the web using the HTTP protocol. It is a framework that helps developers to create HTTP based RESTFUL services.

These web APIs are developed by technologies like java, ASP.NET, etc and employed in a web server or a web browser. Web APIs are used to provide services on devices like laptops, mobiles, etc when Web APIs services are used. Web API is the enhanced form of the web application.

Why we use Web API?

  • Back End for Native Mobile Applications:
    If you are looking for a back end to develop native applications for mobile devices that do not support SOAP, ASP/NET Web API can serve your purpose. Almost any native application running on a mobile device other than the Windows one can use ASP/NET Web API as backend. Hence, a web API is good for using with native applications which require web services but not SOAP support.
  • Develop AJAX-based Web Applications:
    ASP/NET web API is an ideal choice for the development of client web applications that heavily rely on AJAX and do not require extensive configuration settings like WCF REST services.
  • Light Weight and Easy Creation of Services:
    The Web API supports a light architecture powering HTTP services to reach a broader range of clients. As compared to WCF, it is much easier and quicker to create services using ASP/NET Web API.
    Hence, Web APIs can be helpful in various significant ways in web application development especially when it is an ASP/NET web application.
  • Open Source

Examples of Web API.

  • Google Map API
    This API allows using of Google Maps on Webpages using a JavaScript or Flash interface.
  • getUserMedia API
    This API is used for accessing and controlling the media devices like the camera in our device.
  • History API
    This API is used to manage or manipulate the history of our browser.
  • URL API
    This API is used to access and manipulate URLs.
  • Page Visibility API
    This API fires off a `visibility change` event when a document becomes visible or hidden.
  • Clipboard API
    This enables us to copy and read data from the system’s clipboard from a webpage and also listen on and responds to clipboard commands such as copy, cut, paste.
  • Web Audio API
    This API gives us the capabilities to work on an audio stream on the web. This API can be used to add effects, filters to an audio source in the web.
  • Fullscreen API
    This API makes fullscreen-mode of our webpage possible.
  • Web Speech API
    This brings the power of speech to the Web. This API provides us with the capabilities to add speech synthesis and speech recognition to our web app.
  • Bluetooth API
    This API lets us access the Bluetooth Low Energy device in our phone.
  • Channel Messaging API
    This API allows the two scripts in different browser contexts to communicate and pass messages to each other in a two-way channel.
  • Vibration API
    This API makes our device shake or vibrate as a means of notification or physical feedback to a new data or info we should respond to.
  • Broadcast Channel API
    This API allows communication of messages or data from different browsing contexts on the same origin.
  • Payment Request API
    This API provides a way of selecting a payment method for goods and services to a payment gateway.
  • YouTube API
    This API allows you to display videos on a web site.
  • Facebook API
    This API allows you to display Facebook info on a web site.
  • Twitter API
    This API allows you to display Tweets on a web site.

Limitations of Web API.

  • Web API is not a platform for continuous services. Its purpose is just to provide an interface to your application over HTTP.
  • Latency in request processing times and bandwidth usage.

Let's meet in next blog ….. :)

Happy Coding buddy -:) (:-

--

--