Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 404 errors (Yahoo has locked down their APIs) #209

Open
alwa opened this issue May 25, 2023 · 8 comments
Open

HTTP 404 errors (Yahoo has locked down their APIs) #209

alwa opened this issue May 25, 2023 · 8 comments

Comments

@alwa
Copy link

alwa commented May 25, 2023

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: #206 (comment)

@alwa
Copy link
Author

alwa commented May 25, 2023

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.

@oauthtester01
Copy link

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.

@turing-d-gr8
Copy link

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

@alwa alwa changed the title HTTP 404 errors HTTP 404 errors (Yahoo has locked down their APIs) Jun 9, 2023
@IoIxD
Copy link

IoIxD commented Jun 11, 2023

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.

@gilbertoca
Copy link

gilbertoca commented Jun 21, 2023

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

@dev-marcel
Copy link

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

@IoIxD
Copy link

IoIxD commented Jul 22, 2023

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.

@widarlein
Copy link

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. ranaroussi/yfinance#1595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants