๐Ÿ“Š Live flight fare tracker with Aviation Stack API โ€“ alerts via Gmail & Telegram

โšก 907 views ยท ๐Ÿ“Š Market Research & Insights

Description

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.

Key Insights

Workflow Process

  1. Schedule Trigger Initiates the fare check every 6 hours.

  2. Fetch Flight Fare Data Queries APIs (Amadeus, Skyscanner) for current flight fares.

  3. Get Tracked Bookings Retrieves tracked routes from the internal database.

  4. Compare Fares Detects price drops compared to original booking fares.

  5. Update Fare History Table Logs the new fare and timestamp into the fare_tracking table.

  6. Classify Drops Determines priority based on absolute and percentage savings.

  7. Notify Users

    • Email Alerts: For all medium/high priority drops.
    • SMS Alerts: For savings > $100 or >15%.
    • Slack Notifications: For internal alerts and rebooking suggestions.
  8. Log Activity Stores all sync actions and notifications in fare_alert_logs.

Usage Guide

Prerequisites

Customization Options

Excel Output Columns

When exporting or logging fare tracking data to Excel or CSV, use the following structure:

flight_numberairlinedeparturearrivaldeparture_timearrival_timecurrent_fareroutetimestamp
AT5049Royal Air MarocJohn F Kennedy InternationalLos Angeles International2025-07-21T06:00:00+00:002025-07-21T08:59:00+00:00235JFK-LAX2025-07-21T13:04:14.000Z
BA1905British AirwaysJohn F Kennedy InternationalLos Angeles International2025-07-21T06:00:00+00:002025-07-21T08:59:00+00:00479JFK-LAX2025-07-21T13:04:14.000Z

๐Ÿ”— Nodes Used

Cron, Function, Google Sheets, HTTP Request, Telegram, Gmail

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup