Skip to content

Understanding APIs

Abhinav Agrawal edited this page Mar 1, 2021 · 1 revision

What is an API?

An application program interface (API) is a set of routines, protocols, and tools for building software applications. Basically, an API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components. A good API makes it easier to develop a program by providing all the building blocks. A programmer then puts the blocks together.

An API may be for a web-based system, operating system, database system, computer hardware, or software library.

Read this article to get a better understanding about APIs

Below are some fun APIs you can interact with:

Interacting with APIs

We will be using Postman for sending GET and POST requests to APIs. You can download the app from here

For using Postman, an example is given where we will interact with the Tronald Dump API

Image1

  • Then, open the Postman app and click on the '+' icon.

Image2

  • Paste the link and click on the 'Send' button.

Image3

  • The response can be seen in the body tab.

Image4

  • The quote is the string associated with "value"

Image5

Similarly you can explore the documentation of other APIs and interact with them.

Clone this wiki locally