Hello,
I’m using the /search-everywhere API with the following request:
https://sky-scanner3.p.rapidapi.com/flights/search-everywhere?fromEntityId=eyJlIjoiMjc1MzY2MTMiLCJzIjoiWU1RQSIsImgiOiIyNzUzNjYxMyIsInQiOiJDSVRZIn0&year=2024&market=CA¤cy=CAD&month=06
I receive the response, but I’m not sure how to access the details with the result.
What is the purpose of resultIds (for example, location-29475436)? How can I use the content of results?
Thanks
הצטרף לדיון - הוסף תגובה למטה:
Olá joaoparrachito,
Você só precisa obter os dados da resposta da API e exibí-los no layout.
Olá como é que eu posso implementar a api de flights no meu site ?
Hi,
That was my mistake, I’ve just fixed it.
Thanks.
Hi, thanks but with this https://sky-scanner3.p.rapidapi.com/flights/search-roundtrip?market=CA&fromEntityId=eyJlIjoiMjc1MzY2MTMiLCJzIjoiWU1RQSIsImgiOiIyNzUzNjYxMyIsInQiOiJDSVRZIn0=&toEntityId=eyJlIjoiMjc1Mzk3MzMiLCJzIjoiUEFSSSIsImgiOiIyNzUzOTczMyIsInQiOiJDSVRZIn0=&wholeMonthDepart=2025-03&wholeMonthReturn=2025-03¤cy=CAD
i got
{
“data”: null,
“errors”: {
“wholeMonthDepart”: “Do not input a month in the past”
},
“status”: false,
“message”: “Errors”
}
same for 2025-01,2025-02,2025-03,2025-04
Hi,
When testing without specify date (anytime).
It will select a default month as shown in the picture.
https://drive.google.com/file/d/1_YWmM1-S2MR-b0qHfNwH2DV3WYXz2xtA/view?usp=sharing
Thanks
Hi,
I just checked with the Skyscanner API. It is normally.
Thanks
Hi, it is me again 😃
I am testing search-roundtrip with https://sky-scanner3.p.rapidapi.com/flights/search-roundtrip?fromEntityId=eyJlIjoiMjc1MzY2MTMiLCJzIjoiWU1RQSIsImgiOiIyNzUzNjYxMyIsInQiOiJDSVRZIn0=&toEntityId=eyJlIjoiMjc1Mzk3MzMiLCJzIjoiUEFSSSIsImgiOiIyNzUzOTczMyIsInQiOiJDSVRZIn0=&wholeMonthDepart=2024-06&wholeMonthReturn=2024-06&market=CA¤cy=CAD.
And in response, i always have array of size 9 for flightQuotes.buckets[0].id = All. Is it normal? even i change month, maximum i have is 9 for label ALL.
Also when testing without specify date (anytime) https://sky-scanner3.p.rapidapi.com/flights/search-roundtrip?fromEntityId=eyJlIjoiMjc1MzY2MTMiLCJzIjoiWU1RQSIsImgiOiIyNzUzNjYxMyIsInQiOiJDSVRZIn0=&toEntityId=eyJlIjoiMjc1Mzk3MzMiLCJzIjoiUEFSSSIsImgiOiIyNzUzOTczMyIsInQiOiJDSVRZIn0=&market=CA¤cy=CAD , it always have only June month result. I am wondering to know if it is normal.
Thanks in advance
THANKSSSS
Hi,
I just updated 2 endpoints: /flights/search-roundtrip and /flights/search-one-way.
You can now search
Everywhere: leave toEntityId empty.
Anytime: leave departDate and returnDate empty.
The whole month: input wholeMonthDepart and wholeMonthReturn.
Thanks.
Hi, is it possible to use everywhere api and specify also return year and return month please?
see example there https://docs.google.com/spreadsheets/d/1UB1KX1UzSePgDYi3J_K00lilWcHcvY36KBEzvT4m2eo/edit?usp=sharing
Thanks