Skyscanner API and website data discrepancy - skyscanner

The Skyscanner API gives different results than Skyscanner website.
For the flight from any airport in Warsaw to any airport in Wrocław, if I use the API the cheapest option is 303.99 zł.
This flight is operated by LOT (LO). Other available flights are operated either by LOT (LO) or by Lufthansa (LH).
On the other hand, if I make the same query using Skyscanner website, the cheapest flight costs 42 zł and is operated by Ryanair (FR).
link: https://www.skyscanner.net/transport/flights/wars/wro/161111/161112/airfares-from-warsaw-to-wroclaw-in-november-2016.html?adults=1&children=0&adultsv2=1&childrenv2=&infants=0&cabinclass=economy&rtn=1&preferdirects=false&outboundaltsenabled=false&inboundaltsenabled=false&ref=home#results
However, if I uncheck Ryanair at the left hand side panel, I receive very similar results to those from the API.
Link: https://www.skyscanner.net/transport/flights/wars/wro/161111/161112/airfares-from-warsaw-to-wroclaw-in-november-2016.html?adults=1&children=0&adultsv2=1&childrenv2=&infants=0&cabinclass=economy&rtn=1&preferdirects=false&outboundaltsenabled=false&inboundaltsenabled=false&ref=home#results
What is more, if I enter the API test as an unlogged user, I can again retrieve the Ryanair flight. The test is available at: http://business.skyscanner.net/portal/en-GB/Documentation/FlightsLivePricingQuickStart
Images:
Can you reproduce this behavior? Is there something I am doing wrong about the API? How can I retrieve Ryanair’s prices programmatically?

I don't think you're doing anything wrong, I've the same problem. In fact, I've taken the example apiKey from the test site and copied it to my code (for testing), and it shows Ryanair flights. But not with my apiKey. It appears that they are deliberately excluding Ryanair from the regular api results. I've contacted Skyscanner for Business support weeks ago, and haven't received a reply.

Related

Set country while scraping Amazon

I'm scraping prices from Amazon,Everything works fine except I'm facing an issue of location,apparently some products are not available outside of US so when my program runs it fails to fetch prices, I'm using Crawlera for US IP proxy, but it still fails for few requests.
Is there any way I can lock it US,using sending Cookies or Something like that.Any help or reference would be really helpful. Thanks in advance.
When you use Crawlera, you can create a new account through the web interface and set the region to US. Then replace your API key with the key for your newly created account.
See this guide for reference.

401 Access denied due to invalid subscription key in Central India Region

I've two Face API endpoints. One in US West and another in Central India. The one in US West works fine but the Central India endpoint is throwing 401 error.
{"error":{"code":"Unspecified","message":"Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."}}
I've verified all the endpoint, keys, location etc as mentioned in the blog (https://blogs.msdn.microsoft.com/kwill/2017/05/17/http-401-access-denied-when-calling-azure-cognitive-services-apis/)
Is there anything else I can try?
This is crazy! I deleted the resource and created it again and it started working. The only change I made was chose a new resource group instead of selecting an existing one. Gosh!

getting this error even after putting different keys in facial recognition door sample

even after entering the key I have been subscribed to a standard plan of the face api service but getting this error constantly.! Tried changing the end points and creating s0 tier API to but getting same error .
The project is old, and does not allow for specifying the API endpoint. I've made a fix in a fork and a pull request to the main project. Cognitive Service API keys are valid in only one region (i.e. you cannot use a westeurope key in westus, etc.)

Has LinkedIn removed companySizes, industries and seniorities from company follower statistics available via the API?

Using the LinkedIn REST API to access the company-statistics dataset used to provide "companySizes", "industries" and "seniorities" arrays within the returned data. These have disappeared very recently (customer notified us of missing data 24 hours ago) - has LinkedIn removed this data, and if so, is there a workaround method of retrieving it?
Currently trying to access via https://api.linkedin.com/v1/companies/{company_id}/company-statistics?oath2_access_token={access_token}&format=json
Getting a response back, but there's a whole ton of data that's missing now.
Any ideas?

Different results in Evernote search and API search

I would like to search for all notes with reminder_time today. I use the following search query for this purpose:
reminderTime:day -reminderTime:day+1
If I use it in the Evernote client everything works fine. But if I use the findNotesMetadata function in the word field in the NoteFilter parameter I also get notes with reminder tomorrow. The official API documentation says for the word field in the NoteFilter-struct:
If present, a search query string that will filter the set of notes to be returned. Accepts the full search grammar documented in the Evernote API Overview.
The problem was that the notebook filter wasn't working correctly for business accounts. This was caused by a bug (slash not-implemented feature) in the Evernote service where the notebook:"notebookName" feature wasn't implemented in the Evernote service. It has now been implemented, and everything works perfectly.
There is still a difference in the API and the Evernote view. I want to search all notes created today. As the API documentation says the query is:
created:day
From the API I get all notes created from today 9:00 until tomorrow 8:59 (tomorrow date is manually changed in the note meta data). So I get the time interval from today for PST time zone, but I'm in Europe/Berlin, which explains a time difference of 9 hours between my location and Evernotes headquarter.
If I run the same query in Evernote Mac Client or the Evernote web client I get the correct notes from today in my time zone. In the Evernote Account, the correct time zone is stored.
Using the API, the concept of "days" will use UTC when searching for notes - we don't take the User.timezone field into account. When you use a client eg the web or mac client, the current time zone will be taken from the system when interpreting a search query.

Resources