Skip to main content
POST
Best date options for a route — up to ten cheapest itineraries, one per date-pair, spread across the month
Answers “when should I fly?” for a known route. Takes the same inputs as Flight Calendar but returns up to ten cheapest itineraries, one per (departure, return) date-pair, spread across the requested departure window, so the user gets a diverse shortlist rather than ten near-adjacent cheapest days. Cache-backed; no live pricing. Each result includes an offer token you can pass into a live price check or directly into a trip.

Authorizations

X-API-Key
string
header
required

Body

application/json
origins
string[]
required
Minimum array length: 1
Example:
trip_type
enum<string>
required
Available options:
oneway,
roundtrip
Example:

"roundtrip"

destinations
string[]
Example:
origin_type
enum<string>
default:city
Available options:
city,
airport
destination_type
enum<string>
default:city
Available options:
city,
airport
departure_dates
string[]
Pattern: ^\d{4}-\d{2}-\d{2}$
Example:
departure_date_ranges
object[]
return_dates
string[]
Pattern: ^\d{4}-\d{2}-\d{2}$
Example:
return_date_ranges
object[]
stay_days
integer
Required range: x > 0
Example:

7

stay_days_range
object
cabin_class
enum<string>
Available options:
economy,
premium_economy,
business,
first
Example:

"economy"

direct_only
boolean
Example:

false

adults
integer
Required range: x >= 0
Example:

1

children
integer
Required range: x >= 0
infants_in_lap
integer
Required range: x >= 0
infants_in_seat
integer
Required range: x >= 0
youth
integer
Required range: x >= 0
student
integer
Required range: x >= 0
ages
integer[]
Required range: x >= 0
residency_country
string
Required string length: 2
max_total
number
Required range: x > 0
Example:

800

currency
string
Example:

"USD"

locale
string
Example:

"en-US"

limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0
sort_by
enum<string>
default:lowest
Available options:
lowest,
recommendation
intent
object

Response

Best date options (one itinerary per date-pair)

itineraries
object[]
required
next_page_token
string
Example:

"eyJvZmZzZXQiOjIwfQ=="