
I Replaced My $50/Month Stock Research Tool with 3 Free APIs
A few weeks ago I was paying $50/month for a stock research tool. Yahoo Finance Premium, if you're curious. Then I discovered that the exact same data — actually BETTER data — is available for free through government APIs. Here are the 3 APIs that replaced my paid subscription: 1. SEC EDGAR API — Company Financials ($0) Every US public company files financial reports with the SEC. Revenue, profit, assets, debt — it's all there. No API key needed. Just add a User-Agent header. import requests headers = { " User-Agent " : " MyApp (email@example.com) " } cik = " 0001318605 " # Tesla url = f " https://data.sec.gov/api/xbrl/companyfacts/CIK { cik } .json " data = requests . get ( url , headers = headers ). json () revenue = data [ " facts " ][ " us-gaap " ][ " Revenues " ][ " units " ][ " USD " ] for r in revenue [ - 3 :]: if r [ " form " ] == " 10-K " : print ( f " { r [ " fy " ] } : $ { r [ " val " ] : ,. 0 f } " ) 📖 Full SEC EDGAR tutorial 2. FRED API — Economic Indicators ($0) 816,000+
Continue reading on Dev.to Python
Opens in a new tab




