Public dataset · Economy, finance and crypto
SEC Financial Statement Data Sets (EDGAR) in BigQuery
Financial statement data from SEC EDGAR filings (10-K, 10-Q and others) since 2009: submissions, every tagged XBRL number, text, presentation and calculation data, plus a Google-built quick_summary table. 10 tables, 109 GiB, last updated in 2021. Most tables are partitioned by ingestion time.
US public companies and certain insiders file financial reports with the SEC, which publishes them through EDGAR. The dataset holds the SEC's Financial Statement and Notes data sets, which the dataset description says the SEC updates every quarter going back to January 2009. The description begins with "Data Updated On: 2021-05-31", and the newest table modification is from June 2021, so filings after that are not included.
submission has one row per filing (submission_number, the EDGAR accession number) with company, CIK, SIC code, form, fiscal year and period, and filing dates. numbers holds every numeric XBRL fact (measure_tag, period_end_date, number_of_quarters, units, value), txt the text facts, presentation, rendering and calculation the statement layout, dimension and measure_tag the tag definitions, and sic_codes maps SIC codes to industry titles.
quick_summary is not part of the SEC files: Google built it to join company and filing fields onto each number in one table. The SEC disclaimer in the description applies: values come from what registrants filed and are not guaranteed accurate.
Tables and sizes
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
numbers | 215,283,352 | 42.4 GiB | $0.26 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
txt | 21,869,312 | 18.8 GiB | $0.11 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
presentation | 132,575,550 | 18.1 GiB | $0.11 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
quick_summary | 89,587,397 | 16.6 GiB | $0.10 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
measure_tag | 26,374,920 | 5.1 GiB | $0.03 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
rendering | 14,415,556 | 3.3 GiB | $0.02 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
calculation | 20,756,076 | 2.9 GiB | $0.02 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
dimension | 14,238,806 | 1.9 GiB | $0.01 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
submission | 325,411 | 95.2 MiB | under $0.01 | Partitioned: Ingestion time (_PARTITIONTIME), daily |
sic_codes | 444 | 19.8 KiB | under $0.01 | None |
Example queries
One company's numbers with SELECT * (expensive)
All 17 columns of quick_summary for Apple: 16.56 GiB, the full table.
SELECT *
FROM `bigquery-public-data.sec_quarterly_financials.quick_summary`
WHERE company_name = 'APPLE INC';Quarterly revenue for one company
Seven columns of quick_summary: 8.62 GiB. number_of_quarters = 1 keeps quarterly values and drops year-to-date and annual ones.
SELECT
fiscal_year,
fiscal_period_focus,
period_end_date,
value AS revenue_usd
FROM `bigquery-public-data.sec_quarterly_financials.quick_summary`
WHERE company_name = 'APPLE INC'
AND measure_tag = 'RevenueFromContractWithCustomerExcludingAssessedTax'
AND number_of_quarters = 1
ORDER BY period_end_date DESC;Quarterly revenue, only partitions loaded since 2019 (cheap)
Adds a _PARTITIONTIME filter: 1.35 GiB. The partition date is when the rows were loaded, not the filing date, so check which fiscal years come back.
SELECT
fiscal_year,
fiscal_period_focus,
period_end_date,
value AS revenue_usd
FROM `bigquery-public-data.sec_quarterly_financials.quick_summary`
WHERE _PARTITIONTIME >= '2019-01-01'
AND company_name = 'APPLE INC'
AND measure_tag = 'RevenueFromContractWithCustomerExcludingAssessedTax'
AND number_of_quarters = 1
ORDER BY period_end_date DESC;10-K and 10-Q filings per fiscal year
submission is 95 MiB; three columns read 4.1 MiB.
SELECT
form,
fiscal_year,
COUNT(*) AS filings
FROM `bigquery-public-data.sec_quarterly_financials.submission`
WHERE form IN ('10-K', '10-Q')
GROUP BY form, fiscal_year
ORDER BY fiscal_year DESC, form;Industries with the most 10-K filers
Joins submission to sic_codes.
SELECT
c.industry_title,
COUNT(DISTINCT s.central_index_key) AS companies
FROM `bigquery-public-data.sec_quarterly_financials.submission` AS s
JOIN `bigquery-public-data.sec_quarterly_financials.sic_codes` AS c
ON s.sic = c.sic_code
WHERE s.form = '10-K'
GROUP BY c.industry_title
ORDER BY companies DESC
LIMIT 10;Querying it cheaply
- The heavy tables are
numbers(42.4 GiB),txt(18.8 GiB),presentation(18.1 GiB) andquick_summary(16.6 GiB). Start fromsubmission(95 MiB) to find the filings you want. - Every table except
sic_codesis partitioned by ingestion time. A filter on_PARTITIONTIMEprunes partitions: in a dry run, two columns ofquick_summarycost 4.15 GiB for all partitions and 0.66 GiB for partitions since 2019. The partition date is the load date, not the filing date. - No table is clustered, so filters on
company_nameormeasure_tagdo not reduce bytes. Only columns and_PARTITIONTIMEdo. company_nameis a long string repeated on every row ofquick_summary. Filtering oncentral_index_key(an INT64) reads fewer bytes than filtering on the name.
FAQ
How much does it cost to query SEC financial data in BigQuery?
Queries on submission bill a few MiB. Queries on quick_summary or numbers scan 1 to 17 GiB depending on columns and partition filters; SELECT * on numbers would scan 42.4 GiB.
Is the sec_quarterly_financials dataset free?
Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.
Is the SEC dataset in BigQuery up to date?
No. The dataset description says the data was updated on 2021-05-31, and no table has been modified since June 2021. For newer filings use the SEC's Financial Statement Data Sets on sec.gov.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
