Back to articles
How to Scrape SEC EDGAR Filings for Financial Research

How to Scrape SEC EDGAR Filings for Financial Research

via Dev.to WebdevАлексей Спинов

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

Read Full Article
6 views

Related Articles