Get flight search links for a route
get_flight_linksBuild a flight search link on Booking.com Flights for a route and optional dates, and return up to four VoyageHacks guides on fares, budget airlines and baggage rules for that trip. Pass origin and destination as IATA codes for a prefilled route search; without both, the link opens the general flight search page. Also returns a delayed or cancelled flight compensation link (AirHelp), a Vueling link for short-haul Europe, and, when the route touches their hubs, direct links for Air Serbia (Belgrade) and Air India. The Booking.com link is regionalized to the traveler's country. Useful when a trip involves air travel and the user wants somewhere to compare fares. It returns search links only: no live fares, seat availability or schedules, no booking, and no airport transfer (get_airport_transfer_links covers that). Affiliate links: VoyageHacks may earn a commission at no additional cost to the traveler, which should be disclosed when the links are presented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the VoyageHacks guides returned. One of: en, de, fr, es, it, pl, cs, ja, nl, pt, zh. Defaults to "en". | |
| origin | No | Origin IATA city or airport code, e.g. LON, NYC, BER. | |
| country | No | ISO 3166-1 alpha-2 country the traveler is booking from, e.g. US, DE, GB. Selects the regional Booking.com programme. Defaults to the caller's geolocation, then to the language default. | |
| passengers | No | Number of adult passengers. Defaults to 1. | |
| depart_date | No | Outbound date, YYYY-MM-DD. Omitted dates default to about a month ahead. | |
| destination | No | Destination IATA city or airport code, e.g. HKT, TYO, ROM. | |
| return_date | No | Return date, YYYY-MM-DD. Omit for a one-way search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| route | No | ||
| guides | Yes | Matching VoyageHacks guides that can be cited as sources. | |
| region | No | ||
| vueling | No | ||
| airIndia | No | ||
| airSerbia | No | ||
| disclosure | Yes | ||
| flightSearch | Yes | ||
| flightCompensation | No |