Alternatives to the Yahoo Finance API? [closed]
Asked Answered
A

1

34

Yahoo finance recently discontinued their API. I have been looking for alternatives. The ones I've found so far are Google Finance and Quandl.

Google Finance was deprecated in 2011 but still appears to work somewhat. However, there is little to no documentation, and I need to pull dividend data which I was unable to find.

Quandl appears to work well but the data is spread across multiple databases which makes getting appropriate access timely and costly.

Does anyone know of any other viable alternatives?

Alansen answered 18/5, 2017 at 13:8 Comment(6)
The comment I would like to add to this answer is that the big thing missing is split & dividend adjusted returns. Even just the raw split/dividend data would allow us to derive what we need.Suffolk
You can still use the Yahoo API: See https://mcmap.net/q/234272/-yahoo-finance-url-not-workingUnguinous
Off topic? what is wrong with people here god, this is the most valuable question in here . Get out of your box !!Breeks
Someone created a package to fix the yahoo api pypi.python.org/pypi/fix-yahoo-finance.Alansen
See #47065276 for a workaround.Abdulabdulla
Yahoo finance API Discontinued 2017-11-06Institutionalism
H
27

Alpha Vantage have real-time intraday as well as historical daily time series in JSON format. Accessing the data requires an API key but it is free.

Caveat: I have not yet used Alpha Vantage myself. The focus of my work requires long daily data series and for that Quandl (or, while it lasted, Yahoo) is better because (unlike Alpha Vantage) it provides both split-adjusted and un-adjusted data, which is helpful for tracking corporate actions etc.

Hansen answered 19/5, 2017 at 12:4 Comment(16)
The data looks great, but when querying the API you get No 'Access-Control-Allow-Origin' header is present on the requested resource.Waynewayolle
Did you get your own API key? That API key must then be included in the URL that you use to make a request. See examples in their documentarion here. If that's not your problem I'm afraid I can't help you any further; as said I don't use Alpha Vantage myself but simply wanted to point it out to people who need real-time intraday data.Hansen
Yeah I've added the API, I was using the historical data from Yahoo so just looking for alternatives! I may drop their support an email.Waynewayolle
The data is very thorough, but it doesn't seem to have dividends. Am I mistaken?Alansen
I don't think so.Hansen
Alpha Vantage now supports split-adjusted price as well - e.g., [link] (alphavantage.co/…)Troopship
I was able to change my python code from using the unreliable Yahoo Finance API to using the Alpha Vantage API in about a day. I generated an API key and was ready to go. So far so good, and the data returned matches the data sets I compared it with from previous Yahoo calls.Neurology
Here's a package someone wrote to use your previous code as is pypi.python.org/pypi/fix-yahoo-financeAlansen
Does anyone know their business model? Plus, I haven't been able to find any contact info, business address, or information about anyone who works there on their website. I'd love to use their API, but I can't find anything that suggests I can trust them.Hatred
Not on my computer now so can't look into it in detail but I was once in touch with them via [email protected] (you should be able to find this address and perhaps other contact details on the website). It took them a few days to reply but they were friendly and helpful.Hansen
I too am interested in their business model. I need to know how they make money off this (like google who depend on ad or is it nagware). That will help me know how stable it is and nuisances I have to deal with.Katherinkatherina
I've written a blog post on using Alpha Vantage to acquire stock data: the-data-wrangler.com/…Charron
Alpha Vantage is not flexible at all. It can only return 100 results or "all" results. You can't even specify a business date. Use Barchart instead: barchart.com/ondemand/free-market-data-apiMacrobiotics
It has a problem in converting to and from MYRf and SBDf, namely, Malaysian Ringgit and Solomon Islands Dollar. I'm trying to contact them to fix the problem.Tympanic
Alpha Advantage's free API is not so generous. "In certain use cases that exceed our standard API volume limit (5 API requests per minute; 500 API requests per day" according to their web page.Denbighshire
Alpha Vantage doesn't support the markets in ASIAN countries. Please recommend me other ways.Chavaree

© 2022 - 2024 — McMap. All rights reserved.