Skyscanner has got an API that allows you to pull data such as pricing on flights and here is a quick example on how to do this the powershell way! So to give you a quick idea to how the API works i have put together this script that will pull the latest prices from skyscanner and output them into the scripts running directory as a csv document

$FlightConfig = @{ Country = "UK" # Output Currency Currency = "GBP" locality = "en-US" # Airport Code for London Luton originPlace = "LTN-sky" # Airport Code for Bucharest Airport destinationPlace = "OTP-sky" # Change the date to something in the future outboundDate = "2019-11-10" # Number of traveling adults adults = "1" } $headers=@{} $headers.Add("x-rapidapi-host", "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com") $headers.Add("x-rapidapi-key", "bd65daf56amshcae9b435bccb095p1449fejsncf2eda31df2b") $headers.Add("content-type", "application/x-www-form-urlencoded") $body = @( "country=" + $FlightConfig.Country + '¤cy=' + $FlightConfig.Currency + '&locale=' + $FlightConfig.locality + '&originPlace=' + $FlightConfig.originPlace + '&destinationPlace=' + $FlightConfig.destinationPlace + '&outboundDate=' + $FlightConfig.outboundDate + '&adults=' + $FlightConfig.adults) $Session = Invoke-WebRequest -Uri 'https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/v1.0' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body $body $ID = $Session.Headers.Location | Split-Path -Leaf $uri = "https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/uk2/v1.0/" + $ID + "?pageIndex=0&pageSize=10" $response = Invoke-WebRequest -Uri $uri -Method GET -Headers $headers $fresponse = $response | ConvertFrom-Json | Select-Object -ExpandProperty Itineraries | Select-Object -ExpandProperty PricingOptions | Select-Object Price, QuoteAgeInMinutes, DeeplinkUrl | Sort-Object -Property Price $fresponse | Export-Csv .\export.csv