EDGAR XBRL: Where SEC Filings' Structured Data Actually Lives
XBRL data in EDGAR is spread across a filing's own exhibits, three SEC JSON APIs, and separate bulk data sets. Here is a map of each one and what it returns.
- EDGAR XBRL" is not one feature. It is tagged exhibits inside each filing, three separate JSON APIs at data.sec.gov, and two bulk data set families with different scope.
- A filing's own XBRL lives in its exhibit 101 schema and linkbase files, now embedded inline in the HTML document rather than filed separately.
- The SEC's bulk Financial Statement Data Sets changed scope in December 2024 to cover only primary statement facts, not every XBRL tag a filer submitted.
- EDGAR's full text search indexes filing text, not tagged XBRL values, so finding "revenue over $10 billion" across companies needs the XBRL APIs or data sets instead.
"EDGAR XBRL" usually refers to whichever piece someone ran into first: the tagged numbers inside a 10-K, the SEC's data.sec.gov JSON endpoints, or one of the bulk data sets researchers download for analysis. These are four different products built on the same underlying tagging, each with its own scope, format and update schedule.
This guide maps out where XBRL data actually lives across EDGAR, what each source returns, and when to reach for which one.
XBRL inside a single filing
Every 10-K, 10-Q, 20-F, 40-F and 8-K that includes financial statements carries a set of XBRL exhibits alongside the readable document: a schema file (exhibit 101.SCH) that defines the filer's taxonomy extension, and calculation, definition, label and presentation linkbases (101.CAL, 101.DEF, 101.LAB, 101.PRE) that describe how the tagged facts relate to and display within the statements. Since the SEC's inline XBRL phase-in completed, the tagged facts themselves sit inside the main HTML document rather than a separate instance file, but the linkbase exhibits are still filed alongside it.
EDGAR also renders each filing's tagged facts into a set of numbered viewer pages (R1.htm, R2.htm, and so on) that you can see listed in a filing's index, one per statement or note, generated automatically from the XBRL rather than typed up separately.
The three XBRL JSON APIs
For live lookups, the SEC exposes the tagged data as JSON at data.sec.gov:
| Endpoint | Returns |
|---|---|
companyfacts/CIK##########.json | Every XBRL concept one company has ever reported |
companyconcept/CIK##########/us-gaap/{concept}.json | One concept's full history for one company |
frames/us-gaap/{concept}/{unit}/{period}.json | One concept across every company that reported it for a period |
These return facts organized by tag, not by financial statement, so reassembling a balance sheet means knowing which concepts belong to it. The XBRL API guide covers each endpoint's request format and response shape in depth, including the period and unit conventions the frames endpoint expects.
Get this data as clean JSON
SecFeed turns SEC filings into structured data with one API call: GET /v1/xbrl-to-json?accessionNo=0000320193-26-000020&cik=320193. Free key, no card needed.
The bulk data sets
For analysis across many filings at once, the SEC publishes two separate bulk download families, updated quarterly as ZIP archives of tab-delimited text files:
- Financial Statement Data Sets: four files per quarter.
SUBhas one row per XBRL submission;NUMhas one row per distinct numeric fact, linked toSUBby anadsh(accession number) column;TAGdefines each tag's taxonomy and description;PRErecords how each tag was presented and labeled in the primary statements. Since a December 2024 refresh, this set covers only facts the SEC rendered as part of a filing's primary financial statements, not every tag in the filing. - Financial Statement and Notes Data Sets: a larger set covering disclosures beyond the primary statements, including footnote data, with its own file layout.
| Financial Statement Data Sets | Financial Statement and Notes Data Sets | |
|---|---|---|
| Scope | Primary statement facts only (since Dec 2024) | Primary statements plus note disclosures |
| Core files | SUB, NUM, TAG, PRE | Larger file set, separately documented |
| Typical use | Cross-company statement analysis | Deeper disclosure-level research |
Both are free downloads from the SEC's data pages, with no API key or rate limit beyond the fair access policy that applies to all of sec.gov.
What EDGAR XBRL does not include
EDGAR's full text search indexes the words in a filing's documents, not its tagged XBRL values. Searching for a dollar amount in full text search only finds filings where that figure appears as written text; it cannot tell you which companies reported revenue above a threshold, because that comparison requires reading the tagged numeric facts, not the document text. For that kind of query you need the frames API or the bulk Financial Statement Data Sets, not search.
Pulling it together with SecFeed
Working directly with any of the sources above means picking the right one, downloading or paginating through it, and reassembling tags into statements yourself. SecFeed's XBRL-to-JSON converter does that reassembly per filing:
curl "https://secfeedapi.com/v1/xbrl-to-json?accessionNo=0000320193-26-000020&cik=320193" \
-H "Authorization: Bearer YOUR_API_KEY"
The response groups facts by statement in the company's own presentation order, with the cover page attached, which is the same structure the R*.htm viewer pages show on EDGAR but returned as data instead of HTML:
from secfeed import Client
sf = Client("YOUR_API_KEY")
facts = sf.xbrl_to_json(accession_no="0000320193-26-000020", cik="320193")
for concept, rows in facts["BalanceSheets"].items():
print(concept, rows[0]["value"])
See the XBRL to JSON in Python guide for the full field reference, and the SEC EDGAR API guide for how this fits alongside EDGAR's other free endpoints.
Frequently asked questions
What is EDGAR XBRL?
It is the structured data layer the SEC requires alongside most financial statement filings, split across the per-filing tagged exhibits, three JSON APIs at data.sec.gov, and two separate families of bulk quarterly data sets. There is no single "EDGAR XBRL" file or endpoint; which one you want depends on whether you need one filing, one concept over time, or a cross-company dataset.
Can I search EDGAR XBRL data by dollar amount?
Not through EDGAR's full text search, which indexes document text rather than tagged facts. To filter companies by a reported figure, use the frames API for one concept and period, or the bulk Financial Statement Data Sets' NUM file for broader analysis.
Are the EDGAR XBRL APIs free?
Yes. The companyfacts, companyconcept and frames endpoints at data.sec.gov require no API key, only a descriptive User-Agent header and compliance with the SEC's fair access rate limit.
What changed in the Financial Statement Data Sets in December 2024?
The SEC narrowed the NUM file's scope to numeric facts from a filing's primary financial statements as rendered by the Commission, rather than every XBRL fact a filer submitted. The file layout and column names stayed the same.
Do I need to parse the linkbase files myself?
Only if you are working directly with a filing's raw exhibit 101 files. The SEC's JSON APIs and bulk data sets, and services like SecFeed's XBRL-to-JSON converter, do that parsing for you and return the resolved facts instead.
Get this data as clean JSON
SecFeed turns SEC filings into structured data with one API call: GET /v1/xbrl-to-json?accessionNo=0000320193-26-000020&cik=320193. Free key, no card needed.
For information only, not investment advice. Data from public SEC filings; verify important figures on SEC.gov. See our AI Disclosure.