Skip to main content
The air namespace serves aviation reference data: airports, airlines, and aircraft types. It is the lookup data behind flight displays, route maps, and airport pickers. Air requires the data:air:read scope.
import { createVoyantDataClient } from "@voyant-travel/data-sdk";

const client = createVoyantDataClient({ apiKey: process.env.VOYANT_API_KEY! });

Airports

const lhr = await client.air.airports.get("LHR");

const matches = await client.air.airports.search({
  q: "london",
  country: "GB",
});

Airlines and aircraft

const airline = await client.air.airlines.get("BA");
const aircraft = await client.air.aircraft.get("A320");

Types

Key types: Airport, AirportType, Airline, Aircraft, AircraftCategory. Lookups return SingleResponse<T>; searches and lists return ListResponse<T>.
Air provides the reference catalog for aviation. To search and book live flights from suppliers, use the flights group in the Connect SDK.