List financial metrics
curl --request GET \
--url https://api.darvas.app/v1/financial-metrics \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/financial-metrics"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/financial-metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"financial_metrics": [
{
"ticker": "AAPL",
"report_period": "2026-09-26",
"fiscal_period": "2026-FY",
"period": "annual",
"currency": "USD",
"accession_number": "0000320193-26-000026",
"form_type": "10-K",
"filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm",
"filing_date": "2026-11-03",
"filing_datetime": "2026-11-03T16:31:05-05:00",
"market_cap": 4956517683567,
"enterprise_value": 5000323683567,
"price_to_earnings_ratio": 37.499661,
"price_to_book_ratio": 44.217906,
"price_to_sales_ratio": 10.351223,
"enterprise_value_to_ebitda_ratio": 28.960522,
"enterprise_value_to_revenue_ratio": 10.442708,
"free_cash_flow_yield": 0.02745,
"peg_ratio": 1.840447,
"gross_margin": 0.487856,
"operating_margin": 0.3301,
"net_margin": 0.276035,
"return_on_equity": 1.179155,
"return_on_assets": 0.326723,
"return_on_invested_capital": 0.840294,
"asset_turnover": 1.253838,
"inventory_turnover": 24.209685,
"receivables_turnover": 6.112644,
"days_sales_outstanding": 59.71,
"operating_cycle": 74.79,
"working_capital_turnover": -69.739878,
"current_ratio": 1.0232,
"quick_ratio": 0.826501,
"cash_ratio": 0.213666,
"operating_cash_flow_ratio": 0.853939,
"debt_to_equity": 0.714683,
"debt_to_assets": 0.198026,
"interest_coverage": null,
"revenue_growth": 0.150598,
"earnings_growth": 0.180029,
"book_value_growth": 0.520256,
"earnings_per_share_growth": 0.203753,
"free_cash_flow_growth": 0.377545,
"operating_income_growth": 0.187997,
"ebitda_growth": 0.195483,
"payout_ratio": 0.118941,
"earnings_per_share": 9.01,
"book_value_per_share": 7.713391,
"free_cash_flow_per_share": 9.362343
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Valuation & Peers
Historical Valuation Ratios & Metrics API
Query historical P/E, EV/EBITDA, P/S, P/B, ROE, ROIC, margins and leverage ratios by fiscal period for backtesting and equity valuation models.
List financial metrics
curl --request GET \
--url https://api.darvas.app/v1/financial-metrics \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/financial-metrics"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/financial-metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"financial_metrics": [
{
"ticker": "AAPL",
"report_period": "2026-09-26",
"fiscal_period": "2026-FY",
"period": "annual",
"currency": "USD",
"accession_number": "0000320193-26-000026",
"form_type": "10-K",
"filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/0000320193-26-000026-index.htm",
"filing_date": "2026-11-03",
"filing_datetime": "2026-11-03T16:31:05-05:00",
"market_cap": 4956517683567,
"enterprise_value": 5000323683567,
"price_to_earnings_ratio": 37.499661,
"price_to_book_ratio": 44.217906,
"price_to_sales_ratio": 10.351223,
"enterprise_value_to_ebitda_ratio": 28.960522,
"enterprise_value_to_revenue_ratio": 10.442708,
"free_cash_flow_yield": 0.02745,
"peg_ratio": 1.840447,
"gross_margin": 0.487856,
"operating_margin": 0.3301,
"net_margin": 0.276035,
"return_on_equity": 1.179155,
"return_on_assets": 0.326723,
"return_on_invested_capital": 0.840294,
"asset_turnover": 1.253838,
"inventory_turnover": 24.209685,
"receivables_turnover": 6.112644,
"days_sales_outstanding": 59.71,
"operating_cycle": 74.79,
"working_capital_turnover": -69.739878,
"current_ratio": 1.0232,
"quick_ratio": 0.826501,
"cash_ratio": 0.213666,
"operating_cash_flow_ratio": 0.853939,
"debt_to_equity": 0.714683,
"debt_to_assets": 0.198026,
"interest_coverage": null,
"revenue_growth": 0.150598,
"earnings_growth": 0.180029,
"book_value_growth": 0.520256,
"earnings_per_share_growth": 0.203753,
"free_cash_flow_growth": 0.377545,
"operating_income_growth": 0.187997,
"ebitda_growth": 0.195483,
"payout_ratio": 0.118941,
"earnings_per_share": 9.01,
"book_value_per_share": 7.713391,
"free_cash_flow_per_share": 9.362343
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
Ratios computed from the standardized statements, one row per fiscal year, quarter or trailing twelve months, with the statement’s filing metadata. MCP tool:list_financial_metrics on the data API MCP server.
| Group | Ratios | How |
|---|---|---|
| Profitability | gross_margin, operating_margin, net_margin, return_on_equity, return_on_assets, return_on_invested_capital | Over revenue, period-end equity, period-end assets, and debt plus equity less cash |
| Efficiency | asset_turnover, inventory_turnover, receivables_turnover, days_sales_outstanding, operating_cycle, working_capital_turnover | Over the average of the period’s balance and the previous one |
| Liquidity and leverage | current_ratio, quick_ratio, cash_ratio, operating_cash_flow_ratio, debt_to_equity, debt_to_assets, interest_coverage | At the period end |
| Growth | revenue_growth, earnings_growth, book_value_growth, earnings_per_share_growth, free_cash_flow_growth, operating_income_growth, ebitda_growth | Against the same period a year earlier, over the size of the earlier value |
| Per share | earnings_per_share, book_value_per_share, free_cash_flow_per_share, payout_ratio | Over period-end shares outstanding |
0.46. A quarter’s ratios use the quarter alone and are not annualized; use period=ttm for yearly ratios at every quarter end. A ratio whose inputs the filing does not report is null.
Valuation ratios (market_cap, enterprise_value, 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, peg_ratio) take the stock’s last close at most 10 days before the period ends. Darvas adjusts that close for splits onto the share count of the period’s filing. They are null for statements in a currency other than USD, for UK and French companies, and for a period without a stored US close. The snapshot prices the newest trailing twelve months at the latest share price.
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
metrics = requests.get(
"https://api.darvas.app/v1/financial-metrics",
headers=headers,
params={"ticker": "AAPL", "period": "ttm", "limit": 8},
).json()
for row in metrics["financial_metrics"]:
print(row["report_period"], row["gross_margin"], row["return_on_equity"], row["revenue_growth"])
Authorizations
apiKeybearerKey
Query Parameters
Response
List financial metrics: one page.
The answer of GET /financial-metrics.