Description Usage Arguments Value See Also Examples
Returns live prices from all our suppliers for the requested flight itinerary. This
function is POST step. Make sure you have set API using apiSetKey
before.
See https://rapidapi.com/skyscanner/api/skyscanner-flight-search.
1 2 3 4 5 |
origin |
(REQUIRED) The origin place, can be country, city, airport, in Skyscanner code. |
destination |
(REQUIRED) The destination, can be country, city, airport, in Skyscanner code. |
startDate |
(REQUIRED) The outbound date. Format |
returnDate |
(OPTIONAL) The return date. Format |
adults |
(REQUIRED) Number of adults (16+ years). Must be between 1 and 8. |
children |
(OPTIONAL) Number of children (1-16 years). Can be between 0 and 8. |
infants |
(OPTIONAL) Number of infants (under 12 months). Can be between 0 and 8. |
country |
(REQUIRED) The market/country your user is in. |
currency |
(REQUIRED) The currency you want the prices in. |
locale |
(REQUIRED) The locale you want the results in (ISO locale). |
cabinClass |
(OPTIONAL) The cabin class.
Can be |
includeCarriers |
(OPTIONAL) Only return results from those carriers. Comma-separated list of carrier ids. |
excludeCarriers |
(OPTIONAL) Filter out results from those carriers. Comma-separated list of carrier ids. |
A response()
object of request.
1 2 3 4 5 | ## Not run:
apiSetKey("YOUR_API_KEY")
apiCreateSession(origin = "SFO", destination = "LHR", startDate = "2019-07-01")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.