✓ Verified 🌐 Web Scrapers ✓ Enhanced Data

Google Flights

Search Google Flights for prices and availability.

Rating
4.3 (305 reviews)
Downloads
40,496 downloads
Version
1.0.0

Overview

Search Google Flights for prices and availability.

Complete Documentation

View Source →

Flights

Two modes: quick (prices only, fast) and full (airlines/times/stops, browser).

Quick Mode (Default)

Use scripts/search.py for fast price lookups:

bash
./scripts/search.py YYC LAX "2026-03-15"
./scripts/search.py YYC LAX tomorrow --return "next friday"
./scripts/search.py JFK LHR "Mar 1" --adults 2 --seat business

Output: Price trend (low/typical/high), price range, flight count, Google Flights link.

Options:

  • --return, -r — Return date for round-trip
  • --adults, -a — Number of adults (default: 1)
  • --children, -c — Number of children
  • --seat, -s — economy, premium-economy, business, first
  • --json — JSON output

Full Mode (Browser)

When user needs airlines, times, or specific flight options — use browser automation:

text
1. browser open (profile: clawd, targetUrl: google flights URL)
2. browser snapshot (wait for "results returned" alert)
3. Parse link descriptions for flight data
4. browser close

URL Format

text
# One-way
https://www.google.com/travel/flights?q=Flights%20from%20{FROM}%20to%20{TO}%20on%20{DATE}%20one%20way&hl=en

# Round-trip
https://www.google.com/travel/flights?q=Flights%20from%20{FROM}%20to%20{TO}%20on%20{DATE}%20returning%20{RETURN}&hl=en

Parsing Snapshot

Flight data in link elements:

text
"From 737 Canadian dollars... flight with Air Canada. Leaves... at 6:25 AM... arrives at 11:48 AM... Total duration 6 hr 23 min. 1 stop... Layover 1 hr 30 min at YVR..."

Full Mode Output

text
✈️ YYC → LAX | Fri Feb 20

1. Air Canada | 6:25 AM → 11:48 AM | 6h 23m | 1 stop (YVR) | CA$737
2. United | 6:15 AM → 11:31 AM | 6h 16m | 1 stop (DEN) | CA$744
3. WestJet | 9:00 AM → 11:27 AM | 3h 27m | Nonstop | CA$1,047 ⭐

🔗 Book on Google Flights: [link]

Setup (Quick Mode)

Quick mode requires fast-flights. Install once:

bash
cd skills/google-flights
uv venv && source .venv/bin/activate && uv pip install fast-flights

When to Use Which

User RequestMode
"How much to fly to NYC?"Quick
"Are flights to LA cheap right now?"Quick
"Find me flights on March 5th"Full
"What airlines fly YYC to LAX?"Full
"Best nonstop options to Denver"Full
"Compare morning vs evening flights"Full

Installation

Terminal bash

openclaw install google-flights
    
Copied!

💻Code Examples

./scripts/search.py JFK LHR "Mar 1" --adults 2 --seat business

scriptssearchpy-jfk-lhr-mar-1---adults-2---seat-business.txt
**Output:** Price trend (low/typical/high), price range, flight count, Google Flights link.

**Options:**
- `--return`, `-r` — Return date for round-trip
- `--adults`, `-a` — Number of adults (default: 1)
- `--children`, `-c` — Number of children  
- `--seat`, `-s` — economy, premium-economy, business, first
- `--json` — JSON output

## Full Mode (Browser)

When user needs airlines, times, or specific flight options — use browser automation:

https://www.google.com/travel/flights?q=Flights%20from%20{FROM}%20to%20{TO}%20on%20{DATE}%20returning%20{RETURN}&hl=en

httpswwwgooglecomtravelflightsqflights20from20from20to20to20on20date20returning20returnhlen.txt
### Parsing Snapshot

Flight data in link elements:

🔗 Book on Google Flights: [link]

-book-on-google-flights-link.txt
## Setup (Quick Mode)

Quick mode requires `fast-flights`. Install once:
example.sh
./scripts/search.py YYC LAX "2026-03-15"
./scripts/search.py YYC LAX tomorrow --return "next friday"
./scripts/search.py JFK LHR "Mar 1" --adults 2 --seat business
example.txt
1. browser open (profile: clawd, targetUrl: google flights URL)
2. browser snapshot (wait for "results returned" alert)
3. Parse link descriptions for flight data
4. browser close
example.txt
# One-way
https://www.google.com/travel/flights?q=Flights%20from%20{FROM}%20to%20{TO}%20on%20{DATE}%20one%20way&hl=en

# Round-trip
https://www.google.com/travel/flights?q=Flights%20from%20{FROM}%20to%20{TO}%20on%20{DATE}%20returning%20{RETURN}&hl=en
example.txt
✈️ YYC → LAX | Fri Feb 20

1. Air Canada | 6:25 AM → 11:48 AM | 6h 23m | 1 stop (YVR) | CA$737
2. United | 6:15 AM → 11:31 AM | 6h 16m | 1 stop (DEN) | CA$744
3. WestJet | 9:00 AM → 11:27 AM | 3h 27m | Nonstop | CA$1,047 ⭐

🔗 Book on Google Flights: [link]

Tags

#search_and-research

Quick Info

Category Web Scrapers
Model Gemini 2.0
Complexity One-Click
Author kris-hansen
Last Updated 3/10/2026
🚀
Optimized for
Gemini 2.0
💎

Ready to Install?

Get started with this skill in seconds

openclaw install google-flights