Did yfinance stop working? It's returning 404 after calling the info function

1.2k views Asked by At

I'm trying to make a finance tool using yfinance, however, I ran into the issue where I get a 404 Client Error whenever I try to use the

yf.Ticker(stock).info

The url at hand is https://query2.finance.yahoo.com/v6/finance/quoteSummary/TSLA?modules=financialData&modules=quoteType&modules=defaultKeyStatistics&modules=assetProfile&modules=summaryDetail&ssl=true and I can't access it either from my PC or anywhere else...

Tried changing the user agent with no avail, perhaps it's an issue on their side?

1

There are 1 answers

0
QtheDOC On

I was having the same issue the last week and it turns out updating yfinance did the trick:

pip install yfinance --upgrade --no-cache-dir

from: Did yfinance and yahoo_fin for Python stop working recently?