Jump to content

Has sourcing quotes/downloading data from Yahoo Finance come to an end?


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by FredUrble
Link to comment
Share on other sites

17 hours ago, FredUrble 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"}}}"

Link to comment
Share on other sites

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 by FredUrble
Link to comment
Share on other sites

  • 2 months later...
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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...