Search⌘ K
AI Features

Air APIs

Explore how to leverage Amadeus Air APIs to search for the best flight offers, obtain real-time flight status updates, and retrieve detailed airport and city information, enhancing your travel applications with accurate and timely flight-related data.

Amadeus Air APIs allow us to perform a number of flight-related operations. These operations include searching for flights, booking flights, inquiring about flight status, searching for airports, and so on. In this lesson, we’ll cover the following Air APIs:

  • Flight offers search
  • On-demand flight status
  • Airport and city search

The Flight Offers Search API

The Flight Offers Search API allows us to search for the best flight deals for our trips. It provides the cheapest flights from more than 500 airlines for our given trip itineraries. We can search for flights across two or more cities based on our trip itinerary and duration. This API provides detailed information for each proposed flight including the airline name for the flight, price, and other important flight information.

Note: This API ...

Input Parameters

Parameter

Type

Category

Description

ACCESS_TOKEN

string

required

This is our access token.

originLocationCode

string

required

This is a 3-character departure city/airport code.

destinationLocationCode

string

required

This is a 3-character destination city/airport code.

departureDate

string (date)

required

This is the date of departure.

adults

integer

required

This is the number of adults (12 years or older). Its default value is 1.

returnDate

string (date)

optional

This is the date of return. Only one-way itineraries are returned if this parameter is not specified.

children

integer

optional

This is the number of children (2 to 12 years old).

infants

integer

optional

This is number of infants (upto 2 years old).

travelClass

string

optional

This specifies the cabin type where the traveler will spend the majority of the flight time. Its available values are ECONOMY, PREMIUM_ECONOMY, BUSINESS, and FIRST.

includedAirlineCodes

string

optional

This is a comma-separated list of 2 to 3-character airline codes to consider.

excludedAirlineCodes

string

optional

This is a comma-separated list of 2 to 3-character airline codes to not consider.

nonStop

boolean

optional

This is true for no stopovers. Otherwise, it’s default value is false

currencyCode

string

optional

This is a 3-character code of preferred currency for the flight offer.

maxPrice

integer

optional

This is the maximum price per traveler.

max

integer

optional

This is the maximum number of flight offers to retrieve. Its default value is 250.

Enter the values for originLocationCode ...