0x00 Posted September 23 Report Share Posted September 23 I tried to download Historical quotes from Yahoo Finance and they not available anymore, I'm getting "{"finance":{"result":null,"error":{"code":"unauthorized","description":"User is not logged in"}}}"error message and quotes not available even after I logged in. Does anyone else experiencing same issues? https://query1.finance.yahoo.com/v7/finance/download/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true Quote Link to comment Share on other sites More sharing options...
⭐ FredUrble Posted September 23 Report Share Posted September 23 1 hour ago, 0x00 said: I tried to download Historical quotes from Yahoo Finance and they not available anymore, I'm getting "{"finance":{"result":null,"error":{"code":"unauthorized","description":"User is not logged in"}}}"error message and quotes not available even after I logged in. Does anyone else experiencing same issues? https://query1.finance.yahoo.com/v7/finance/download/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true Yahoo has changed their free access to the historical data download you could do from the online screen and are now charging for it. There is some good news, in that you can still download historical data, but the output is not in CSV. It comes over as JSON format, so you have to read and reformat that. Here is your link with the new format to continue to get historical data. You simply change "download" to "chart". https://query1.finance.yahoo.com/v7/finance/chart/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true Quote Link to comment Share on other sites More sharing options...
⭐ FredUrble Posted September 23 Report Share Posted September 23 (edited) 2 minutes ago, FredUrble said: Yahoo has changed their free access to the historical data download you could do from the online screen and are now charging for it. There is some good news, in that you can still download historical data, but the output is not in CSV. It comes over as JSON format, so you have to read and reformat that. Here is your link with the new format to continue to get historical data. You simply change "download" to "chart". https://query1.finance.yahoo.com/v7/finance/chart/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true You might also look into using Yloader which is free. They also ran into the problem and quickly fixed the access so their program still works. www.yloader.com/dload Edited September 23 by FredUrble Quote Link to comment Share on other sites More sharing options...
⭐ FFRT Posted September 24 Report Share Posted September 24 Was it ever a quality data? Quote Link to comment Share on other sites More sharing options...
⭐ Kunal Posted September 24 Report Share Posted September 24 4 hours ago, FFRT said: Was it ever a quality data? No. Too many missing bars and gaps in M1 data but usable for longer time frame trades. Quote Link to comment Share on other sites More sharing options...
0x00 Posted September 24 Author Report Share Posted September 24 17 hours ago, FredUrble said: You simply change "download" to "chart". https://query1.finance.yahoo.com/v7/finance/chart/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true Thank you for explanation, can you please explain also how to change "download" to "chart"? The link that you provided returns the same error even after I logged in: "{"finance":{"result":null,"error":{"code":"forbidden","description":"User is unable to access this feature - https://bit.ly/yahoo-finance-api-feedback"}}}" Quote Link to comment Share on other sites More sharing options...
⭐ FredUrble Posted September 24 Report Share Posted September 24 (edited) 6 hours ago, 0x00 said: Thank you for explanation, can you please explain also how to change "download" to "chart"? The link that you provided returns the same error even after I logged in: "{"finance":{"result":null,"error":{"code":"forbidden","description":"User is unable to access this feature - https://bit.ly/yahoo-finance-api-feedback"}}}" I just tried the link below and it returned the data in JSON format: https://query1.finance.yahoo.com/v7/finance/chart/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true The only difference between your original link and the one above here is that the word "download" was changed to "chart" in the new link. I left everything else the same. You don't need to log into Yahoo. You can simply click on the link and it will return the data in JSON format. Edited September 24 by FredUrble Quote Link to comment Share on other sites More sharing options...
rhsrxs Posted September 24 Report Share Posted September 24 You could look into using Alpha Vantage. You can get a free API key. They offer spreadsheets as well. Quote Link to comment Share on other sites More sharing options...
HappyHarry3 Posted September 25 Report Share Posted September 25 Yloader has been fixed,and working nicely. Quote Link to comment Share on other sites More sharing options...
binaryowner Posted December 7 Report Share Posted December 7 On 9/23/2024 at 10:42 PM, 0x00 said: I tried to download Historical quotes from Yahoo Finance and they not available anymore, I'm getting "{"finance":{"result":null,"error":{"code":"unauthorized","description":"User is not logged in"}}}"error message and quotes not available even after I logged in. Does anyone else experiencing same issues? https://query1.finance.yahoo.com/v7/finance/download/TSLA?period1=1695497364&period2=1727119764&interval=1d&events=history&includeAdjustedClose=true Probably you should supply cookies and other auth data in your request or even spoof the device mimicking for browser. All of this can be specified during request Quote Link to comment Share on other sites More sharing options...
⭐ FredUrble Posted December 7 Report Share Posted December 7 The "download" name in the link you are using has been discontinued. You cannot download comma delimited historical data from that link any longer. However, if you replace "chart" instead of the word "download" you will get output, but it is in JSON format. As mentioned in earlier posts, YLOADER has been repaired and is working. It can output and append data to existing files. Also, Amibroker has a component that allows for downloading that was patched here as well. I fixed the patch to also append data. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.