search | object | No | Live flight search by route and dates. Use city codes by default (PAR, NYC); use airport codes (CDG, JFK) only when the user specifies a particular airport. |
search.origin | string | Yes | Origin IATA city code (e.g. PAR, NYC, LON) or airport code (e.g. CDG, JFK, LHR). City codes preferred — they search all airports in the city. |
search.origin_type | enum ("city" | "airport") | No | Whether origin is a city code or airport code. Defaults to “city”. |
search.destination | unknown | Yes | Destination IATA city code (e.g. MIL, BCN, TYO) or airport code (e.g. MXP, BCN, NRT). City codes preferred. |
search.destination_type | enum ("city" | "airport") | No | Whether destination is a city code or airport code. Defaults to “city”. |
search.departure_date | string | Yes | Departure date (YYYY-MM-DD) |
search.return_date | string | No | Return date (YYYY-MM-DD) for round-trip. |
search.cabin_class | enum ("economy" | "premium_economy" | "business" | "first") | No | Cabin class filter. |
search.direct_only | boolean | No | Only return nonstop flights. |
price_check | object | No | Get live pricing for a specific flight deal. Returns confirmed fares with trip_item_token for booking. |
price_check.offer_token | string | Yes | offer_token from flight_calendar, find_destination, or flight_calendar results. |
passengers | object | No | Passenger counts. Defaults to 1 adult. |
passengers.adults | integer | No | Adult travelers (12+) |
passengers.children | integer | No | Child travelers (2-11) |
passengers.infants | integer | No | Infant travelers (under 2) |
currency | string | No | ISO 4217 currency code. Defaults to “USD”. |
locale | string | No | BCP 47 locale. Defaults to “en-US”. |