Skip to main content

Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram

Workflow preview

Workflow preview
100%
Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 no...

Best for

  • Market Research automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.cron, n8n-nodes-base.httprequest, n8n-nodes-base.function, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram
Workflow name
Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram

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

  • Works post-booking to track price fluctuations for booked routes.
  • Supports multiple fare sources for improved accuracy and comparison.
  • Users are notified instantly via email, SMS, or Slack for high-value drops.
  • Historical pricing data is stored for trend analysis and refund eligibility checks.
  • Can be extended to monitor specific routes or apply airline-specific refund rules.

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

  • Import the workflow into your n8n instance.
  • Set up API credentials for Amadeus and Skyscanner.
  • Configure email, SMS (Twilio), and Slack credentials.
  • Update the booking database with valid records (with route, fare, timestamp).
  • Set schedule frequency (e.g., every 6 hours).
  • Review logs regularly to monitor fare alert activity and system health.

Prerequisites

  • Valid accounts and credentials for:

    • Amadeus API
    • Skyscanner API
    • SendGrid (or SMTP) for email
    • Twilio for SMS
    • Slack workspace & bot token
  • PostgreSQL or MySQL database for fare tracking

  • Tracked booking dataset (with routes, fares, and user contacts)

Customization Options

  • Adjust alert thresholds in the comparison logic (e.g., trigger only if fare drops > $50 or >10%).
  • Add new notification channels (e.g., WhatsApp, Telegram).
  • Extend logic to track multi-leg or roundtrip fares.
  • Integrate airline refund APIs (where supported) to auto-initiate refund or credit requests.

Excel Output Columns

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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.cron - cron
Config choices
Version 1

Block 2 - Fetch Flight Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 3 - Process Flight Data

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 4 - Check if Alert Needed

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 5 - Format Alert Message

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 6 - Log Alert Activity

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 7 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Data Ingestion & Processing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Fare Comparison & Alert Logic

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Notification & Logging

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Previous flight data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 14 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram
Complexity intermediate
Nodes 14
Categories Market Research
Author Oneclick AI Squad
Published 21 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6235/6235.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Live flight fare tracker with Aviation Stack API – alerts via Gmail & Telegram do?

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 no...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.