Skip to content

Examples

Open-source apps you can fork and run

Three small, working projects on the Google Flights API, MIT licensed on GitHub. Each one runs on a free RapidAPI key, and each ships a real recorded response so you can try it before you sign up.

Repos

Three examples, one key

flight-price-alert-bot

A Telegram (or Discord) bot that watches routes and messages you when a fare drops under your target, under Google’s usual range, or is rated low by Google. Never pings twice for the same price.

Python, standard library only. Docker, cron or GitHub Actions.

One request per watch per check.

cheapest-week-to-fly

A CLI that prices every departure date in a range at one or more trip lengths and ranks the round trips, each with Google’s verdict and usual range. Writes a CSV.

One Python file, standard library only.

One request per date and trip length: a week at 7 nights is 7.

n8n-flight-fare-watch

A daily fare watch you import into n8n (with the FlightPowers node or the plain HTTP Request node) that emails or Slacks you on a deal. The same watch also runs as a GitHub Action that opens an issue.

n8n workflow JSON, or a GitHub Action in Python.

One request a day, about 30 a month.

Real output

The cheapest week to fly, JFK to Lisbon

From cheapest-week-to-fly, on fares fetched 2026-11-11 21:55 UTC. The same $628 nonstop is typical one week and high the next, because Google's usual range for those dates differs.

cheapest-week-to-fly
$ python cheapest_week.py --from JFK --to LIS --start 2027-02-01 --end 2027-02-07 --nights 7

#  depart      return      nights  total USD  stops  airline (outbound)          Google says  usual range
1  2027-02-01  2027-02-08  7       628        0      Tap Air Portugal | JetBlue  typical      470-660
2  2027-02-02  2027-02-09  7       628        0      Tap Air Portugal | JetBlue  high         425-540
3  2027-02-03  2027-02-10  7       628        0      Tap Air Portugal | JetBlue  high         425-540
4  2027-02-04  2027-02-11  7       628        0      Tap Air Portugal | JetBlue  typical      470-660
5  2027-02-07  2027-02-14  7       628        0      Tap Air Portugal | JetBlue  typical      470-660
6  2027-02-05  2027-02-12  7       699        2      American, British Airways   high         470-660
7  2027-02-06  2027-02-13  7       713        2      Royal Air Maroc             high         470-660

7 requests, 7 priced, 0 failed.

Get a key

Two minutes from clone to a live fare

Subscribe to the Google Flights Live API on RapidAPI (the BASIC plan is free, no card), put the key in RAPIDAPI_KEY, and run the example. Each repo’s README says how many requests it makes; plans and quotas are on the pricing page. Prefer a client library? See the SDKs.