Historical
Get financial metrics for a ticker, including valuation, profitability, efficiency, liquidity, leverage, growth, and per share metrics.
π Overview
The historical financial metrics API provides historical financial metrics and ratios for a given stock ticker.
Financial metrics include a companyβs valuation, profitability, efficiency, liquidity, leverage, growth, and per share metrics over a specified period.
To get started, please create an account and grab your API key at financialdatasets.ai.
You will use the API key to authenticate your API requests.
π Available Tickers
You can fetch a list of available tickers with a GET
request to:
https://api.financialdatasets.ai/financial-metrics/tickers/
π Getting Started
There are only 3 steps for making a successful API call:
- Add your API key to the header of the request as
X-API-KEY
. - Add query params like
ticker
to filter the data. - Execute the API request.
π Filtering the Data
You can filter the data by ticker
, period
, limit
, and report_period
.
Note: ticker
and period
are required. By default, limit
is 4
and report_period
is null
.
The period
parameter can be set to annual
, quarterly
, or ttm
(trailing twelve months). The limit
parameter is used to specify the number of periods to return.
The report_period
parameter is used to specify the date of the financial metrics. For example, you can include filters like report_period_lte=2024-09-30
and report_period_gte=2024-01-01
to get financial metrics between January 1, 2024 and September 30, 2024.
The available report_period
operations are:
report_period_lte
report_period_lt
report_period_gte
report_period_gt
report_period
π» Example
π» Example (with report_period)
Authorizations
API key for authentication.
Query Parameters
The ticker symbol of the company.
The time period for the financial data.
annual
, quarterly
, ttm
The maximum number of results to return.
Response
The ticker symbol of the company.
The market capitalization of the company.
The total value of the company (market cap + debt - cash).
Price to earnings ratio.
Price to book ratio.
Price to sales ratio.
Enterprise value to EBITDA ratio.
Enterprise value to revenue ratio.
Free cash flow yield.
Price to earnings growth ratio.
Gross profit as a percentage of revenue.
Operating income as a percentage of revenue.
Net income as a percentage of revenue.
Net income as a percentage of shareholders' equity.
Net income as a percentage of total assets.
Net operating profit after taxes as a percentage of invested capital.
Revenue divided by average total assets.
Cost of goods sold divided by average inventory.
Revenue divided by average accounts receivable.
Average accounts receivable divided by revenue over the period.
Inventory turnover + receivables turnover.
Revenue divided by average working capital.
Current assets divided by current liabilities.
Quick assets divided by current liabilities.
Cash and cash equivalents divided by current liabilities.
Operating cash flow divided by current liabilities.
Total debt divided by shareholders' equity.
Total debt divided by total assets.
EBIT divided by interest expense.
Year-over-year growth in revenue.
Year-over-year growth in earnings.
Year-over-year growth in book value.
Growth in earnings per share over the period.
Growth in free cash flow over the period.
Growth in operating income over the period.
Growth in EBITDA over the period.
Dividends paid as a percentage of net income.
Net income divided by weighted average shares outstanding.
Shareholders' equity divided by shares outstanding.
Free cash flow divided by shares outstanding.