You need to use the /flights/detail endpoint to get the list of prices.
Note: The prices displayed on the website will be rounded compared to the prices in the endpoint.
Please refer to the image for a better understanding https://drive.google.com/file/d/15q4BP9VaA0s0Zx20EOWXO5Hn2hGzkW0n/view
Regarding the’stops’ parameter, you have passed the wrong value.
The ‘stops’ parameter have the values I listed: direct,1stop,2stops.
It is not the number.
As for the price, we will investigate and notify you as soon as possible
Thanks
i tried to add stops=0 to the endpoint but i still get another 2 options in the data (One and twoOrMore) which i dont reaaly need.
Also the data comes that way that make it impossible to know which price is relative to which flight, even after parsing and looping into.
I have just added the ‘stops’ parameter to the following endpoints.
Now you can use it to get direct flights.
/flights/search-roundtrip
/flights/search-one-way
/flights/search-multi-city
/flights/search-incomplete
The Skyscanner API does not have a parameter to get direct flights.
Instead, it retrieves full data, and then filters direct flights on the website.
We are currently investigating how to filter direct flights in the list of flights, and will notify you when we have results.
Hi,
You need to use the /flights/detail endpoint to get the list of prices.
Note: The prices displayed on the website will be rounded compared to the prices in the endpoint.
Please refer to the image for a better understanding
https://drive.google.com/file/d/15q4BP9VaA0s0Zx20EOWXO5Hn2hGzkW0n/view
Thanks.
Hi,
Regarding the’stops’ parameter, you have passed the wrong value.
The ‘stops’ parameter have the values I listed: direct,1stop,2stops.
It is not the number.
As for the price, we will investigate and notify you as soon as possible
Thanks.
Thanks
i tried to add stops=0 to the endpoint but i still get another 2 options in the data (One and twoOrMore) which i dont reaaly need.
Also the data comes that way that make it impossible to know which price is relative to which flight, even after parsing and looping into.
Hi,
I have just added the ‘stops’ parameter to the following endpoints.
Now you can use it to get direct flights.
/flights/search-roundtrip
/flights/search-one-way
/flights/search-multi-city
/flights/search-incomplete
Thanks.
Hi,
The Skyscanner API does not have a parameter to get direct flights.
Instead, it retrieves full data, and then filters direct flights on the website.
We are currently investigating how to filter direct flights in the list of flights, and will notify you when we have results.
Thanks.