What’s Next?
Comment below: Do you agree with our list? What do you think is the best stock market API for financial data?
By RapidAPI Staff //
Whether you're building a algorithmic trading prediction app or charting historical stock market data for various ticker symbols, a finance or stock market API (or data feeds) will come in handy,
In this API roundup, you'll find some of the top financial APIs to get real-time stock quotes. Some APIs may provide data available in CSV formats.
After reviewing over 75 stock market data APIs, we found these 7 APIs to be the very best and worth mentioning:
Yahoo Finance | Best for Stock Market Data | Connect to API |
Alpha Vantage | Best for Historical Stock, FX, Crypto & More | Connect to API |
Stock and Options Trading Data Provider | Best for US Stocks and Options | Connect to API |
Investing Cryptocurrency Markets | Best for Tracking Cryptocurrency Prices & Exchange Rates | Connect to API |
Zirra | Best for Stock and Company Timeseries | Connect to API |
Twelve Data | Best for Real-time and historical data | Connect to API |
Finage Currency Data Feed | Best for Currencies, metals, stocks & more | Connect to API |
The official Yahoo Finance API was deprecated/discontinued, but there's an unofficial API available on RapidAPI that provides all the data you see on Yahoo Finance.
The API has multiple endpoints that provide data such as:
Alpha Vantage provides a API service for realtime and historical data on stocks, forex (FX), and digital/cryptocurrencies. The API is available for consumption on RapidAPI.
See all the API endpoints and documentation here.
This Stock API provides data for US listed stocks and ETFs through a RESTful service. This is a cloud based API with a simple interface returning data in JSON format.
The API has 2 endpoints:
The Investing API (provided by APIDojo) allows developers to access stock data for cryptocurrencies and markets. This API is ideal for tracking price changes and exchange rates.
Zirra is a tech-based, business intelligence company that uses artificial intelligence to produce cutting edge alternative data products.
The Zirra API allows developers to search for more than 100 time series signals for 16,000 Public Companies and receive up-to-date, historical data dating back to 2014. Tangible and decision-impacting observations surrounding ESG signals, media sentiment, employee data and much more, direct to your system.
The Twelve Data API provides financial data for developers to enter the world markets. Instant access for real-time and historical data of stocks, forex, crypto, ETFs, indices, and more.
Twelve Data is the fastest-growing company in the financial data industry based on 3 simple postulates:
Finage is a financial data provider company. You can request over 700+ symbols included currencies, metals, stocks, and cryptocurrencies. You can call the last prices, convert currencies between each other, and get the historical data.
Learn more here.
To get live stock market data, you'll need a RapidAPI user account. Sign up today, it's free. Then search for or navigate to one of the APIs listed in this article. Subscribe to the API of interest and begin testing their endpoints. Many of the stock APIs here provide access to real-time data.
Unfortunately, Yahoo Finance deprecated their official API. However, there's an unofficial Yahoo Finance API available on RapidAPI. It provides data such as:
According to Quora:
There seems to be some documentation on github & npmjs that shows you how to interact with their private API:
But I can’t seem to find an official public API on their site.
You might also want to consider using the unofficial Yahoo Finance API or browsing this list of stock market APIs if you’re looking for stock market data.
API | Main Functionality | Popularity Score | Latency | Success Rate |
---|---|---|---|---|
Yahoo Finance | Stock Market Data | 9.9/10 | 1891ms | 96% |
Alpha Vantage | Crypto, Forex, and Stock data | 9.7/10 | 1333ms | 100% |
Stock and Options Trading Data Provider | Options and Straddle | 8.8/10 | 1064ms | 100% |
Investing Cryptocurrency Markets | Crypto Stock Data | 6.3/10 | 2598ms | 100% |
Zirra | Company timeseries | 8.7/10 | 322ms | 100% |
Twelve Data | Real-time & historical data | 8.8/10 | 472ms | 98% |
Finage Currency Data Feed | Currencies, metals, stock, & crypto | n/a | 80ms | n/a |
Comment below: Do you agree with our list? What do you think is the best stock market API for financial data?
The RapidAPI staff consists of various writers in the RapidAPI organization. For support, please email us at support@rapidapi.com.
You should also consider https://Polygon.io to be on this list.
Polygon.io is really slow and their websockets are not stable. We are getting socket error EVERY week. So, NEVER AGAIN.
I have the same problem with Polygon.
When I make an API request to polygon, it give me 500 server error. It is a shame. It is impossible to use this data in production. Also, other endpoints are not working too for crypto and forex.
Here you can see the error;
https://i.imgur.com/fXzvXiB.png
I would heavily recommend having a look at FactSet APIs
Especially for accurate sector data, geographic revenue exposure, estimates, ownership, and ESG data!
Twelve API is extremely bad. So slow and it’s hard to understand their endpoints. Customer support is slow, bad, and disrespectful. I will never use it again. I’ve wasted my time and my money there. You can not build any product with them. Yahoo APIs are better.
Thanks so much for this article. It’s really helpful.
I also suggest using IXBRAnalyst to get real-time access to financial data in excel on any of your devices.
Problem with yahoo, is i get a lot of data that is just zeros, and it messes up the entire analysis.
I’m using the newsfilter.io stock market news API. They have a query and real-time stream API and an API to render article content. I’m pretty happy with their news source coverage (I’m a day- and swing-trader), much better than any brokers news feed I’ve seen so far (and I’ve seen many…..). Recently started using their Discord news bot for our trading community too. Works like a charm so far.