Skip to content
AirlineDataLab

Data science and analytics

One schema for fares, fees, seats, and schedules, ready to join

The 5 products share the same keys: carrier, route, flight, departure date, and collection time. The data dictionary defines each field, and the collection log records each search, including the ones that returned nothing.

Route file

Part of the search plan behind the sample data on this site. Row 3 is shown edited: frequency from Daily to 4 times a day.
RowCarrierChannelRouteTripCabinPassengersPoint of saleDeparturesFrequency
1Carrier AAirline websiteLHR-JFKRound trip, 7 daysEconomy, premium economy1 adultGB0 to 330 days out, each 7th dayDaily
2Carrier CAirline websiteSIN-BKKOne wayEconomy1 adultSG0 to 90 days out, each dayTwice a day
3Carrier DAirline websiteSYD-OOLOne wayEconomy1 adultAU28 Mar to 30 Oct 2027, each dayDaily

Sample data. Carriers and fares are fictional.

The situation

Competitor data arrives in a different shape per carrier

One carrier shows taxes, another shows only a total, and a third prices a return differently from 2 one-way trips. A model trained on those raw shapes learns the differences between websites.

AirlineDataLab maps each carrier into one schema with documented empty values. The log separates a search with no offer from one that was not collected, so missing rows have a reason.

Questions

Modeling work the tables support

  1. Which features from competitor fares improve our booking forecast?
  2. How do competitor fares move with days before departure, by carrier type?
  3. Which searches returned no offer, and was that a sold-out flight or a day without flights?
  4. How many collections per route and day does our model need?
  5. What did the market look like at the moment a booking was made?

Worked example

A SQL question across 4 carriers

  1. The analyst queries the fares table for one way from Hong Kong to Taipei on 14 Mar, collected 12 Feb.
  2. The lowest fares come back as 980.00 HKD for Carrier D, 1,050.00 for Carrier A, 1,090.00 for Carrier C, and 1,280.00 for Carrier B.
  3. A join to the ancillaries table on the same keys adds a 20 kg bag and a standard seat, and the order changes: Carrier B is lowest at 1,370.00.

Both answers come from the same collection, with each row's own collection time.

Delivery console

WarehouseLowest fare per carrier, queried in BigQuery or Snowflake4 result rows
SELECT carrier, MIN(total_price) AS lowest_fareFROM airlinedatalab.faresWHERE origin = 'HKG' AND destination = 'TPE'  AND departure_date = DATE '2027-03-14'  AND trip_type = 'one_way'  AND collected_date = DATE '2027-02-12'GROUP BY carrierORDER BY lowest_fare;-- Carrier D  980.00-- Carrier A  1050.00-- Carrier C  1090.00-- Carrier B  1280.00

Sample data. Carriers and fares are fictional.

HKG-TPEFare plus extras, the trip totalCollected 12 Feb

Lowest fare: Carrier D at 980.00. Lowest total with 20 kg bag and standard seat: Carrier B at 1,370.00 HKD. Cheaper as a fare family: Carrier A's Standard at 1,290.00 and Carrier C's Value at 1,260.00 and Carrier D's Essential at 1,240.00 include the 20 kg bag and standard seat (dashed marks).

Fare and extras by carrier, in HKD; total with 20 kg bag and standard seat
CarrierFare familyFare20 kg bagStandard seatPriority boardingTotalNext fare family
Carrier BClassic1,280.00Included90.00Not sold1,370.00Flex, 1,680.00, includes Free changes and a seat
Carrier ALight1,050.00260.0080.00Not sold1,390.00Standard, 1,290.00, includes 20 kg bag and a standard seat
Carrier CLight1,090.00240.0070.00Not sold1,400.00Value, 1,260.00, includes 20 kg bag and a seat
Carrier DBasic980.00330.0095.00Not sold1,405.00Essential, 1,240.00, includes 20 kg bag and a seat

Sample data. Carriers and fares are fictional.

In your tools

Access from the analytics stack

  • Warehouse share

    Tables in BigQuery or Snowflake, partitioned by collection date, with the dictionary as column descriptions.

  • Files in your bucket

    Parquet or CSV files in your own cloud bucket.

  • API and an MCP connector

    Notebooks call the API, and AI assistants answer questions over the same tables through the connector.

Delivery console

RESTA request to the fares endpoint and its response/v1/fares, 4 results
GET /v1/fares?origin=HKG&destination=TPE&departure_date=2027-03-14&trip_type=one_way&cabin=economy&point_of_sale=HK{  "origin": "HKG",  "destination": "TPE",  "departure_date": "2027-03-14",  "point_of_sale": "HK",  "currency": "HKD",  "offers": [    {      "carrier": "Carrier D",      "flights": [        "XX 9210"      ],      "departs": "07:15",      "fare_family": "Basic",      "booking_class": null,      "total_price": 980,      "collected_at": "2027-02-12T03:44:50Z"    },    {      "carrier": "Carrier A",      "flights": [        "XX 1350"      ],      "departs": "08:40",      "fare_family": "Light",      "booking_class": "K",      "total_price": 1050,      "collected_at": "2027-02-12T03:36:12Z"    },    {      "carrier": "Carrier C",      "flights": [        "XX 7466"      ],      "departs": "10:05",      "fare_family": "Light",      "booking_class": null,      "total_price": 1090,      "collected_at": "2027-02-12T03:41:03Z"    },    {      "carrier": "Carrier B",      "flights": [        "XX 2480"      ],      "departs": "09:30",      "fare_family": "Classic",      "booking_class": "L",      "total_price": 1280,      "collected_at": "2027-02-12T03:38:27Z"    }  ]}

Sample data. Carriers and fares are fictional.

FAQ

Schema, history, and the dictionary

Try the schema on your own models

Ask for the field list and a test file for your routes. Load it, join it, and decide from what your models do with it.

We use these details to reply to your request. See our Privacy Policy.

  1. Send the routes and carriers
  2. Agree on the search plan
  3. Pick a delivery
  4. Review a free sample on your routes