Sky Scanner

פרמיום
על ידי Things4u | מְעוּדכָּן il y a quelques secondes | Travel
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

1,490ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

How to use flights/search-everywhere

Rapid account: Adjelekdav
adjelekdav
il y a 13 jours

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&currency=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

Rapid account: Ntd 119
ntd119 Commented il y a 2 jours

Olá joaoparrachito,

Você só precisa obter os dados da resposta da API e exibí-los no layout.

Rapid account: Joaoparrachito
joaoparrachito Commented il y a 2 jours

Olá como é que eu posso implementar a api de flights no meu site ?

Rapid account: Ntd 119
ntd119 Commented il y a 9 jours

Hi,

That was my mistake, I’ve just fixed it.

Thanks.

Rapid account: Adjelekdav
adjelekdav Commented il y a 9 jours

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&currency=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

Rapid account: Ntd 119
ntd119 Commented il y a 9 jours

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

Rapid account: Ntd 119
ntd119 Commented il y a 9 jours

Hi,

I just checked with the Skyscanner API. It is normally.

Thanks

Rapid account: Adjelekdav
adjelekdav Commented il y a 10 jours
Rapid account: Adjelekdav
adjelekdav Commented il y a 10 jours

THANKSSSS

Rapid account: Ntd 119
ntd119 Commented il y a 10 jours

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.

Rapid account: Adjelekdav
adjelekdav Commented il y a 11 jours

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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות