Prerequisites
- Python 3.7+
- A Financial Datasets API key (sign up here)
- The
requestslibrary (pip install requests)
Step 1: Set Up Authentication
Step 2: Fetch Income Statements
Use the Income Statements API to get revenue, expenses, and net income data.Step 3: Fetch Balance Sheets
Use the Balance Sheets API to get assets, liabilities, and equity data.Step 4: Fetch Cash Flow Statements
Use the Cash Flow Statements API to get operating, investing, and financing cash flows.Step 5: Get All Statements in One Call
Use the All Financial Statements API to fetch all three statement types in a single request.Filtering by Date Range
Usereport_period parameters to get statements within a specific date range:
report_period, report_period_lt, report_period_lte, report_period_gt, report_period_gte.
Available Tickers
Fetch the list of tickers with financial statement coverage:Next Steps
- Income Statements API Reference — full parameter documentation
- Balance Sheets API Reference — all available fields
- Financial Metrics API — pre-calculated ratios like P/E, ROE, and EV/EBITDA
- SEC Filings Guide — access the source documents behind the numbers