karlwancl / YahooFinanceApi

A handy Yahoo! Finance api wrapper, based on .NET Standard 2.0
MIT License
159 stars 58 forks source link

code 401 (Unauthorized) on Yahoo.GetHistoricalAsync #76

Open szymonromaniec opened 2 months ago

szymonromaniec commented 2 months ago

Hi from few days I obrtain error " Call failed with status code 401 (Unauthorized): GET https://query1.finance.yahoo.com/v7/finance/download/OPN.WA?period1=1694332800&period2=1726041600&interval=1d&events=history&crumb=bTH.asyJI6I"}"

when I use Yahoo.GetHistoricalAsync(

vesrion of api 2.3.3

marketman771 commented 2 months ago

Same problem but with Yahoo.GetDividendsAsync() Call failed with status code 401 (Unauthorized) https://query1.finance.yahoo.com/v7/finance/download/AAPL?period1=1710090016&period2=1725987616&interval=1d&events=div&crumb=agXiAxJu9dd

erensertkaya commented 2 months ago

https://github.com/scheb/yahoo-finance-api/issues/52 we facing same issue yahoo restricted it, i think only option using something like selenium to get client side rendered data

jabacrack commented 2 months ago

Discussed in https://github.com/karlwancl/YahooFinanceApi/issues/75