I use nasdaq datalink for most data. Still gotta source chart candles if you need that. Both nasdaq and nyse have FTP servers. Been a minute since I was snooping around. If memory serves tho. I believe one of them might have daily candles you can download. SEC also has an API with a good bit of data that's free. I scrape all three. Usually I grab the earnings calendar from nasdaq, then I scrape the SEC for each tickers CIK number. I use the CIK number to then automate filing scrapes when I need them... Pretty much all you need to start is sourced for free straight from the horses mouth. Only time you gotta start contemplating paying is when you start wanting shorter time frames than daily for your charts. Atleast that's been my experience. Any sort of TA you can apply to your own charts and use Matplotlib I'm sure I am missing a few nuanced bits here and there, but should be enough to get moving. 🤷‍♂️ Edit: The more posts I see like these. The more happy I am that I was a bit mischief curious..? 🤔 as a kid. I'm sure there are actual dev tools for these sorts of things, but the other day. I caught myself using burpsuite to figure out how to automate packet creation for another site i wanted to grab data from without paying for an api key. (And without using selenium/another headless browser) Finished up crafting the script and thought to myself. "There has to be specific developer tools that accomplish this exact same task in a more... straight forward??(idk if I'm phrasing this right...🤷‍♂️) kind of way... The site I was working on. I kept thinking. Ik they gotta be getting this info from somewhere else.. where is that... 🤔.. Idk. I'm at a point after doing sysadmin/netadmin/security/mspEngineer type work.. moving over to the development side. It's obviously different work, but the cross over in the tools used is fun. Obviously read about it, but actually doing it myself.. idk.... dopamine 😋 Answer from Lopsided_Fan_9150 on reddit.com
🌐
Reddit
reddit.com › r/algotrading › where can i find a free api with stock data for python?
r/algotrading on Reddit: Where can I find a free API with stock data for python?
November 17, 2024 -

I've been looking around for good APIs I can implement into different code to experiment with and so far the only good free one I found was Yahoo finance, however it's pretty limited but I can't find any other free ones, any suggestions?

Top answer
1 of 12
23
I use nasdaq datalink for most data. Still gotta source chart candles if you need that. Both nasdaq and nyse have FTP servers. Been a minute since I was snooping around. If memory serves tho. I believe one of them might have daily candles you can download. SEC also has an API with a good bit of data that's free. I scrape all three. Usually I grab the earnings calendar from nasdaq, then I scrape the SEC for each tickers CIK number. I use the CIK number to then automate filing scrapes when I need them... Pretty much all you need to start is sourced for free straight from the horses mouth. Only time you gotta start contemplating paying is when you start wanting shorter time frames than daily for your charts. Atleast that's been my experience. Any sort of TA you can apply to your own charts and use Matplotlib I'm sure I am missing a few nuanced bits here and there, but should be enough to get moving. 🤷‍♂️ Edit: The more posts I see like these. The more happy I am that I was a bit mischief curious..? 🤔 as a kid. I'm sure there are actual dev tools for these sorts of things, but the other day. I caught myself using burpsuite to figure out how to automate packet creation for another site i wanted to grab data from without paying for an api key. (And without using selenium/another headless browser) Finished up crafting the script and thought to myself. "There has to be specific developer tools that accomplish this exact same task in a more... straight forward??(idk if I'm phrasing this right...🤷‍♂️) kind of way... The site I was working on. I kept thinking. Ik they gotta be getting this info from somewhere else.. where is that... 🤔.. Idk. I'm at a point after doing sysadmin/netadmin/security/mspEngineer type work.. moving over to the development side. It's obviously different work, but the cross over in the tools used is fun. Obviously read about it, but actually doing it myself.. idk.... dopamine 😋
2 of 12
18
Search module on reddit works perfectly ! You will find plenty
🌐
Finnhub
finnhub.io
Finnhub Stock APIs - Real-time stock prices, Company fundamentals, Estimates, and Alternative data.
Finnhub - Free APIs for realtime stock, forex, and cryptocurrency. Company fundamentals, Economic data, and Alternative data.
Discussions

rest - Python API to access Stock Market information - Stack Overflow
I would like to know if there is a place from where I can download metadata of a given stock. I was studying sometime back about REST API and I though I could maybe use something like this: stock_c... More on stackoverflow.com
🌐 stackoverflow.com
How to get stock fundamentals data with Python
https://www.youtube.com/parttimelarry · It covers popular services and libraries like Alpaca, Robinhood Private API, TD Ameritrade option prices, Yahoo Finance, TradingView alerts, backtesting, and a lot more More on news.ycombinator.com
🌐 news.ycombinator.com
49
129
May 15, 2020
Where can I find a free API with stock data for python?
I use nasdaq datalink for most data. Still gotta source chart candles if you need that. Both nasdaq and nyse have FTP servers. Been a minute since I was snooping around. If memory serves tho. I believe one of them might have daily candles you can download. SEC also has an API with a good bit of data that's free. I scrape all three. Usually I grab the earnings calendar from nasdaq, then I scrape the SEC for each tickers CIK number. I use the CIK number to then automate filing scrapes when I need them... Pretty much all you need to start is sourced for free straight from the horses mouth. Only time you gotta start contemplating paying is when you start wanting shorter time frames than daily for your charts. Atleast that's been my experience. Any sort of TA you can apply to your own charts and use Matplotlib I'm sure I am missing a few nuanced bits here and there, but should be enough to get moving. 🤷‍♂️ Edit: The more posts I see like these. The more happy I am that I was a bit mischief curious..? 🤔 as a kid. I'm sure there are actual dev tools for these sorts of things, but the other day. I caught myself using burpsuite to figure out how to automate packet creation for another site i wanted to grab data from without paying for an api key. (And without using selenium/another headless browser) Finished up crafting the script and thought to myself. "There has to be specific developer tools that accomplish this exact same task in a more... straight forward??(idk if I'm phrasing this right...🤷‍♂️) kind of way... The site I was working on. I kept thinking. Ik they gotta be getting this info from somewhere else.. where is that... 🤔.. Idk. I'm at a point after doing sysadmin/netadmin/security/mspEngineer type work.. moving over to the development side. It's obviously different work, but the cross over in the tools used is fun. Obviously read about it, but actually doing it myself.. idk.... dopamine 😋 More on reddit.com
🌐 r/algotrading
40
41
November 17, 2024
Is there any free stock market API that allows publishing on a website?
Hi there, I design financial-based web apps that perform all kinds of stock market functions and analysis. My first question is, what do you want to build and why? Would you like to monetize your work somehow via advertising or subscriptions, etc.? I only ask because unless you are using stock data on your own computer and not making it available to others via an app or a website, you are really not going to find anything legally for free. I pay for several services and I can say that the biggest advantage to that is that you can rely on your data to be working most all of the time. If you are using a free "hack" you never know when everything will just shut off and if you need reliability, you should really pay for a feed. Anyway, hit me up if you want to chat about your project, goals and so forth. I've helped numerous people over the years set up their own, customized SaaS businesses revolving around financial dashboards, etc. Cheers! More on reddit.com
🌐 r/webdev
150
115
July 17, 2023
🌐
Pythoninvest
pythoninvest.com › long-read › exploring-finance-apis
Exploring Finance APIs with Python (Colab)
Quandl brings together millions of financial and economic datasets from hundreds of sources, providing access to them via a single free API. This diversity of sources enables you to look at the other classes of investment, say gold or bitcoin ...
🌐
Medium
medium.com › @aguimarneto › python-stock-price-apis-e67d5310f6e3
Python Stock Price API's. Leveraging Python for Stock Market… | by Aguimar Neto | Medium
February 12, 2024 - Python Stock Price API's Leveraging Python for Stock Market Analysis and Algorithmic Trading The power of data has transformed the world of finance and investing. With vast market data available …
🌐
Massive
massive.com
Stock Market API | Massive
Stock API with real-time and historical tick data, unlimited usage via REST or WebSockets, standardized JSON and CSV formats. Instant access free tier.
Find elsewhere
🌐
GitHub
github.com › ranaroussi › yfinance
GitHub - ranaroussi/yfinance: Download market data from Yahoo! Finance's API · GitHub
yfinance offers a Pythonic way to fetch financial & market data from Yahoo!Ⓡ finance. ... Yahoo!, Y!Finance, and Yahoo! finance are registered trademarks of Yahoo, Inc. yfinance is not affiliated, endorsed, or vetted by Yahoo, Inc. It's an open-source tool that uses Yahoo's publicly available APIs, and is intended for research and educational purposes.
Starred by 24.7K users
Forked by 3.4K users
Languages   Python
🌐
EODHD
eodhd.com › home › python financial library: installation, functions, examples
Financial API Python Library Code Samples for the Stock Market: Offering a Free Trial, Including the Best Data
September 15, 2025 - Python Financial Library from EODHD APIs: Offering a Free Trial, the Best API for Downloading EOD, Intraday, and Real-Time Prices for Stocks, Forex, and Alternative Curriencies, Providing Comprehensive Stock Market Data.
🌐
DEV Community
dev.to › williamsmithh › top-5-free-financial-data-apis-for-building-a-powerful-stock-portfolio-tracker-4dhj
Top 5 Free Financial Data APIs for Building a Powerful Stock Portfolio Tracker ⚡ - DEV Community
February 21, 2025 - ... Alpha Vantage is a well-known free financial data API with options that offers real-time and historical market data. It’s widely used in financial analytics applications and integrates seamlessly with Python, JavaScript, and other languages.
🌐
Finage
finage.co.uk › blog › best-stock-market-apis-for-python-realtime-data,-charts-trading--681e5ddb3a5709e03acf8857
Best Stock Market APIs for Python: Real-Time Data, Charts & Trading | Finage Blog
Here are some key Python tools to help you access and manage stock market data efficiently: The requests library is the most popular way to make HTTP requests in Python. You can easily fetch real-time stock prices, historical data, and financial news from Finage’s API by making GET requests and parsing the JSON responses.
🌐
Alpha Vantage
alphavantage.co
Free Stock APIs in JSON & Excel | Alpha Vantage
Alpha Vantage offers free stock APIs in JSON and CSV formats for realtime and historical stock market data, options, forex, commodity, cryptocurrency feeds and over 50 technical indicators. Global market news API and sentiment scores powered by AI and machine learning.
🌐
Hacker News
news.ycombinator.com › item
How to get stock fundamentals data with Python | Hacker News
May 15, 2020 - https://www.youtube.com/parttimelarry · It covers popular services and libraries like Alpaca, Robinhood Private API, TD Ameritrade option prices, Yahoo Finance, TradingView alerts, backtesting, and a lot more
🌐
Finnhub
finnhub.io › docs › api
API Documentation | Finnhub - Free APIs for realtime stock, forex, and cryptocurrency. Company fundamentals, economic data, and alternative data.
Finnhub - Free APIs for realtime stock, forex, and cryptocurrency. Company fundamentals, Economic data, and Alternative data.
🌐
Massive
massive.com › blog › polygon-io-with-python-for-stock-market-data
Massive + Python: Unlocking Real-Time and Historical Stock Market Data | Massive
November 3, 2025 - To access real-time and historical market data using Massive's APIs and Python, you can make REST API requests to the appropriate endpoints. For example, you can use the following code to retrieve real-time trade and quote data for ... from ...
🌐
PyQuant News
pyquantnews.com › free-python-resources › real-time-financial-data-with-python-apis
PyQuant News: Real-Time Financial Data with Python APIs
April 2, 2026 - Alpha Vantage is a well-known financial data provider offering a robust API with extensive documentation. It delivers various data types, including: Stock Prices: Real-time and historical prices for global stocks.
🌐
Medium
medium.com › @jsteinb › python-build-a-program-to-retrieve-and-graph-live-stock-market-data-311d9ca1b7d3
Python: Build a Program to Retrieve and Graph Live Stock Market Data | by Jordan Steinberg | Medium
February 21, 2025 - This will allow us to query yahoo finance api for our desired data. stock=input("Enter a stock symbol: ") print(stock) Running the above lines of code will ensure that python recognizes the stock variable and the output should be whatever ticker symbol you put in. The first line will prompt you to enter a stock symbol. The print statement verifies that the variable ‘stock’ has been registered. III. Retrieve Market Data for our Desired Stock
🌐
ScraperAPI
scraperapi.com › home › blog › how to web scrape stock market data with python (easy guide)
How to Web Scrape Stock Market Data With Python (Easy Guide)
March 31, 2026 - Learn how to build a stock market web data scraper with Python and Beautiful Soup. Collect data from any financial and investment sites without being blocked.
🌐
GitHub
github.com › topics › stock-market-api
stock-market-api · GitHub Topics · GitHub
Free REST API for NSE and BSE Indian stock market data. Real-time stock prices, company info, and market data via Yahoo Finance. Perfect for n8n, Zapier, trading bots, and automation. No API key required. Python Flask.