EDGAR (SEC Filings)
EDGAR (Electronic Data Gathering, Analysis, and Retrieval) is the SEC's public archive of the disclosures every US public company must file. It reaches back to 1993 and holds millions of documents: annual reports (10-K), quarterly reports (10-Q), material event notices (8-K), registration statements, insider trading forms, and shareholder proxy materials. If a listed US company had to tell its investors something, it is almost certainly in here.
You have several ways in. Full-text search covers filings from 2001 onward, the daily and quarterly index files list everything submitted in a given period, and the submissions and company facts APIs return clean JSON without needing a key. Individual filings come as HTML, plain text, and XBRL, a tagged XML format that exposes each figure in a financial statement as a labelled, machine-readable field. A sensible pipeline walks the index files, downloads the primary document, strips the HTML, and chunks by the filing's own section headings.
EDGAR suits any RAG system that answers questions about company financials, filing history, or regulatory compliance: an assistant that compares a firm's risk factors year on year, say, or one that surfaces the exact 10-K passage behind a number. Because the XBRL layer carries the actual figures, you can pair narrative retrieval with precise numeric lookups rather than trusting a model to read a table correctly.
A few things to watch. The SEC rate-limits requests (roughly 10 per second) and asks you to send a descriptive User-Agent header, so be polite or you will be blocked. Older filings can be messy ASCII with inconsistent formatting, and XBRL tagging quality varies between companies. On licence, everything is a US Government work in the public domain, so commercial reuse is fine with no attribution or share-alike strings attached. For non-US markets, pair EDGAR with legislation.gov.uk or EUR-Lex on the regulatory side; for the filings themselves it is the definitive source.
Related sources
AustLII
A free resource of medium-neutral case law and unreported judgments for all Australian jurisdictions, covering the whole country since 1995.
Awesome LegalTech
A curated list of legal technology resources: open-source platforms, AI models, companies, datasets, and tools spanning the global legal ecosystem. Useful for tracking new entrants in a fast-moving space.
BAILII (British and Irish Legal Information Institute)
Free access to British and Irish primary legal materials, covering UK and Ireland case law and legislation. Alongside the National Archives, one of the main free sources for reading UK judgments.
Cambridge Law Corpus
A research dataset of more than 250,000 UK court cases, mostly from the 21st century but with some reaching back to the 16th century. Built by the University of Cambridge for legal natural language processing work, it is available under restricted access for research use.