name: google-flights description: Search and browse flight options via Google Flights. Parses flight results including prices, times, airlines, and durations. Use when the user needs to search for flights or compare flight options.
Google Flights Search
Search and parse flight options from Google Flights without needing an API.
Quick Usage
cd ~/.openclaw/workspace/skills/google-flights
./search_flights.py <origin> <destination> <date> [--return-date YYYY-MM-DD]
Examples:
# One-way flight
./search_flights.py BOS ORD 2026-02-24
# Round-trip flight
./search_flights.py BOS ORD 2026-02-24 --return-date 2026-02-28
# With airport names
./search_flights.py "Boston" "Chicago" 2026-02-24
What it does
- Constructs proper Google Flights search URL
- Fetches the flight search results page
- Parses flight listings including:
- Departure/arrival times
- Airlines
- Flight duration
- Price
- Nonstop vs connections
- Returns formatted, readable flight options
Output format
For each flight:
- Time range (e.g., "5:31 PM - 7:48 PM")
- Airline
- Price
- Duration
- Connection status
Sorted by relevance (Google's "Best" ranking)
Use cases
- Book upcoming trips
- Compare flight prices
- Find specific departure times (morning/evening/etc.)
- Check flight availability for conferences/events
Limitations
- Requires web_fetch capability
- Depends on Google Flights HTML structure (may break if Google changes layout)
- No booking capability (returns search results only)
- Best for US domestic flights (international may have different format)
Future improvements
- Filter by time of day (morning/afternoon/evening)
- Filter by airline
- Filter by max price
- Multi-city support
- Alert when prices drop