List a stock's valuation history
curl --request GET \
--url https://api.darvas.app/v1/valuation/history \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/valuation/history"
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/valuation/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "AAPL",
"cik": "0000320193",
"interval": "day",
"start_date": "2025-11-30",
"end_date": "2026-11-30",
"valuation_history": [
{
"date": "2026-11-27",
"close_usd": 266.9,
"shares_outstanding": 14840000000,
"market_cap_usd": 3960000000000,
"enterprise_value_usd": 3995000000000,
"price_to_earnings_ratio": 35.8,
"price_to_sales_ratio": 9.5,
"price_to_book_ratio": 54.4,
"price_to_free_cash_flow_ratio": 40.1,
"ev_to_revenue_ratio": 9.6,
"ev_to_ebitda_ratio": 27.6,
"ev_to_ebit_ratio": 30.1,
"earnings_yield_pct": 2.79,
"free_cash_flow_yield_pct": 2.49,
"dividend_yield_pct": 0.39,
"fundamentals_report_period": "2026-09-26",
"fundamentals_accession_number": "0000320193-26-000026",
"fundamentals_filing_date": "2026-11-03",
"fundamentals_age_days": 62,
"null_reasons": {}
}
],
"methodology": "Each day's close times the shares outstanding on the trailing twelve months filed by that day.",
"units": {
"_usd": "US dollars",
"_pct": "percent: 1.5 means 1.5%",
"_ratio": "a plain multiple"
},
"source": "Daily closes of the US listing and standardized SEC filings, as Darvas stores them",
"as_of": "2026-11-30T12:00:00.000Z"
}{
"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 P/E & EV/EBITDA Valuation API
Get a US stock’s daily, weekly or monthly market cap, enterprise value, P/E, P/S, P/B, EV/EBITDA and yields on the trailing year it had filed by each day.
List a stock's valuation history
curl --request GET \
--url https://api.darvas.app/v1/valuation/history \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/valuation/history"
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/valuation/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "AAPL",
"cik": "0000320193",
"interval": "day",
"start_date": "2025-11-30",
"end_date": "2026-11-30",
"valuation_history": [
{
"date": "2026-11-27",
"close_usd": 266.9,
"shares_outstanding": 14840000000,
"market_cap_usd": 3960000000000,
"enterprise_value_usd": 3995000000000,
"price_to_earnings_ratio": 35.8,
"price_to_sales_ratio": 9.5,
"price_to_book_ratio": 54.4,
"price_to_free_cash_flow_ratio": 40.1,
"ev_to_revenue_ratio": 9.6,
"ev_to_ebitda_ratio": 27.6,
"ev_to_ebit_ratio": 30.1,
"earnings_yield_pct": 2.79,
"free_cash_flow_yield_pct": 2.49,
"dividend_yield_pct": 0.39,
"fundamentals_report_period": "2026-09-26",
"fundamentals_accession_number": "0000320193-26-000026",
"fundamentals_filing_date": "2026-11-03",
"fundamentals_age_days": 62,
"null_reasons": {}
}
],
"methodology": "Each day's close times the shares outstanding on the trailing twelve months filed by that day.",
"units": {
"_usd": "US dollars",
"_pct": "percent: 1.5 means 1.5%",
"_ratio": "a plain multiple"
},
"source": "Daily closes of the US listing and standardized SEC filings, as Darvas stores them",
"as_of": "2026-11-30T12:00:00.000Z"
}{
"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
This endpoint returns a US stock’s market capitalization, enterprise value and valuation multiples on every trading day, or the last of each week or month, oldest first, 250 rows a page. Each day rests on the trailing twelve months the company had filed by that day, so a restatement filed later never changes an earlier day and the series has no look-ahead. Every row names the filing it rests on and how old its period is. Without dates the answer covers the last 365 days; one request spans up to 40 years.| Coverage | Details |
|---|---|
| Stocks | US listings with daily closes and standardized SEC statements |
| Multiples | P/E, P/S, P/B, P/FCF, EV/revenue, EV/EBITDA, EV/EBIT, earnings, free cash flow and dividend yields |
| Sampling | day, week or month; 250 rows a page with next_page_url |
| Nulls | A multiple over a loss or a missing input is null with its cause in null_reasons |
| MCP tool | list_valuation_history on the data API MCP server |
Example
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
answer = requests.get(
"https://api.darvas.app/v1/valuation/history",
headers=headers,
params={
"ticker": "AAPL",
"interval": "month",
"start_date": "2016-01-01",
},
).json()
for day in answer["valuation_history"]:
print(day["date"], day["price_to_earnings_ratio"], day["ev_to_ebitda_ratio"])
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/valuation/history?ticker=AAPL&interval=month&start_date=2016-01-01"
Authorizations
apiKeybearerKey
Query Parameters
Response
List a stock's valuation history: one page.
The answer of GET /valuation/history.