Questions tagged [skyscanner]

For questions about programming the API provided by Skyscanner which is a flight search engine that allows users to browse for flights via price and location. Additional tools such as fare graphs, allow users to compare flight prices of any given route over a month period, or the price of weekend flights from any given city.

Skyscanner is, according to its wikipedia page, a flights search engine that allows users to browse for flights via price and location. Additional tools such as fare graphs, allow users to compare flight prices of any given route over a month period, or the price of weekend flights from any given city.

60 questions
0
votes
1 answer

where is SkyScanner SessionKey?

first SkyScanner Document say Response Details A successful response contains no content. The URL to poll the booking details is specified in the Location header of the response. and How to retrieve Session key from Skyscanner API post request -…
Park
  • 5
  • 4
0
votes
1 answer

Skyscanner response contains so many OutboundLegId and InboundLegId?

I am using Skyscanner travel api and getting response successfully. There are so many OutboundLegId and InboundLegId in the response. I just want to show flights for the selected destination. please see attachment. For this, Should I extract all…
arun
  • 165
  • 1
  • 17
0
votes
2 answers

Json parsing in skyscanner pricing api

I started working with sky-scanner API using volley on Android. I am able to poll the response from the API, however I have no clue how to parse the json which is sent in response, please see json below. The json response is very big, I have never…
ghap
  • 119
  • 4
0
votes
2 answers

PHP Nested foreach with Key

I have been trying to work this out for two days now and am hitting a brick wall. I have a skyscanner array that has flight itineraries where I have the flight Leg - being Itineraries -> OutboundLegId - and also the legs which shows the flight…
Dean
  • 61
  • 1
  • 1
  • 10
0
votes
1 answer

Android retrofit query at the beginning of the url

I'm trying to access Skyscanner's API and fetch ticket data, I'm able to do that using basic Asynctask, but I want to switch to Retrofit and I face a problem: 09-26 16:00:17.104 1830-2314/com.example.app D/OkHttp: --> POST…
Fedor Tsyganov
  • 992
  • 13
  • 30
0
votes
1 answer

How can I use a getResponseHeader from a post method in a get method ?

I am working with SkyScanner API to fetch Live Prices by Flight Details. As the documentation says. I created Live Pricing Service Session. Which can be created by post request to api and then it provide SessionKey by using this SessionKey and…
0
votes
1 answer

How to poll live session SkyScanner API

I successfully create the Live Pricing Service Session and have the polling URL. I am trying to poll the URL with a GET according to SkyScanner docs, but I keep getting the following 400 error:
FullStack
  • 5,902
  • 4
  • 43
  • 77
0
votes
1 answer

Getting plain text response when hitting skyscanner api

I am getting the following response when I try to poll the url : "The response is plain." How can I get only the url or get the entire data in json format? HTTP/1.1 201 Created Cache-Control: private Content-Type: application/json Date: Wed, 15 Jun…
Udit
  • 383
  • 5
  • 15
0
votes
1 answer

Skyscanner Api in JavaScript. Get Response has No 'Access-Control-Allow-Origin' header

When I used Skyscanner Api,creating the Session,I can get 201 response ,which means that session created. But there is a exception,ending my script, "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is…
JunTU
  • 1
0
votes
0 answers

Cannot connect to Skyscanner API using httplib2 in Python

I'm trying to establish a connection via an http request to the Skyscanner API. I'm aware there is an ad hoc library in python to retrieve data from their API, but for learning purposes I want to create my own using httplib2. I wrote the following…
Gianluca
  • 6,307
  • 19
  • 44
  • 65
0
votes
1 answer

Retrieve html code of skyscanner result using phantomjs

As it happens that skyscanner only provides their api to big commercial websites, I wanted to build a small application on my own to retrieve the results for multiple destinations for my own purpose (non commercial). I found that getting the result…
Kevin
  • 233
  • 1
  • 2
  • 8
0
votes
1 answer

Skyscanner API CSV file

I am new to python and I am trying to run this code,which I found on github ,but it does not work, is something wrong with the code?Or is it my fault? I am always getting the "no data found" message. skyscanner.py : #!/usr/bin/python """The…
John Wrt
  • 77
  • 1
  • 1
  • 6
0
votes
1 answer

SkyScanner JavaScript API

I'm using SkyScanner's flight search widget on my website. The JS code that they give you to embed in your website is: