duffelhq / duffel-api-python

Python client library for the Duffel API
https://duffel.com/docs
MIT License
16 stars 7 forks source link

Search for a date range with a single network query #380

Open AndriyKy opened 2 months ago

AndriyKy commented 2 months ago

Is your feature request related to a problem? I'm often frustrated when I need to search for flights within a specific departure date rather than on a range of dates. Currently, the Duffel API only allows searches based on a precise departure date, which limits the possibility of searching for flights in a wider range. This makes it challenging to find the best possible flight options within a certain time frame.

Describe the solution you'd like I would like the Duffel API to support searching for flights within a range of dates. Similar to the Tequila Kiwi API, where users can specify a "date_from" and search for flights over multiple days/weeks, it would be helpful if Duffel allowed the input of a date range (e.g., "from_date" and "to_date") for flight searches. This feature would enhance the user experience by providing more flight options and making the search process more flexible.

Describe alternatives you've considered An alternative is using the Tequila Kiwi API, which already offers this functionality, but it would be more convenient to have this feature directly within Duffel.

Additional context Adding this feature would make the Duffel API more competitive and convenient for both developers and users, especially for travelers with flexible schedules or those who are undecided about a date. It could also increase user satisfaction by simplifying the process of finding flights within a specific date range.