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

code 401 (Unauthorized) on Yahoo.GetHistoricalAsync #76

Open
szymonromaniec opened this issue Sep 10, 2024 · 5 comments
Open

code 401 (Unauthorized) on Yahoo.GetHistoricalAsync #76

szymonromaniec opened this issue Sep 10, 2024 · 5 comments

Comments

@szymonromaniec
Copy link

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
Copy link

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

@sainthardrock
Copy link

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

@jabacrack
Copy link

Discussed in #75

@thorstenalpers
Copy link

API calls are not possible anymore. HTML requests are needed, I've solved it by using AngelSharp as an alternative to Selenium.

https://github.com/thorstenalpers/Finance.NET

@jabacrack
Copy link

@thorstenalpers you can use API calls to chart data (#75 (comment))

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

5 participants