What is an API (Application Programming Interface)?

What is an API (Application Programming Interface)?

An API is all about communication. It is an interface that takes requests and tells the system (application, service, API…) what you want to do and then returns the response back to you. It creates interactivity between applications, databases, and devices to deliver data and create activity that pushes the world at our fingertips. It is like a bridge to communicate in between two systems. APIs are standardized (industry-defined standards for how to define an API).

To give you a familiar example, you arrive at a driving, the operator takes your order and will request the team to prepare it. Once ready, the operator will then give you your order packed (generally, you even pay before). In this case, the operator is an API, he received your order request, communicate with the background team (tells the system what to do: prepare the order). Once the response to that request is transmitted to the API (order prepared and packed), the operator delivers it to you (answer/data from the API).

Now that I’ve whetted your appetite, let’s apply this to a real API example!

You are probably familiar to the process of searching for an hotel into an online comparator website. Just like for your order, you probably know the area where you would like to stay or an idea about the budget you would like to pay. You will have to choose some filters like the area, the number of stars, the budget and so on.

In order to get the search result, the website will interact with its database to check if any hotel is matching your request and what the cost of each might be.

Big comparators can aggregate information from many different hotels. It will then interact with hotels’ API to check information (number of stars, average price budget…). These hotels’ API will then response back with requested information. The comparator can then show up to you.

Now you can understand that it is APIs that makes it possible for us all to book a hotel. The same goes for interactions between applications, data and devices.

There are a few formats that are popular for APIs: REST, SOAP, GraphQL, …

Thanks for sharing useful information about the APIs and explaining the benefits of using them. Although public APIs and open APIs look similar, APIs serve slightly different purposes. Thanks to an open API, publishers can make their solutions freely available and have full access to the architecture and all functionalities. Public APIs usually have more restrictions on tree access. Through public APIs, publishers have greater control over the security and management of their software. https://www.cleveroad.com/blog/what-is-an-api/

To view or add a comment, sign in

More articles by Jonathan Rombeau

  • Software communication - message broker

    What is a message broker? A message broker is software that ensures applications (monolithics and/or microservices)…

    6 Comments
  • Monolithics VS Microservices

    Monolithic applications Monolithic applications are projects where all the functionalities exist into a single…

  • What is the difference between a client and a server?

    The difference between both might be tricky since they share similar things, but the main difference is how they work…

  • Language or Framework?

    Most of the time, people outside of IT, are lost because they do not know exactly the difference between a framework…

    4 Comments
  • What is a framework?

    In computer programming, a framework is like a toolbox providing abstract/concrete/generic functionalities. It is a…

Others also viewed

Explore content categories