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®ion=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?
Yahoo Finance API is Discontinued. Here is your Top 10 Yahoo Finance API Alternatives. Yahoo's finance API was a good choice.
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 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With