yahoofinance-api icon indicating copy to clipboard operation
yahoofinance-api copied to clipboard

HTTP 404 errors (Yahoo has locked down their APIs)

Open alwa opened this issue 1 year ago • 8 comments

Example of a query that this library does for me: https://query1.finance.yahoo.com/v6/finance/quote?symbols=CADSEK%3DX

It now returns: {"finance":{"result":null,"error":{"code":"Not Found","description":"HTTP 404 Not Found"}}}

It used to work. I've already applied a workaround for another breaking change: https://github.com/sstrickx/yahoofinance-api/issues/206#issuecomment-1548442087

alwa avatar May 25 '23 21:05 alwa

It looks like Yahoo has closed down the APIs:

https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform

Yahoo Finance | API Feedback We’re sorry for the inconvenience, but API-level access to Yahoo Finance quotes data has been disabled.

Game over.

alwa avatar May 25 '23 21:05 alwa

It's time to say good bye to yahoo api !

ITOT

description":"Invalid Crumb. For Developers - https://bit.ly/yahoo-finance-api-feedback"

Yahoo Finance | API Feedback Again, we’re sorry for the inconvenience, but API-level access to Yahoo Finance quotes data has been disabled. Thank you for your feedback.

oauthtester01 avatar May 30 '23 15:05 oauthtester01

Strange, they're still allowing python libraries it seems. Why stop API access?

turing-d-gr8 avatar Jun 09 '23 14:06 turing-d-gr8

~~Because you can still get the crumb by querying https://query1.finance.yahoo.com/v1/test/getcrumb, and then you can pass it into the url with the &crumb= argument. Yahoo has tightened their APIs but not locked them down.~~

The crumb thing is blank if you're not accessing it from a browser. Curious to know how they detect that.

IoIxD avatar Jun 11 '23 03:06 IoIxD

It looks like Yahoo has closed down the APIs:

https://docs.google.com/forms/d/e/1FAIpQLSeyb7xMtZFjoNYI7XG1rjlhUopKAxdLAfSRcaPxg9p-9ii-_g/viewform

Yahoo Finance | API Feedback We’re sorry for the inconvenience, but API-level access to Yahoo Finance quotes data has been disabled.

Game over.

I don't think so! @alwa @IoIxD Well, it is working for my country #210

gilbertoca avatar Jun 21 '23 12:06 gilbertoca

So i noticed v11 API also gives 404's sinds a fews days, but the v6 version still works correctly.

For example.: https://query1.finance.yahoo.com/v11/finance/quoteSummary/WIZZ.L?modules=price gives 404 https://query1.finance.yahoo.com/v6/finance/quoteSummary/WIZZ.L?modules=price gives results

dev-marcel avatar Jul 19 '23 11:07 dev-marcel

~~By the way Google has just proposed a feature that will let browsers provide secure keys to websites in order for them to verify that you are human; one of the explicit, stated goals from them is to stop scraping, and in general it can be used to deny access to users who aren't using certain browsers. Yahoo will most likely take advantage of this. https://github.com/RupertBenWiser/Web-Environment-Integrity/blob/main/explainer.md~~

~~If you are using this API you should move on before your app permanently breaks.~~

They cancelled it.

IoIxD avatar Jul 22 '23 22:07 IoIxD

Ah, I found this lib today. Too bad it's out of commission. It seems the yfinance python lib "solved" this by using the v6 api. https://github.com/ranaroussi/yfinance/pull/1595

widarlein avatar Sep 12 '23 12:09 widarlein