What Is Application Programming Interface (API) in Travel: Definition, Meaning, Examples

Application Programming Interface (API)

An API (Application Programming Interface) is a set of rules and protocols that allows two distinct software applications to communicate and share data with each other in real-time. In the travel industry, APIs act as the essential infrastructure that links fragmented suppliers (hotels, airlines, car rentals) with distributors (OTAs, metasearch engines, travel agents), allowing a customer to search, price, and book a trip seamlessly from a single website.

Home
Travel Glossary
A
Application Programming Interface (API)

Digital Waiter of Travel Tech

The most common analogy for a Application Programming Interface (API) is a waiter in a restaurant.

  • Menu: Travel agency website where the customer searches for a flight.
  • Kitchen: Airline’s internal reservation system (PSS), which holds the actual inventory and prices.
  • Waiter (API): The customer gives their order (e.g., JFK to LHR on Nov 12) to the waiter. The waiter takes this request to the kitchen, gets the result (Flight available for $450), and delivers it back to the customer’s screen.

Without APIs, an OTA like Expedia would have to manually download and store the pricing of every single airline in the world every minute, which is computationally impossible. APIs allow them to simply ask the airline’s server at the exact moment the traveler hits the search button.

Shift from EDIFACT/SOAP to REST/JSON

The travel industry is currently undergoing a massive technological transition regarding how these APIs (Application Programming Interface) are built.

  • Legacy Era: Historically, systems talked via EDIFACT (highly compressed, cryptic codes) or older SOAP APIs using XML (heavy, rigid, and verbose).
  • Modern Age: Today, the industry standard has shifted to RESTful APIs that use JSON (JavaScript Object Notation). JSON is incredibly lightweight, mobile-friendly, and much faster to process. This modern architecture allows airlines to send rich media (like photos of business-class seats) through the API, a core requirement of NDC (New Distribution Capability).

Push vs. Pull Connections

In travel distribution, APIs generally operate in two distinct ways to keep inventory accurate:

  • Pull API (Shopping): The OTA pulls data. When a user searches, the OTA pings the hotel’s API to ask, “Do you have rooms, and what is the price?
  • Push API (Updating): The hotel pushes data. When a hotel drops its price in its revenue management system, the system automatically pushes that new price out through an API to all connected OTAs simultaneously to ensure rate parity.

Frequently Asked Questions

What is an API aggregator?

An API aggregator is a tech company that solves the too many connections problem. Instead of a new travel startup having to build 50 separate API connections to 50 different airlines, they connect to a single aggregator API (like a GDS or a modern aggregator like Duffel or Travelfusion), which provides access to all 50 airlines through one pipe.

What is an API Rate Limit?

Processing API (Application Programming Interface) requests costs server power and money. Airlines and hotels often impose a rate limit (e.g., 100 searches per second) on OTAs. If an OTA sends too many requests without generating enough actual sales (a poor look-to-book ratio), the supplier will block their API access to prevent their servers from crashing.

What happens if an API connection goes down?

If the travel Application Programming Interface (API) fails (times out), the OTA cannot confirm the booking. This often results in the dreaded message to the consumer: “Sorry, the price of this flight has changed or is no longer available,” because the OTA’s website lost connection to the airline’s real-time inventory.

Leave your request

We will contact you shortly

    Thank you for your request!

    We will get back to you as quickly as possible