nibroc / hubot-stocks

A hubot script for retrieving stock quotes, viewing graphs, searching symbols, etc
1 stars 1 forks source link

Yahoo has apparently dropped support for this API #3

Open iancward opened 6 years ago

iancward commented 6 years ago

It looks like Yahoo has officially removed support for this API: https://yahoo.uservoice.com/forums/382977-finance/suggestions/32103877-http-download-finance-yahoo-com-d-quotes-csv-s-a And: https://forums.yahoo.net/t5/Yahoo-Finance-help/http-download-finance-yahoo-com-d-quotes-csv-s-GOOG-amp-f/td-p/387096

The API calls actually respond with the same message:

It has come to our attention that this service is being used in violation of the Yahoo Terms of Service. As such, the service is being discontinued. For all future markets and equities data research, please refer to finance.yahoo.com.

Any ideas or suggestions to use a different endpoint to fetch stock data?

iancward commented 6 years ago

Would this be a reasonable alternative for Yahoo Finance API? https://www.alphavantage.co/

nibroc commented 6 years ago

Hmm, that's really unfortunate. I originally chose Yahoo because their Finance API was pretty well known as being freely available and reliable.

It seems like we might be able to use this API from Yahoo instead, though I'm not quite sure what's going on with Yahoo. They might remove that in the near future too.

I'm a bit confused what Alpha Vantage's business model is and whatnot, but it definitely looks promising.

Anyway, I'm up for pretty much whatever as long as it works, is free, and we aren't violating the ToS of the API.

iancward commented 6 years ago

Oh, I didn't even know about that other Yahoo finance endpoint. In the pages that I scoured through, nobody mentioned it. Is it documented or anything? And yeah I have no affiliation with Alpha Vantage; the "free" thing does sound a bit dubious. A co-worker stumbled on https://stackoverflow.com/questions/27794418/free-json-formatted-stock-quote-api-live-or-historical and that was one of the solutions listed.