cheapest_flight is an app in which you can enter a origin and destination, with a duration and time frame and it will return the cheapest flight. (Still in progress)
You can check this project out at: http://cheapest-flight.herokuapp.com
Or if you would like to install it yourself:
-
python2.7
-
flask
-
amadeus - You will need a client id and client secret from https://developers.amadeus.com/self-service/category/203/api-doc/5/api-docs-and-example/10003
-
Set up your environment variable AMADEUS_ID and AMADEUS_SECRET:
AMADEUS_ID={YOUR ID}
AMADEUS_SECRET={YOUR SECRET}
- Run the project
python project.py - Go on your web browser to http://localhost:8500
- Enter in origin
- Enter in destination
- Enter in first departure date
- Enter in last departure date
- Enter duration of trip
- Choose nonStop or any
- After submitting the form, it will give you the cheapest dates to fly for the choosen dates
For example, if I wanted to find the cheapest days to go from SFO to NYC (nonstop flights) for 4 days and I can leave between March 1,2019 to March 6, 2019, I'd enter the parameters:
origin: SFO
destination: NYC
first departure date: 2019-03-01
last departure date: 2019-03-06
duration: 4
nonStop: Yes
As of 2/4/2019, the list of endpoints that the Amadeus API supports can be found here.
Me and my friends had wanted to go to Japan in the month of August. We didn't really care when we left, as long as it was in August and it lasted for 2 weeks. We wanted to find the cheapest dates to go. It would have been very cumbersome to lookup each day in the month of August manually to find the cheapest flights, so this app was born!