Skip to content
SOFTWARE TESTING

API Testing 101: What is an API Call

I broke this down in the video above. Below is the written version, expanded into a fuller explanation of what an API is and why the concierge analogy makes it click.

What is an API call is one of those questions people nod along to without really understanding the answer. If you are new to testing or development and you want the idea to actually stick, this one is for you. An API, or application programming interface, is a set of rules and protocols that lets different software applications talk to each other and exchange data. That definition is correct, and it is also forgettable. In the video I used a five-star hotel and a concierge to make it concrete, and in this article I want to walk through that analogy, then connect it to what you actually test.

What an API actually is

An API is an intermediary that lets two separate applications communicate and exchange data through a standardized set of rules.

Picture three things: a client, an API, and a server. The client sends a request, the API carries it to the server, and the server sends information back to the client through that same API. That round trip is the whole pattern. APIs let developers reach specific functionality or data from another application without rebuilding it themselves.

This is why APIs are everywhere in modern software. They let separate systems integrate, they extend what an application can do, and they save developers from reinventing the wheel. I explain the basic flow in the video. Once you see the client, the API, and the server as three distinct roles, the rest of the topic gets much easier.

The concierge analogy that makes it click

An API works like a hotel concierge, taking your request, knowing every service the hotel offers, and bringing back what you asked for.

Imagine you are on vacation at a luxury hotel. There is a wide assortment of services and excursions, and you are not sure where to start. The front desk sends you to the concierge. Your planned activities are the request, and you are the client. You tell the concierge you want to dine at the rooftop restaurant, get a massage, and go swim with the dolphins.

The concierge is the API, the middleman who knows every option the hotel offers and listens to your request. I walk through this analogy in the video. The hotel services are the server, the part that actually provides the rooftop dinner, the massage, and the dolphins. What I learned explaining APIs to new testers is that this picture lands faster than any formal definition, because it gives each role a face. You are the client, the concierge is the API, and the hotel is the server.

Why the analogy matters for testing

The concierge picture tells a tester exactly where to look: the request you send, the API in the middle, and the response that comes back.

Once you hold the analogy, testing has a shape. You check that the request leaves correctly, the way you would confirm the concierge heard your order. You check that the API passes it along faithfully, without dropping or scrambling anything. And you check that the response matches what was asked, the way you would notice if you ordered a massage and got a parking ticket.

I found that testers who think in terms of client, intermediary, and server stop treating an API as a black box. They start asking the right questions at each handoff. Where could the request go wrong? Where could the API mistranslate it? Where could the server send back the wrong thing? Those three seams are where most API defects live.

The takeaway

An API is a set of rules that lets two applications communicate and exchange data, with the API acting as the intermediary between a client and a server. The hotel concierge makes it concrete: you are the client, the concierge is the API, and the hotel is the server providing what you asked for. Hold that picture and the whole topic, including how to test it, gets simpler. Every API call is just a request, a middleman, and a response.

If this helped, the full explanation is in my video on what an API is. Here is my question for the comments: what everyday analogy helped an idea in software finally click for you? Subscribe if you want more plain explanations of testing and quality.