
How to Scrape SEC EDGAR Filings for Financial Research
SEC EDGAR has free access to every US public company filing. EDGAR Full-Text Search API (Free) async function searchEdgar ( query ) { const url = `https://efts.sec.gov/LATEST/search-index?q= ${ encodeURIComponent ( query )} &dateRange=custom&startdt=2025-01-01&enddt=2026-12-31` ; const res = await fetch ( url , { headers : { " User-Agent " : " Research Bot research@example.com " } }); return res . json (); } Company Filings API async function getCompanyFilings ( cik ) { const url = `https://data.sec.gov/submissions/CIK ${ cik . padStart ( 10 , " 0 " )} .json` ; const res = await fetch ( url , { headers : { " User-Agent " : " Research Bot research@example.com " } }); return res . json (); } Data Available 10-K (annual reports) 10-Q (quarterly reports) 8-K (current events) Proxy statements Insider trading (Forms 3, 4, 5) Financial statements (XBRL) Use Cases Fundamental analysis Competitor financial comparison Insider trading monitoring Industry financial benchmarks M&A research Resource
Continue reading on Dev.to Webdev
Opens in a new tab



