API Reference

Concepts

The Seats.aero API has a few concepts that are important to be aware of.

Sources

A source in the Seats.aero API is one mileage program. For example, the lifemiles source contains results for Avianca LifeMiles. Every mileage program has its own source; they are listed below.

Not all programs provide us the number of available seats or individual flight data. In these cases, you may see availability listed with zero seats, or no results for trip data.

SourceMileage ProgramSupported CabinsHas Seat CountHas Trip Data
lifemilesAvianca LifeMilesY/J/FYesYes
virginatlanticVirgin Atlantic Flying ClubY/W/JYesYes
aeromexicoAeromexico Club PremierY/W/JYesNo
americanAmerican AirlinesY/W/J/FNoYes
deltaDelta SkyMilesY/W/JYesYes
etihadEtihad GuestY/JYesNo
unitedUnited MileagePlusY/W/J/FYesYes
emiratesEmirates SkywardsY/W/J/FNoNo
aeroplanAir Canada AeroplanY/W/J/FNoYes
alaskaAlaska Mileage PlanY/W/J/FYesYes
velocityVirgin Australia VelocityY/W/J/FYesYes
qantasQantas Frequent FlyerY/W/J/FNoYes

Availability Objects

Seats.aero uses a summary object called Availability to summarize the availability for a route on a given departure date. For example, all flights available on Alaska Mileage Plan from SFO to LAX departing on 2023-08-11 are summarized into one Availability object. Flights on the same date and route but available from United would be summarized into a different Availability object.

Imagine the following flights are available on Alaska Mileage Plan on 2024-03-16:

  • AS123, direct, SFO to LAX, economy with 5 seats @ 5,000 miles, business with one seat @ 10,000 miles
  • AA456, one stop, SFO to LAX, economy with 7 seats @ 7,500 miles, business with three seats @ 15,000 miles

These would be summarized into the following availability object:

{
  "ID": "abcdef",
  "Route": {
    "ID": "ghijkl",
    "OriginAirport": "SFO",
    "DestinationAirport": "LAX",
    "Source": "alaska"
  },
  "Date": "2024-03-16",
  "YAvailable": true,
  "YDirect": true,
  "YMileageCost": "5000",
  "YRemainingSeats": 7,
  "YAirlines": "AA, AS",
  "JAvailable": true,
  "JDirect": true,
  "JMileageCost": "10000",
  "JRemainingSeats": 3,
  "JAirlines": "AA, AS",
  "Source": "alaska"
}