CLI tool to search Google Flights - prices, times, and airlines
Project description
✈️ flight-search
CLI tool to search Google Flights. Get prices, times, and airlines from the command line.
Built on top of fast-flights - no API key required.
Installation
# 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 2025-03-01
Usage
# One-way flight
flight-search DEN LAX --date 2025-03-01
# Round trip
flight-search JFK LHR --date 2025-06-15 --return 2025-06-22
# Multiple passengers, business class
flight-search SFO NRT --date 2025-04-01 --class business --adults 2
# JSON output
flight-search ORD CDG --date 2025-05-01 --output json
Options
positional 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)
Example Output
✈️ DEN → LAX
One way · 2025-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
💰 $139
JSON Output
flight-search DEN LAX --date 2025-03-01 --output json
{
"origin": "DEN",
"destination": "LAX",
"date": "2025-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
}
]
}
Python API
from flight_search import search_flights
result = search_flights(
origin="DEN",
destination="LAX",
date="2025-03-01",
adults=2,
seat_class="economy",
)
for flight in result.flights:
print(f"{flight.airline}: ${flight.price}")
Links
- GitHub
- PyPI
- ClawHub Skill
- fast-flights (underlying library)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flight_search-0.1.1.tar.gz
(876.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flight_search-0.1.1.tar.gz.
File metadata
- Download URL: flight_search-0.1.1.tar.gz
- Upload date:
- Size: 876.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2c0ce7abd046b0620b5ca387b54c8198bb83b1fecc4e8c1a87ca52db3f38a14
|
|
| MD5 |
c5a47c7bc2227853e6dd41328bdb8da1
|
|
| BLAKE2b-256 |
bc85d7a71a9fa13a0b8bf33ec186bcff4b8e9442fe74c98601854e8478734675
|
File details
Details for the file flight_search-0.1.1-py3-none-any.whl.
File metadata
- Download URL: flight_search-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28c13c73cf016f5e98c1be6996009130044f53a7bfa2fc98546f7226b3a46ba3
|
|
| MD5 |
8cd575a6f5b927b0b7493dd5bd4aa9b2
|
|
| BLAKE2b-256 |
7f3fd9f810184067d5b71a88afee62b0ad5da38e6cb616bd5a859808f13d66b5
|