SEC Filings Archive

from datamulehub import sec_filings_archive

Tar Archive

SEC filings, parsed into constituent files, compressed individually, then put in a tar. This enables downloading specific files within filings quickly.

download_tar(**args)

SGML Archive

SEC Filings in their original SGML format, compressed with zstd.

download_sgml(**args)

XBRL Archive

XBRL extracted from filings into nested json.

download_xbrl(**args)

Arguments are shared between archives

Arguments:

Example

from datamulehub import sec_filings_archive

# download sgml 10-K/Q for MSFT
sec_filings_archive.download_sgml(cik=320193, submission_type=["10-K", "10-Q"], output_dir="outfolder")

# download tar document ranges to outfolder/filingDate/accession/filename
sec_filings_archive.download_tar(cik=320193, document_type=["10-K", "10-Q"], output_dir="outfolder")

# download full XBRL fact JSON to outfolder/filingDate/accession.json
sec_filings_archive.download_xbrl(cik=320193, submission_type="10-K", output_dir="outfolder", tar_max_size_mb=None)