What is an API? | Yext Hitchhikers Platform

What You’ll Learn

In this section, you will learn:

  • What is an API?
  • How do we commonly use APIs

Overview

API stands for Application Programming Interface. To put it simply, an API is an interface for two pieces of software to communicate. This communication consists of a series of “requests” (also referred to as “calls”) and subsequent “responses”.

Think of an API as a waiter in a restaurant.

A patron at the restaurant sits down in front of a menu of choices to order from (system 1) and the kitchen (system 2) will prepare the menu item. Much like an API, the waiter is the critical link between these two systems - they deliver the patron’s order (request) to the kitchen, and then deliver the patron’s food (response) back to them.

Real Life Examples

APIs are at play in just about every major website you can think of. They all use and provide ways for other websites and tools to consume each other’s data and extend their services.

Here’s a scenario of how this may look in everyday life:

You’re searching for a hotel room from an online travel booking site. Using the site’s online form, you select the city you want to stay in, check-in and checkout dates, number of guests, and number of rooms. Then you click “search”.

As you may know, the travel site aggregates information from many different hotels. When you click “search”, the site then interacts with (or “calls”) each hotel’s API, which delivers results for available rooms that meet your criteria. This can all happen within seconds because of an API, which acts like a messenger that runs back and forth between applications, databases, and devices.

unit Quiz
+20 points
Daily Quiz Streak Daily Quiz Streak: 0
Quiz Accuracy Streak Quiz Accuracy Streak: 0
    Error Success Question 1 of 3

    What is an API?

    Error Success Question 2 of 3

    Which of the following scenarios is a real life example of an API integration in use? (Select all that apply)

    Error Success Question 3 of 3

    True or False: An API is like a waiter because it links two systems (the patron & the kitchen) by delivering orders and subsequent outputs

    Climbing that leaderboard! 📈

    You've already completed this quiz, so you can't earn more points.You completed this quiz in 1 attempt and earned 0 points! Feel free to review your answers and move on when you're ready.
1st attempt
0 incorrect