Read a filing document
get_filing_documentFetch an SEC filing's primary document as clean text with tables preserved, or extract a specific 10-K/10-Q item for financial and risk analysis.
Instructions
Fetch an SEC filing's primary document (HTML converted to clean text, tables preserved as aligned rows). Identify it by url (any www.sec.gov/Archives document URL from list_filings) or by company + accession. Optionally extract one 10-K/10-Q item via section (e.g. '1' Business, '1A' Risk Factors, '7' MD&A, '7A' Market Risk, '8' Financial Statements; for 10-Q: '1' Financial Statements, '2' MD&A, '1A' Risk Factors). Long text is paged: use max_chars and the returned next_offset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Document URL on www.sec.gov/Archives | |
| offset | No | ||
| company | No | Ticker (AAPL), CIK (320193 or 0000320193), or company name. Names must resolve unambiguously; use search_company first if unsure. | |
| section | No | Item id to extract, e.g. '1A', '7', 'Item 7A' | |
| accession | No | Accession number, e.g. 0000320193-24-000123 | |
| max_chars | No |