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
| Row | Carrier | Channel | Route | Trip | Cabin | Passengers | Point of sale | Departures | Frequency |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Carrier A | Airline website | LHR-JFK | Round trip, 7 days | Economy, premium economy | 1 adult | GB | 0 to 330 days out, each 7th day | Daily |
| 2 | Carrier C | Airline website | SIN-BKK | One way | Economy | 1 adult | SG | 0 to 90 days out, each day | Twice a day |
| 3 | Carrier D | Airline website | SYD-OOL | One way | Economy | 1 adult | AU | 28 Mar to 30 Oct 2027, each day | Daily |
Sample data. Carriers and fares are fictional.
Products usedTables that share one set of keys
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
- Which features from competitor fares improve our booking forecast?
- How do competitor fares move with days before departure, by carrier type?
- Which searches returned no offer, and was that a sold-out flight or a day without flights?
- How many collections per route and day does our model need?
- What did the market look like at the moment a booking was made?
Worked example
A SQL question across 4 carriers
- The analyst queries the fares table for one way from Hong Kong to Taipei on 14 Mar, collected 12 Feb.
- 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.
- 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
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.00Sample data. Carriers and fares are fictional.
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).
| Carrier | Fare family | Fare | 20 kg bag | Standard seat | Priority boarding | Total | Next fare family |
|---|---|---|---|---|---|---|---|
| Carrier B | Classic | 1,280.00 | Included | 90.00 | Not sold | 1,370.00 | Flex, 1,680.00, includes Free changes and a seat |
| Carrier A | Light | 1,050.00 | 260.00 | 80.00 | Not sold | 1,390.00 | Standard, 1,290.00, includes 20 kg bag and a standard seat |
| Carrier C | Light | 1,090.00 | 240.00 | 70.00 | Not sold | 1,400.00 | Value, 1,260.00, includes 20 kg bag and a seat |
| Carrier D | Basic | 980.00 | 330.00 | 95.00 | Not sold | 1,405.00 | Essential, 1,240.00, includes 20 kg bag and a seat |
Sample data. Carriers and fares are fictional.
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
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" } ]}s3://your-bucket/airlinedatalab/product=fares/collected_date=2027-02-12/origin=HKG/destination=TPE/part-0001.parquetQuestion: Which carrier is cheapest on HKG-TPE for 14 Mar with a 20 kg bag and a seat?Answer: Carrier B, at 1,370.00 HKD: its Classic fare of 1,280.00 includes the bag, and a seat costs 90.00. Carrier D has the lowest fare at 980.00 HKD, but a 20 kg bag (330.00) and a seat (95.00) take its total to 1,405.00 HKD.Source: fares and ancillaries collected 12 Feb 2027, point of sale HK.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.
- Send the routes and carriers
- Agree on the search plan
- Pick a delivery
- Review a free sample on your routes