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

Ticker.quotes returning 'HTTP 404 Not Found' #178

Closed
maread99 opened this issue Apr 19, 2023 · 10 comments
Closed

Ticker.quotes returning 'HTTP 404 Not Found' #178

maread99 opened this issue Apr 19, 2023 · 10 comments

Comments

@maread99
Copy link
Contributor

As of this afternoon:

>>> import yahooquery as yq
>>> ticker = yq.Ticker("^DJI")
>>> ticker.quotes
'HTTP 404 Not Found'

The url https://query2.finance.yahoo.com/v6/finance/quote is showing the error.

Any ideas @dpguthrie?

Thanks

@dpguthrie
Copy link
Owner

No problem on my end:
image

@maread99
Copy link
Contributor Author

Thanks @dpguthrie.

I've just got it working with a VPN server in the US, although getting 404 in Europe.

@maread99
Copy link
Contributor Author

I'm getting this 404 everywhere now 😞

@dpguthrie, would you mind checking your side again.

@ValueRaider
Copy link

UK here, I get 404.

@dpguthrie
Copy link
Owner

Well, looks like they changed the URL (I have it has query2.finance.yahoo.com/v6/finance/quote and it's now query1.finance.yahoo.com/v7/finance/quote.
image

But unfortunately, they're also requiring a valid cookie to make the request. This is after changing the URL:
image

@ValueRaider
Copy link

Try v10

@maread99
Copy link
Contributor Author

maread99 commented Apr 20, 2023

As at 23/04/20 08:05 UTC this is back up (for me anyway), i.e. https://query2.finance.yahoo.com/v6/finance/quote as expected and Ticker.quotes is working.

@pfuller88
Copy link

It is working again for me this morning 7:36 EST. Was getting the 404 error late yesterday.

@RudyNL
Copy link

RudyNL commented Apr 20, 2023

Netherlands, tried at April 20, 18:50 CET . No problems and not error messages.

@dpguthrie
Copy link
Owner

Closing as this appeared to be a spurious issue. Please reopen if you think otherwise.

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