Local and travel

How to track flight prices and find cheap dates with an AI agent

Updated · 1ToolRing team

Flight price tracking means searching the same route and dates on a schedule and recording the lowest fare each time, so you can see when it drops. With 1ToolRing your agent runs serpapi/google/flights for the route and serpapi/google/travel-explore to find cheaper destinations. Every search in the log is billed per call from your prepaid balance, so the size of the date grid sets the cost.

Anyone with flexible dates wants two answers: is this fare low for the route, and would another day or airport be cheaper. Checking a flight site every morning answers neither well, because yesterday's price is gone by the time you look again.

An agent can keep the log for you. It searches the route with the same settings each time, saves the cheapest fare with the date it saw it and tells you when the number moves. What you have to get right is the airport codes, the passenger count, the cabin, and comparing one-way fares only with one-way fares.

Paste this into your agent

Works in Claude, ChatGPT, Cursor, Codex, n8n and any MCP client. Change the placeholders, keep the row cap.

Set up 1ToolRing from 1toolring.com/install, then track economy fares from Singapore to Tokyo for 1 adult, departing any day from 3 to 9 June 2027 and returning 7 days later. Use serpapi/google/flights-autocomplete to confirm the airport codes, then serpapi/google/flights once per departure date. Inspect the price first and stop at 7 searches. Return a table of departure date, cheapest fare, airline, stops and total travel time, and save it to fares.csv with today's date so I can rerun it next week.

First time? Set up takes one command or one connector URL:

set up 1ToolRing - https://1toolring.com/llms.txt

Paste this into your agent's chat (Claude Code, Codex, Cursor, ChatGPT, claude.ai). Your agent sets up 1ToolRing and you sign in.

Tools this workflow uses

Your agent finds these with discover_tools and reads each input schema and price with inspect_tool. Both are free. Only a successful run is charged.

ToolWhat it does herePrice
serpapi/google/flights-autocompleteTurns a city or airport name into airport codes and location ids, so every search uses the right airport.$0.020 / callRp353 / call
serpapi/google/flightsSearches itineraries and fares between airports for given dates.$0.020 / callRp353 / call
serpapi/google/flights-dealsFinds discounted flight deals from one origin across many destinations.$0.020 / callRp353 / call
serpapi/google/travel-exploreLists destinations reachable from an origin airport with prices, for trips where the destination is still open.$0.020 / callRp353 / call

Step by step

  1. Pin the airports. Run serpapi/google/flights-autocomplete for each city to get the airport codes. Decide whether a city with several airports is searched as one or airport by airport, and keep that choice for every run.
  2. Fix the search settings. Write down passengers, cabin, one-way or return, and currency. A fare log only works when every row uses the same settings. Have the agent run inspect_tool on serpapi/google/flights to read the inputs and the price per search.
  3. Search a small date grid. Search each departure date in your window once, so seven dates means seven searches. Keep the grid small at first and widen it only around the cheaper days.
  4. Log the cheapest fare with its details. For each search, save the lowest fare with airline, stops, travel time and the date you searched. A cheap fare with two stops and a long layover is a very different trip from a direct flight at a slightly higher price.
  5. Rerun on a schedule. Run the same grid every few days or every week and compare it with the log. Schedule it from your own agent runner or from n8n, and keep the search cap in the prompt.
  6. Look elsewhere when the price will not move. If the route stays expensive, ask serpapi/google/travel-explore what is cheap from your airport for the same dates, or check serpapi/google/flights-deals for discounted routes.

What is flight price tracking?

Flight price tracking is a fare search for one route and set of dates, repeated and saved over time. One search gives you today's price. A log of searches across two weeks shows whether today's price is high or low for that route, which is the thing you need to decide when to book.

Which fields should a fare log keep?

Store the search settings on every row. A fare without them cannot be compared with the next run.

FieldWhat it meansWhy keep it
Route and airportsOrigin and destination codesDifferent airports have different prices
Travel datesDeparture and return dateThe fare belongs to these dates only
Passengers and cabinWho is flying and in which classChange either and the fare changes
Cheapest fareThe lowest price in the resultThe number you track
Airline, stops and durationWhat that fare buysStops you from cheering a bad itinerary
Searched onThe date you ran the searchShows how the fare moved

How do I find the cheapest dates to fly?

Search a grid of departure dates with the same trip length and settings, then sort by fare. Start with a week around your preferred date. If the cheap days cluster on one side, extend the grid in that direction rather than searching a whole month at once, since each date is its own search.

Which flight tool answers which question?

Pick the tool by the question you are asking.

  • How much is this route on these dates? Use serpapi/google/flights.
  • Where can I go cheaply from my airport? Use serpapi/google/travel-explore.
  • Are there discounted routes from here right now? Use serpapi/google/flights-deals.
  • What is the code for this airport? Use serpapi/google/flights-autocomplete.

When is fare tracking the wrong tool?

A fare log records prices at the moment of each search. It cannot predict tomorrow's fare or hold a seat. Baggage and seat fees are not always part of the fare in the result, so compare the full price on the airline's site before you book, and do not expect historical fares from before your first run.

What does it cost?

One route, a seven-date grid searched twice a week for two weeks, with the airport codes looked up once.

CallToolCountUSDIDR
Airport code lookupsserpapi/google/flights-autocomplete2$0.039Rp706
Fare searches, 7 dates x 4 runsserpapi/google/flights28$0.547Rp9.884
Total$0.586Rp10.590

Computed from list prices as of 2026-11-10. A run is held at its maximum and settled to the real cost, and a failed call is not charged. See how pricing works.

Questions

Can I get Google Flights data through an API?
Yes. serpapi/google/flights returns itineraries and fares between airports for given dates as JSON. Run serpapi/google/flights-autocomplete first so the airport codes are right before the first paid search.
How often should I check flight prices?
Every few days is enough for most trips booked weeks ahead. Daily checks cost more and often show small moves. Tighten the schedule as the departure date gets closer if you are still waiting.
Can the agent alert me when a fare drops?
Yes, if it runs on a schedule and compares each result with the log. Set the threshold yourself, for example any fare below the lowest one logged so far, and have it message you only then.
Does the fare include baggage?
Not always. The search returns the fare shown for the itinerary, and baggage rules depend on the airline and fare type. Check the airline's fare details before you pick between two cheap options.
Can one log hold return and one-way fares?
Keep them apart. A return fare covers both legs, so compare it only with other return fares, and give one-way searches their own rows with the trip type in a column. The agent cannot book either kind; booking happens with the airline or a travel site.