Free, Unrestricted, and Almost as Easy: Reading SEC Filings with a Prompt
Python for programmers, prompts for data analysts. Every article in this series has leaned on one server: EODHD. But the underlying numbers — revenue, profit, shares outstanding — don't originate there. They come from a company's own filings to the SEC, published for free, for anyone, the moment they're submitted. So here's a natural question: could we skip the middleman entirely, and just ask…
This report outlines the capabilities and limitations of accessing SEC filings directly through a web URL, without the need for an API key or login. The SEC's EDGAR database, accessible at data.sec.gov, provides free, unrestricted access to company financial data in JSON format. Using this data, programmers and data analysts can retrieve company-wide metrics such as revenue, profit, and shares outstanding, spanning decades in a unified time series format.
However, the data does not include segmented information like revenue by business segment (e.g., AWS, North America, International), as this level of detail is filed under separate doors within the SEC filings. While the openness of the data source is highlighted as a rare and valuable feature, the report also acknowledges its limitations in providing structurally distinct data, such as segment-specific information.
In summary, the report concludes by affirming the utility of SEC EDGAR for obtaining company-wide financial data, while cautioning that accessing data about company segments would require a different method beyond the scope of the described endpoint.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.