| name | edgartools-sec-data |
| description | How to pull SEC EDGAR data with the edgartools Python package — company lookup, filings, XBRL financial statements, and filing sections like Item 1A risk factors. Use whenever a task involves SEC filings, 10-K/10-Q data, or company financials. |
edgartools: SEC EDGAR data access
edgartools is the desk's standard way to read SEC data. It is preinstalled in your environment. Work in Python (a script or python -c), not by fetching sec.gov pages by hand.
Always set your identity first
The SEC requires a contact identity on automated requests. Do this before any other call, every session:
from edgar import set_identity
set_identity("Research Desk workshop attendee@example.com")
(Equivalently, the EDGAR_IDENTITY environment variable, exported before running Python.)
Companies and filings
from edgar import Company
company = Company("NVDA")
company.name, company.cik, company.industry
filings = company.get_filings(form="10-K")
latest_10k = filings.latest()
latest_10q = company.get_filings(form="10-Q").latest()
latest_10k.form, latest_10k.filing_date, latest_10k.accession_no
Pick whichever of the latest 10-K / 10-Q is more recent when asked for "the most recent filing". Foreign private issuers file 20-F instead of 10-K.