Yahoo Finance YQL query not working. Did something change? - yql

For the past year I have been able to use Yahoo YQL Rest query to obtain the currency exchange rates; however, today it has stopped working for some odd reason.
https://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys#h=select+*+from+yahoo.finance.xchange+where+pair+in+(%22USDCAD%22)
https://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22CADUSD%22%2C%20%22USDCAD%22%2C%20%22EURUSD%22%2C%20%22EURCAD%22%2C%20%22GBPUSD%22%2C%20%22GBPCAD%22)&diagnostics=false&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
Has something changed? How can I find out what happened?
Is there an alternative solution I can use to obtain this data?

There seems to be an issue with http://datatables.org/ at the moment, which is the basis for the "Community Tables" (such as the Yahoo Finance table) on YQL. I haven't been able to find any more information on why it's down, but hopefully it comes back up soon.

Related

IMPORTXML Yahoo Finance not working anymore

Until a few days ago this importxml was importing the current price from yahoo finance however it's now stopped working and I can't figure out why. Is anyone able to suggest a fix? Thanks a lot.
=INDEX(IMPORTXML("https://finance.yahoo.com/quote/SGLN.L","//*[#id='quote-header-info']/div[3]/div[1]/div/span[1]"),1)
It seems that Yahoo changed some things in their website and it resulted to the import formula not to work anymore for some of the webpage in Yahoo Finance as well as for some tickers. This is the result of the IMPORTXML command for the SGLN.L ticker and for the AAPL ticker which is still working.
For now, I suggest finding another website/data source that will give you the same information that you need for those unavailable/unscrapeable tickers. Another option would be to wait for yahoo to fix this issue.

Yahoo Finance quotes CSV link broken

I am in the middle of updating an older website. I noticed it's trying to grab data from "http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=CADUSD=X". However, this link no longer works...does anyone have any idea where I should be looking instead?
Looks like Yahoo no longer offers this service...I ended up using https://free.currencyconverterapi.com/

Yahoo Finance API finally dead? Using ichart GET call?

It looks like the party is over with regard to historical data from the Yahoo Finance API. I've followed previous answers and nothing is working. The previous code was of the format:
http://ichart.yahoo.com/table.csv?s=AAPL
and even https.
https://ichart.yahoo.com/table.csv?s=AAPL
None of these resolve in browser or can be requested. For historical data is there any API in existence for Yahoo Finance? It's possible to get current data points with the following calls:
http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=e
However no history. Any suggestions or functioning work around?
Try the spreadsheets here:
Bulk Yahoo historical stock quote downloader
Historical stock prices from Yahoo
Yahoo finance now uses a cookie-crumb pair. The VBA in the spreadsheets
gets the cookie-crumb pair from Yahoo for a junk call
uses the cookie-crumb pair to download historical data
uses the cookie-crumb pair to download historical data.
The first spreadsheet lets you download bulk data. The second spreadsheet contains a wrapper function that converts old Yahoo Finance API calls to a format that still works
The VBA is more involved (not a clean API call anymore), and Yahoo may shut off this route without notice. But, for now, you can still get historical data.

Yahoo Finance API changes (2017)

Requesting data from Yahoo Finance seems to have changed or is now blocked. The request below for commodity data no longer works as of May 2017. Does anyone know if there is a new way to make this request?
http://chartapi.finance.yahoo.com/instrument/1.0/GCQ17.CMX/chartdata;type=quote;range=10d/csv/
First, the old Yahoo finance iChart download is gone for good. In one of the forum posts, a Yahoo employee has confirmed that the free EOD data has been terminated, and will not be reintroduced. Check out this thread and look for reply from Nixon. Yahoo is recently acquired by Verizon, and it must be the new direction.
However, if you check the Yahoo financial page, the CSV download link works, though differently now. It is through a new API that uses an authentication token "crumb" that is linked to a cookie when you access the page.
So there is a work-around to get the same CSV download as before through this new API. I have put together some quick Python3 code. Please check out GitHub for source code yahoo_quote_download.
As Ashley Davis mentioned in the comments section of the question above, the new way to go is through Alpha Vantage, at least when one is looking for free historical data. Their web service is very well documented and straight forward.
For those of you who are looking to import the data into Excel, I have written an api that I make available for free. Here is the Excel spreadsheet
Addendum as of Aug 2018: Current version of Deriscope supports retrieval of both historical data and live feeds from YF.
For Australian investors, here is an alternative to yahoo finance api:
www.biglion.com.au

Yahoo finance no longer work?

I used to get exhange rate from yahoo finance api by javascript with following url:
http://finance.yahoo.com/webservice/v1/symbols/jpy=x,eur=x/quote?format=json
but now it no longer work! I have search on the net but no luck.
Any help would be great, Thank!
Update: it is working if open with chrome mobile
Yes, it seems like Yahoo! has discontinued the (private, mostly-undocumented) Yahoo Finance API that many have been using for their currency data. All responses seem to be returning "Not a valid parameter". I suppose there's a chance they may switch it back on, but they don't officially support that API anywhere as far as I can tell.
I created Open Exchange Rates about five years ago, and our exchange rate API now supports a community of tens of thousands of developers - and their tens of millions of users - with accurate, up-to-date information.
Please feel welcome to check out our Forever Free service at https://openexchangerates.org.
Our API is in a simple, original JSON format, which has actually caught on as a standard method for displaying rates because it's so simple to work with (unlike the Yahoo API, which required you to parse the obscure nested objects to pull out the basic info you needed...)
If you need assistance porting from the deprecated Yahoo! API, we'll be happy to assist via email.
(I am the founder of Open Exchange Rates.)
indrakula is right, and their response helped me, but...
I also needed to retrieve exchange rate tickers (i.e. USDGBP=X). This was not trivial, and I had to do some searching. The URL format in this case is http://www.google.com/finance/info?q=CURRENCY%3aUSDGBP. This URL returns a JSON body and not something else as the alternative URLs mentioned in one of the comments for that reply. Also note the link with the parameter descriptions seems to be out-of-date, but I found most of them are self-explanatory. So don't rely on that link.
Note: I wanted to post this as a comment to indrakula's answer, but one needs 50 reputation to comment! I'm new! I tried to submit this as an edit to their answer but it was (rightly) refused.
use google http://www.google.com/finance/info?q=GOOGL
paramater description here http://www.networkerror.org/component/content/44.html?task=view

Resources