Amadeus Self-Service is gone, so I rebuilt the Day 39 flight deal finder without the target-price column
A lot of people learning Python build the same project around day 39 of a well-known course: keep a sheet of destinations with the most you'd pay to fly there, check fares every day, and get an alert when something drops below it. The fare source in most of those repos was Amadeus Self-Service, and if you try it today the first request dies before it reaches anything, because test.api.amadeus.com doesn't resolve anymore.
I build a Google Flights API (FlightPowers), so I rewrote the check on it, and the part I ended up deleting was the sheet's lowest-price column. Picking that number was always a guess. Google already puts every search against its usual range for the route and says whether the fare is low, typical or high, and that comes back in each response, so the "is it a deal?" question answers itself.
Here's the whole check:
import os, requests URL = "https://google-flights-live-api.p.rapidapi.com/api/google_flights/oneway/v1" HEADERS = { "X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"], "X-RapidAPI-Host": "google-flights-live-api.p.rapidapi.com", } for to in ["CDG", "FRA", "IST", "JFK", "HND"]: for day in ["2027-01-12", "2027-01-13"]: body = {"from_airport": "LHR", "to_airport": to, "departure_date": day, "currency": "GBP"} flights = requests.post(URL, json=body, headers=HEADERS, timeout=60).json() if not flights: continue best = min(flights, key=lambda f: f["price_as_number"]) verdict = best["price_range_in_relation_to_other_periods"] flag = "DEAL" if verdict == "low" else " " print(f'{flag} LHR-{to} {day}: £{best["price_as_number"]} {best["airline"]} ' f'(Google range £{best["price_insights_low"]}-{best["price_insights_high"]}, {verdict})') I ran it at 08:07 UTC on 27 Nov 2026, ten searches. Paris, Frankfurt and Tokyo all came back typical, Paris at £68 on Air France nonstop. Two lines got the flag: London to Istanbul on 12 January at £93 with one stop, under the bottom of Google's £95-130 range, and London to New York on the 13th at £300 on TAP with one stop, against a range of £290-590. With a fixed target column I'd have needed to guess both of those thresholds months ago, and I'd probably have guessed wrong for New York.
A few notes if you're swapping it into the course project. Each date is one request, so five cities over the next eight days is 40 a day, and the free plan is 50 a month, which is enough to get it working but not to run it daily (PRO is 10$ for 2,500). The response also has a buy_link per flight, which is nicer in the alert than a bare price. And keep the sheet for the destinations, it's still the best part of the project.
If you'd rather ask in plain English from Claude or Cursor than write the loop, the same data is also an MCP server, with a free version behind a Google sign-in.
Curious what other people moved to after Amadeus closed