Google Flights
Overview
Flight search and pricing — adapter-based DOM extraction from rendered Google Flights pages.
Workflows
Search flights on a route
searchFlights(tfs) → flights[] with airline, times, price, stops, duration
Explore destinations from an origin
exploreDestinations() → destinations[] with flightPrice, dates, stops
- Build
tfs for a chosen destination → searchFlights(tfs) for specific flights
Compare search results with price insights
searchFlights(tfs) → current flight options and prices
getPriceInsights(tfs) → cheapest/most expensive months, price trend, popular airlines
getFlightOverview(tfs) → cheapest fares and fastest nonstop for the route
All tfs-based operations share the same encoded route parameter (from the Google Flights URL).
Get booking details for a specific itinerary
searchFlights(tfs) → pick a flight
getFlightBookingDetails(tfs) → leg details, baggage policies, booking links
Operations
| Operation |
Intent |
Key Input |
Key Output |
Notes |
| searchFlights |
search flights by route and dates |
tfs (encoded route+dates) |
origin, destination, flights[].airline, price, stops, duration |
entry point; verified |
| getFlightOverview |
cheapest fares and fastest flight for a route |
tfs (encoded route) |
cheapestOptions[].price, airline, fastestFlight, nonstopFrequency |
entry point; same tfs |
| getFlightBookingDetails |
itinerary details with baggage |
tfs (encoded itinerary) |
totalPrice, legs[].airline, duration, bagPolicies, bookWith |
entry point; same tfs |
| exploreDestinations |
browse destinations by budget from origin |
— (optional tfs) |
destinations[].destination, flightPrice, hotelPricePerNight, dates |
entry point |
| getPriceInsights |
monthly price trends and predictions |
tfs (encoded route) |
priceTrend, cheapestMonth, mostExpensiveMonth, popularAirlines |
entry point; same tfs |
Quick Start
# Search flights RDU → LGA (tfs from Google Flights URL)
openweb google-flights exec searchFlights '{"tfs":"CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdyDQgDEgkvbS8wMl8yODYaKRIKMjAyNi0wNS0wNGoNCAMSCS9tLzAyXzI4NnIMCAISCC9tLzBmdnlnQAFIAXABggELCP___________wGYAQE"}'
# Explore destinations (default origin)
openweb google-flights exec exploreDestinations '{}'
# Price insights for a route
openweb google-flights exec getPriceInsights '{"tfs":"CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdyDQgDEgkvbS8wMl8yODYaKRIKMjAyNi0wNS0wNGoNCAMSCS9tLzAyXzI4NnIMCAISCC9tLzBmdnlnQAFIAXABggELCP___________wGYAQE"}'
1---2name: google-flights3description: Google Flights4---5# Google Flights67## Overview8Flight search and pricing — adapter-based DOM extraction from rendered Google Flights pages.910## Workflows1112### Search flights on a route131. `searchFlights(tfs)` → `flights[]` with airline, times, price, stops, duration1415### Explore destinations from an origin161. `exploreDestinations()` → `destinations[]` with flightPrice, dates, stops172. Build `tfs` for a chosen destination → `searchFlights(tfs)` for specific flights1819### Compare search results with price insights201. `searchFlights(tfs)` → current flight options and prices212. `getPriceInsights(tfs)` → cheapest/most expensive months, price trend, popular airlines223. `getFlightOverview(tfs)` → cheapest fares and fastest nonstop for the route2324All `tfs`-based operations share the same encoded route parameter (from the Google Flights URL).2526### Get booking details for a specific itinerary271. `searchFlights(tfs)` → pick a flight282. `getFlightBookingDetails(tfs)` → leg details, baggage policies, booking links2930## Operations3132| Operation | Intent | Key Input | Key Output | Notes |33|-----------|--------|-----------|------------|-------|34| searchFlights | search flights by route and dates | tfs (encoded route+dates) | origin, destination, flights[].airline, price, stops, duration | entry point; verified |35| getFlightOverview | cheapest fares and fastest flight for a route | tfs (encoded route) | cheapestOptions[].price, airline, fastestFlight, nonstopFrequency | entry point; same tfs |36| getFlightBookingDetails | itinerary details with baggage | tfs (encoded itinerary) | totalPrice, legs[].airline, duration, bagPolicies, bookWith | entry point; same tfs |37| exploreDestinations | browse destinations by budget from origin | — (optional tfs) | destinations[].destination, flightPrice, hotelPricePerNight, dates | entry point |38| getPriceInsights | monthly price trends and predictions | tfs (encoded route) | priceTrend, cheapestMonth, mostExpensiveMonth, popularAirlines | entry point; same tfs |3940## Quick Start4142```bash43# Search flights RDU → LGA (tfs from Google Flights URL)44openweb google-flights exec searchFlights '{"tfs":"CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdyDQgDEgkvbS8wMl8yODYaKRIKMjAyNi0wNS0wNGoNCAMSCS9tLzAyXzI4NnIMCAISCC9tLzBmdnlnQAFIAXABggELCP___________wGYAQE"}'4546# Explore destinations (default origin)47openweb google-flights exec exploreDestinations '{}'4849# Price insights for a route50openweb google-flights exec getPriceInsights '{"tfs":"CBwQAhopEgoyMDI2LTA0LTMwagwIAhIIL20vMGZ2eWdyDQgDEgkvbS8wMl8yODYaKRIKMjAyNi0wNS0wNGoNCAMSCS9tLzAyXzI4NnIMCAISCC9tLzBmdnlnQAFIAXABggELCP___________wGYAQE"}'51```