CLI tool to search Google Flights. Get prices, times, and airlines from the command line.
$ flight-search DEN LAX --date 2026-03-01
✈️ DEN → LAX
One way · 2026-03-01
Prices are currently: typical
──────────────────────────────────────────────────
Frontier ⭐ BEST
🕐 10:43 PM → 12:30 AM +1
⏱️ 2 hr 47 min
✅ Nonstop
💰 $84
──────────────────────────────────────────────────
United ⭐ BEST
🕐 5:33 PM → 7:13 PM
⏱️ 2 hr 40 min
✅ Nonstop
💰 $139Built on top of fast-flights - no API key required.
# one-liner
curl -fsSL https://raw.githubusercontent.com/Olafs-World/flight-search/main/install.sh | bash
# using uv (recommended)
uv tool install flight-search
# or pip
pip install flight-search
# or run directly without installing
uvx flight-search DEN LAX --date 2026-03-01# check current version
flight-search --version
# update with uv
uv tool upgrade flight-search
# or with pip
pip install --upgrade flight-search
# or with pipx
pipx upgrade flight-search# One-way flight
flight-search DEN LAX --date 2026-03-01
# Round trip
flight-search JFK LHR --date 2026-06-15 --return 2026-06-22
# Multiple passengers, business class
flight-search SFO NRT --date 2026-04-01 --class business --adults 2
# JSON output for scripts
flight-search ORD CDG --date 2026-05-01 --output jsonpositional arguments:
origin Origin airport code (e.g., DEN, LAX, JFK)
destination Destination airport code
options:
--date, -d Departure date (YYYY-MM-DD) [required]
--return, -r Return date for round trips (YYYY-MM-DD)
--adults, -a Number of adults (default: 1)
--children, -c Number of children (default: 0)
--class, -C Seat class: economy, premium-economy, business, first
--limit, -l Max results (default: 10)
--output, -o Output format: text or json (default: text)
flight-search DEN LAX --date 2026-03-01 --output json{
"origin": "DEN",
"destination": "LAX",
"date": "2026-03-01",
"return_date": null,
"current_price": "typical",
"flights": [
{
"airline": "Frontier",
"departure_time": "10:43 PM",
"arrival_time": "12:30 AM",
"duration": "2 hr 47 min",
"stops": 0,
"price": 84,
"is_best": true
}
]
}This can happen when the underlying library's fallback request method fails. Workarounds:
- Try again - Sometimes transient
- Use from a different network - Some networks/regions have issues
- Install Playwright for local browser mode:
pip install playwright playwright install chromium
The library scrapes Google Flights directly. It doesn't require an API key, but Google's anti-bot measures can sometimes block requests.
from flight_search import search_flights
result = search_flights(
origin="DEN",
destination="LAX",
date="2026-03-01",
adults=2,
seat_class="economy",
)
for flight in result.flights:
print(f"{flight.airline}: ${flight.price}")- GitHub
- PyPI
- ClawHub Skill
- fast-flights (underlying library)
# Auto-detects how you installed it (uv/pipx/pip) and upgrades
flight-search --upgrade