Skip to main content
Compare financial peers and group medians

Overview

This endpoint lines up the latest price and the newest trailing twelve month (TTM) financial ratios of 2 to 20 US stocks, one entry per ticker, and adds the peer group median of the main valuation, profitability, growth and leverage metrics. Use it for comparable company analysis, relative valuation screens and questions such as “is MSFT expensive against its peers?”.

Parameters and response

tickers is the only parameter, such as tickers=AAPL,MSFT,GOOGL. Fewer than 2 or more than 20 unique tickers return 400, and the answer is 404 only when none of them has stored metrics or a price. Margins, returns and growth rates are fractions: 0.318 is 31.8%. A median of an even number of peers is the mean of the two middle values; a metric no peer has is null. A peer that sends not_found carries only ticker and status, so check status before reading its fields. For one company’s full ratio history, see Financial Ratios. To find the peers themselves by ratio thresholds, use the Stock Screener. For one company with its insider, 13F and 8-K activity, use the Company Dossier.

Examples

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

tickers
string
required

Comma-separated list of 2 to 20 US ticker symbols (for example AAPL,MSFT,GOOGL).

Maximum string length: 200
Pattern: ^[A-Za-z0-9.,-]{3,200}$

Response

Compare financial peers and group medians: one page.

The answer of GET /financials/peer-comparison.

tickers
string[]
required

Requested ticker list.

Maximum array length: 20
Maximum string length: 12
Pattern: ^[A-Z0-9.-]{1,12}$
Example:
peers
object[]
required

Latest valuation, margins, and price snapshot per peer ticker.

Maximum array length: 20
Example:
medians
object
required

Peer group median across valuation and profitability metrics.

Example: