This automated n8n workflow continuously tracks real-time flight fare changes by querying airline APIs (e.g., Amadeus, Skyscanner). It compares new prices with historical fares and sends instant notifications to users when a fare drop is detected. All tracked data is structured and logged for audit and analysis.
Schedule Trigger
Initiates the fare check every 6 hours.
Fetch Flight Fare Data
Queries APIs (Amadeus, Skyscanner) for current flight fares.
Get Tracked Bookings
Retrieves tracked routes from the internal database.
Compare Fares
Detects price drops compared to original booking fares.
Update Fare History Table
Logs the new fare and timestamp into the fare_tracking
table.
Classify Drops
Determines priority based on absolute and percentage savings.
Notify Users
Log Activity
Stores all sync actions and notifications in fare_alert_logs
.
Valid accounts and credentials for:
PostgreSQL or MySQL database for fare tracking
Tracked booking dataset (with routes, fares, and user contacts)
When exporting or logging fare tracking data to Excel or CSV, use the following structure:
flight_number | airline | departure | arrival | departure_time | arrival_time | current_fare | route | timestamp |
---|---|---|---|---|---|---|---|---|
AT5049 | Royal Air Maroc | John F Kennedy International | Los Angeles International | 2025-07-21T06:00:00+00:00 | 2025-07-21T08:59:00+00:00 | 235 | JFK-LAX | 2025-07-21T13:04:14.000Z |
BA1905 | British Airways | John F Kennedy International | Los Angeles International | 2025-07-21T06:00:00+00:00 | 2025-07-21T08:59:00+00:00 | 479 | JFK-LAX | 2025-07-21T13:04:14.000Z |