Search Google Flights for cheapest fares, compare dates, filter by cabin class, stops, airlines, and departure times — powered by fli
Search Google Flights for real-time fares, compare dates, and find the cheapest travel options.
You have access to flight search through the OpenLabor API.
Use the exec tool to run use. Credentials are loaded automatically from the workspace.
use flights SEARCH_FLIGHTS '{"origin":"JFK","destination":"LAX","date":"2026-12-25"}'
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | string | required | Departure airport IATA code (e.g. "JFK", "CDG", "NRT") |
destination| string |
| required |
| Arrival airport IATA code (e.g. "LAX", "LHR", "SIN") |
date | string | required | Travel date in YYYY-MM-DD format |
cabin_class | string | "ECONOMY" | One of: "ECONOMY", "PREMIUM_ECONOMY", "BUSINESS", "FIRST" |
max_stops | string | "ANY" | One of: "NON_STOP", "ONE_STOP", "TWO_PLUS", "ANY" |
sort_by | string | "CHEAPEST" | One of: "CHEAPEST", "DURATION", "DEPARTURE_TIME", "ARRIVAL_TIME" |
airlines | string | "" | Comma-separated IATA airline codes to filter (e.g. "AA,UA,DL") |
departure_time | string | "" | Time window in HH-HH format (e.g. "06-20" for 6am-8pm) |
adults | string | "1" | Number of adult passengers |
# Basic one-way search
use flights SEARCH_FLIGHTS '{"origin":"JFK","destination":"LAX","date":"2026-12-25"}'
# Business class, non-stop only
use flights SEARCH_FLIGHTS '{"origin":"JFK","destination":"LHR","date":"2026-10-25","cabin_class":"BUSINESS","max_stops":"NON_STOP"}'
# Morning departures, sorted by duration
use flights SEARCH_FLIGHTS '{"origin":"CDG","destination":"NRT","date":"2026-06-15","departure_time":"06-12","sort_by":"DURATION"}'
# Specific airlines only
use flights SEARCH_FLIGHTS '{"origin":"SFO","destination":"SEA","date":"2026-08-01","airlines":"UA,AS","max_stops":"NON_STOP"}'
Find the cheapest fares across a date range.
use flights SEARCH_DATES '{"origin":"JFK","destination":"LHR","from_date":"2026-01-01","to_date":"2026-02-01"}'
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | string | required | Departure airport IATA code |
destination | string | required | Arrival airport IATA code |
from_date | string | required | Start of date range (YYYY-MM-DD) |
to_date | string | required | End of date range (YYYY-MM-DD) |
days_of_week | string | "" | Filter by day names, comma-separated (e.g. "monday,friday") |
cabin_class | string | "ECONOMY" | One of: "ECONOMY", "PREMIUM_ECONOMY", "BUSINESS", "FIRST" |
# Find cheapest dates in January
use flights SEARCH_DATES '{"origin":"JFK","destination":"LHR","from_date":"2026-01-01","to_date":"2026-01-31"}'
# Weekend flights only
use flights SEARCH_DATES '{"origin":"LAX","destination":"CUN","from_date":"2026-03-01","to_date":"2026-04-01","days_of_week":"friday,saturday"}'
# Business class date comparison
use flights SEARCH_DATES '{"origin":"SFO","destination":"NRT","from_date":"2026-06-01","to_date":"2026-06-30","cabin_class":"BUSINESS"}'
Flight search returns an array of flights, each with:
price — Fare in local currencyduration — Total flight timeairline — Operating carrier(s)stops — Number of stops and layover infodeparture_time — Departure date and timearrival_time — Arrival date and timeDate search returns an array of dates with:
date — Travel dateprice — Cheapest fare for that datecabin_class: "BUSINESS" and max_stops: "NON_STOP"