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.txtPaste 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.
| Tool | What it does here | Price |
|---|---|---|
serpapi/google/flights-autocomplete | Turns a city or airport name into airport codes and location ids, so every search uses the right airport. | $0.020 / callRp353 / call |
serpapi/google/flights | Searches itineraries and fares between airports for given dates. | $0.020 / callRp353 / call |
serpapi/google/flights-deals | Finds discounted flight deals from one origin across many destinations. | $0.020 / callRp353 / call |
serpapi/google/travel-explore | Lists destinations reachable from an origin airport with prices, for trips where the destination is still open. | $0.020 / callRp353 / call |
Step by step
- Pin the airports. Run
serpapi/google/flights-autocompletefor 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. - 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_toolonserpapi/google/flightsto read the inputs and the price per search. - 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.
- 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.
- 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.
- Look elsewhere when the price will not move. If the route stays expensive, ask
serpapi/google/travel-explorewhat is cheap from your airport for the same dates, or checkserpapi/google/flights-dealsfor 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.
| Field | What it means | Why keep it |
|---|---|---|
| Route and airports | Origin and destination codes | Different airports have different prices |
| Travel dates | Departure and return date | The fare belongs to these dates only |
| Passengers and cabin | Who is flying and in which class | Change either and the fare changes |
| Cheapest fare | The lowest price in the result | The number you track |
| Airline, stops and duration | What that fare buys | Stops you from cheering a bad itinerary |
| Searched on | The date you ran the search | Shows 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.
| Call | Tool | Count | USD | IDR |
|---|---|---|---|---|
| Airport code lookups | serpapi/google/flights-autocomplete | 2 | $0.039 | Rp706 |
| Fare searches, 7 dates x 4 runs | serpapi/google/flights | 28 | $0.547 | Rp9.884 |
| Total | $0.586 | Rp10.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?
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.