/metric/all

Return the full metrics object for one filing, including realtime price-sensitive metrics when the caller supplies current_price, and optional formula overrides.

POST/api/v1/metric/all
Credits158Rate limit60 per minute

Filing selection: exactly one of metric_group_id (from POST /metric/filings), filing_id, or ticker and fiscal_year with optional form_type (default 10-K) and quarter.

Request:

metric_group_idinteger

Conditional. 1–10⁹.

filing_idinteger

Conditional. 1–10⁹.

tickerstring

Conditional, with fiscal_year. 1–32 characters.

fiscal_yearinteger

Conditional, with ticker. 1990–2100.

form_typestring

Only with ticker and fiscal_year.

Default 10-K

quarterstring

Only with ticker and fiscal_year.

Default null

as_of_datestring

YYYY-MM-DD, not in the future: the metrics as they stood that day.

Default null

accept_suggested_formulaboolean

When true, applies suggested formula hints included with the filing’s metrics (if any).

Default false

formula_overrideobject

Per-metric overrides. Keys are metric names (e.g. "operating_margin"). Values are objects containing "concepts" (array of strings, at most 50 entries per metric) and "operators" (array of strings, e.g. ["+", "-"], length must be exactly len(concepts) - 1). A lone top-level { "concepts": ... } object is invalid.

Default null

current_pricenumber

USD price used to compute realtime price-sensitive metrics (market_cap, pe_ratio, enterprise_value, price_to_book, price_to_sales, price_to_cash_flow, ev_to_ebitda, ev_to_revenue, ev_to_fcf, fcf_yield, dividend_yield, buyback_yield, owner_earnings_yield). Must be > 0, ≤ 10,000,000, with at most 4 decimal places. Pass the USD price as-is for all filings, including foreign-issuer ADRs. With as_of_date, it is taken as the price on that date. Invalid values return HTTP 422 without charging credits. When omitted, the realtime block is replaced by { "status": "missing", "hint": "..." } and the same hint appears in _warnings.

Default null

current_fx_ratenumber

Optional fallback FX rate (units of the filing's reporting_currency per 1 USD), used only when an up-to-date conversion rate is temporarily unavailable for filings not reported in USD. With as_of_date and current_price, required for a filing not reported in USD: the rate on that date. Must be > 0, ≤ 1,000,000, with at most 6 decimal places. Invalid values return HTTP 422 without charging credits.

Default null

detailstring

"light" leaves out the intermediates the returned metrics do not use. See Light and minimal views.

Default "full"

Response:

credits_used

158.

metric_group_id

The metric group ID actually used.

valuation_context

Echo of flags and formula inputs.

ticker, form_type, fiscal_year, quarter, cik, source_accession, primary_document, source_url_prefix

Filing identity and SEC base URL. source_url_prefix may be null; combine it with each fact’s source_locator (see below) to build the SEC viewer URL.

price_insensitive_metrics

Object containing metrics that do not depend on stock price. Within each metric, nested fact_refs / components entries that expose fact_id also expose source_locator (may be null).

price_sensitive_metrics

Object containing metrics that depend on stock price: a filing_date_price + historical pair (the metrics computed from the filing-date stock price) and, when the filing has price-sensitive metrics, a realtime sub-object (computed from the request's current_price; when realtime cannot be computed it is { "status": "missing" | "missing_fx_fallback", "hint": "..." }). For foreign-issuer ADR filings each computed metric carries a price_used block — see Response conventions. Same source_locator convention on nested fact references where fact_id is present. POST /metric/all/filing-date returns the filing-date block only.

price_context

Present whenever the response would include a realtime block. status is "ok" (price applied), "missing" (no current_price supplied), or "missing_fx_fallback" (foreign-issuer filing and an up-to-date conversion rate is temporarily unavailable). When ok, also includes price, price_date, source: "user_supplied", and fx_fallback_used: true if the caller-supplied current_fx_rate was used because an up-to-date rate was unavailable. mode is always present; on the two non-ok statuses a message states what to send.

ttm_composite, dei_corrected, discontinuity

Optional root fields, present when the filing has them.

intermediates

The intermediate quantities the formulas name (e.g. Revenue_TTM, MarketCap, Split_2024_06_10), each with its value and label; a computed one also carries its formula and input facts.

amended

Present (true) when this filing had a later amendment merged in. The returned metric values are already the amended figures.

corporate_actions

Optional root field, present when the ticker has corporate action events in the lookback window. Contains events_in_lookback and events_after_period_end (relative to this filing's period end; with as_of_date, the events up to that date); each event carries ex_date, ratio, type (forward / reverse), event_type (e.g. stock_split, stock_dividend), affects_total_shares, affects_holder_share_count, and relevant_to_metrics. Also carries adjustment_factor_to_today (factor converting this filing's per-share basis to the current basis; with as_of_date, to that date's basis), adjustment_factor_anchor (the date the factor is anchored on), adjustment_factor_anchor_basis (how the anchor is chosen; filing_date), and events_already_reflected_in_filing (splits between the period end and the filing date that the filing's own figures already reflect; present only when there are any). When adjustment_factor_to_today is not 1, three per-share metrics — pe_ratio, dividend_yield, eps_growth_yoy — additionally carry adjusted_value, adjustment_factor, and comparable_to_current_basis, so values from this filing can be compared on the current per-share basis; when it is 1 the filing is already on that basis and those three fields are absent. Total values (revenue, market_cap, etc.) are unaffected. Tickers with no events in the window omit the field entirely.

_warnings

Optional; warnings about amendments or formulas.

Errors:

Errors before the charge (not charged):

HTTPerror_codeWhen
404METRIC_GROUP_NOT_FOUNDUnknown metric_group_id.
404DATA_FILING_NOT_FOUNDNo filing for the given filing_id or ticker + fiscal_year.
404DATA_FILING_NOT_YET_FILEDThe filing had not been filed by as_of_date.
400DATA_FILING_QUARTER_REQUIREDSeveral filings match without a quarter; message lists available quarters.
404METRIC_SUMMARY_NOT_FOUNDFiling has no metrics summary.
400METRICS_UNSUPPORTED_FOR_KR, _JP, _EU, _CNThe ticker is a Korean, Japanese, European or China A-share company.
403PLAN_TIER_INSUFFICIENT_HISTORYfiscal_year is before your plan's history window.
403PLAN_TIER_INSUFFICIENT_COVERAGEThe company, named by ticker, is outside your plan's coverage scope.
403PLAN_TIER_INSUFFICIENTThe filing, named by metric_group_id or filing_id, is outside your plan.
403PLAN_TIER_INSUFFICIENT_FORMULA_OVERRIDEformula_override below the Pro plan.
400METRIC_AS_OF_FX_RATE_REQUIREDcurrent_price with as_of_date for a filing not reported in USD, without current_fx_rate.
402CREDITS_INSUFFICIENTInsufficient credits.
422VALIDATION_ERRORFiling selection (Provide exactly one of: metric_group_id, filing_id, or both ticker and fiscal_year., form_type and quarter can only be used with ticker and fiscal_year.); current_price is non-numeric, non-finite, ≤ 0, > 10,000,000, or has more than 4 decimal places; or current_fx_rate is non-numeric, non-finite, ≤ 0, > 1,000,000, or has more than 6 decimal places.

Errors after the charge (charged 158, detail.credits_used):

HTTPerror_codeWhen
404METRIC_SUMMARY_OBJECT_MISSINGThe metrics summary could not be retrieved.
500METRIC_SUMMARY_INVALID_FORMATThe metrics summary data is invalid.
409METRIC_FORMULA_OVERRIDE_INVALIDInvalid formula_override.
422METRIC_FORMULA_APPLY_FAILEDFormula application failed.
400METRIC_CURRENT_PRICE_UNSUPPORTEDcurrent_price can't be used with this filing.