SEC financial statement data sets
///////////////////////////////
Financial Statement Data Sets, January 2009 - June 2024
    https://www.sec.gov/about/dera_financial-statement-data-set
    
The Financial Statement Data Sets below provide numeric information from the face financials
    of all financial statements.  This data is extracted from exhibits to corporate financial
    reports filed with the Commission using eXtensible Business Reporting Language (XBRL).  
    As compared to the more extensive Financial Statement and Notes Data Sets, which provide 
    the numeric and narrative disclosures from all financial statements and their notes, the Financial
    Statement Data Sets are more compact.
 
The information is presented without change from the "as filed" financial reports 
    submitted by each registrant. The data is presented in a flattened format to help
    users analyze and compare corporate disclosure information over time and across 
    registrants. The data sets also contain additional fields including a company's 
    Standard Industrial Classification to facilitate the data's use.

Data sets will be updated quarterly. Data contained in documents filed after 5:30PM 
    Eastern on the last business day of a quarter will be included in the subsequent quarterly posting.

The Financial Statements Data (PDF, 175 kb) provides documentation of scope, organization, 
    file formats and table definitions.
    https://www.sec.gov/files/aqfs.pdf
/////////////////////////////////

2024q2 as an example
///////////////////////////////
https://www.sec.gov/about/dera_financial-statement-data-set
2024q2.zip

num.txt
sub.txt
tag.txt 

SUB - Submission data set; this includes one record for each XBRL submission. The set includes 
      fields of information pertinent to the submission and the filing entity. Information is 
      extracted from the SEC’s EDGAR system and the filings submitted to the SEC by registrants.

NUM - Number data set; this includes one row for each distinct amount from each submission included 
      in the SUB data set. The Number data set includes, for every submission, for each primary 
      financial statement as it is rendered by the SEC Viewer/Previewer, all line item values.

TAG - Tag data set; includes defining information about each tag.  Information includes tag 
      descriptions (documentation labels), taxonomy version information and other tag attributes.

PRE - Presentation data set; this provides information about how the tags and numbers were presented 
      in the primary financial statements.

/////////////////////////////////