Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

API Testing Tutorial Part 1 – What is An API (Application Programming Interface)?

Posted on 02/08/2025 By admin

Hello Folks,

Before understanding about API, Let’s consider some real time scenarios first.

You go to any restaurant for a grand party. A waiter comes to your desk and takes your order. Waiter goes to kitchen and brings up your ordered food. You don’t bother how waiter did this. You just worried about your order. In more specific way, You are concerned for your work to be done not how it is done and by whom it will be done.

Let’s see an another example. You launch Facebook URL on a browser and enter your credentials. If you provide correct credentials, you should view home page of your account. If you provide wrong credentials, you will see some error message.  How it happens actually? When we pass credentials, some information is being sent to Facebook’s backend through messenger/channel. These credentials information is validated and response is sent back to end user through messenger.

Let’s see an another example. You wanted to book a flight ticket. You generally use a website which shows flights from all flight service providers. E.g. Yatra. When you enter all required details like Source, Destination, Journey date etc and click on search, you can see N number of flights from different airlines. Actually when you provide all details, Yatra sent a message through messenger to all airlines and request flight information as per requirement. Airlines returns list of flight with fare to Yatra and it shows up to end users.

In all above example, you could notice one common thing: “Messenger”. This messenger in technical world is called as an Application Programming Interface (API).  An API performs what user has requested without exposing internal logic or working of task done. You are able to login to Facebook and use it but you don’t get to know how Facebook is working internally. You can also think API as an example of oops concepts called Abstraction. Interface is a point where two systems, subjects, organizations, etc. meet and interact. 

In terms of software we can define API as below:

“An API is a set of codes which allows two or more than two applications to communicate each other internally or externally and provide a result to end users or to another API.“.

An API can call another API or Output of an API can be input for another API.

I got some feedback to explain “internally or externally” from definition of API above.

Suppose you are developing an application and it has many components. A component will communicate to other component to get data or provide data. For example: Login component of Facebook application needs to communicate “Profile” component to get user’s data. Here these components will communicate to each other through an API. It is internal communication as both components within same application  talking to each others. It is an example of internal communication.

Let’s see other aspect now. You download some apps and it will ask you to signup/Login with Facebook on launching app. You click on it to login with Facebook and you are promoted to dialog box where you need to provide some permissions and you are logged in. Here App and Facebook both are different applications but they communicated and it is possible because of APIs. App used facebook open APIs to provide facility to login using Facebook. It is an example of external communication.

If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe.
#ThanksForReading
#HappyAPITesting

Uncategorized

Post navigation

Previous Post: Interview Experience at CTS (Cognizant) Bangalore for Selenium Java Profile ( Sep – 2019)
Next Post: Postman Tutorial Part 35 – Extracting Value From JSON Array Response in Postman – JSON Array Parsing in Postman

Related Posts

Using Explicit Wait As WebDriverWait in Selenium WebDriver Uncategorized
August 5, 2018 – Make Selenium Easy Uncategorized
REST Assured Tutorial 46 – Fetch Value From JSON Array Using JsonNode – Jackson – Get() & Path() Methods Uncategorized
Jquerty1 – Make Selenium Easy Uncategorized
April 14, 2019 – Make Selenium Easy Uncategorized
Postman Tutorial Part 24 -Set, Get and Unset Global & Environment Variables in Postman Scripts Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark