Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get more than 10 search results from Yahoo Finance API?

The following call will search the Yahoo Finance API for stocks that have "Yahoo" in its name:

http://d.yimg.com/autoc.finance.yahoo.com/autoc?query=yahoo&region=US&lang=en-US&row=ALL&callback=YAHOO.Finance.SymbolSuggest.ssCallback

Unfortunately, the result number is limited to 10 which causes problems for some search queries. Is there any way to increase the limit?

like image 621
Timo Ernst Avatar asked Sep 28 '15 00:09

Timo Ernst


People also ask

Is Yahoo Finance API discontinued?

Yahoo Finance API is Discontinued. Here is your Top 10 Yahoo Finance API Alternatives. Yahoo's finance API was a good choice.

How far back does Yfinance data go?

However, there are limits on how far back historic prices can be retrieved: 1 Minute: 7 days back. 5 Minute: 60 days back. 1 Hour: 730 days back.

Is Yahoo Finance API legal?

Is it legal to scrape Yahoo Finance? Web scraping is legal, but note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so.


1 Answers

It doesn't appear that the Yahoo Finance API is even a real thing. Read the article here: http://meumobi.github.io/stocks%20apis/2016/03/13/get-realtime-stock-quotes-yahoo-finance-api.html - the key takeaway is:

"It appears some have reverse engineered an API that they use to pull Finance data, but they are breaking our Terms of Service (no redistribution of Finance data) in doing this so I would encourage you to avoid using these webservices."

Other users on StackOverflow have reported similar issues with the services stopping altogether, or changing their behavior in an unannounced and undocumented way. Probably because the API isn't intended for public distribution. In fact, if it were, it would probably be really easy to find documentation. However, you can't find documentation because they haven't publicly released a public-facing API.

Has Yahoo finance web service disappeared? API changed? Down temporarily?

I think to accurately answer your question, I'd have to say: No, there's no way to get more than 10 results. You're already passing in "rows=ALL" - there's simply no more data exposed by the API.

like image 189
Josh Miller Avatar answered Sep 21 '22 16:09

Josh Miller