Metric catalog
Metric names are part of the wire contract, and the canonical set is not the same as the derived set: a name valid on one route is refused on another. The catalog tells you which is which before you query, and lets you validate names locally instead of discovering the problem one request at a time.
Check the name first
curl -X GET "https://api.arche.fi/v1/metrics/definitions" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
The whole catalog comes back in one call, canonical and derived definitions together, each one flagged as which it is. Fetch it once at startup and validate names locally rather than discovering the problem per query.
For one metric:
curl -X GET "https://api.arche.fi/v1/metrics/definitions/REVENUE" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Metric definitions
{
"data": [
{
"metric": "ACCOUNTS_PAYABLE",
"display_name": "Accounts payable",
"category": "LIABILITIES",
"statement_type": "BALANCE_SHEET",
"is_canonical": true,
"is_derived": false,
"unit_type": "currency",
"formula": "as_reported",
"dependencies": [],
"denominator_zero_behavior": null,
"missing_input_behavior": "null_if_metric_not_available",
"market_data_required": false,
"source_notes": "Reported by the filer in its XBRL financial statements.",
"provenance_behavior": "statement_metric_provenance_when_available"
}
]
}
Five fields are worth reading before you use a metric in a calculation:
- Name
missing_input_behavior- Type
- string
- Description
What the metric does when an input is absent.
null_if_metric_not_availablemeans you getnullrather than a zero, so an absent figure never silently becomes a real one.
- Name
denominator_zero_behavior- Type
- string | null
- Description
How a ratio behaves when its denominator is zero.
nullon a metric that has no denominator.
- Name
market_data_required- Type
- boolean
- Description
truefor metrics needing a price input. These depend on market data being present for the period, not only on the filing.
- Name
unit_type- Type
- string
- Description
currency,ratio,sharesand similar. It tells you whether a value is an amount, a proportion, or a count before you format it.
- Name
provenance_behavior- Type
- string
- Description
How a value traces back to the filing.
statement_metric_provenance_when_availableon a canonical metric: the provenance routes name the filing and XBRL concept behind each value where they are recorded.derived_metrics_do_not_emit_direct_xbrl_provenanceon a derived metric, which has no XBRL fact of its own; trace itsdependenciesinstead.
Canonical vs derived
This distinction decides which routes will answer for a name:
- Canonical metrics (
is_canonical: true) are what statements, time series and coverage hold. Most are mapped straight from XBRL tags and carryis_derived: false:REVENUE,TOTAL_ASSETS,GROSS_PROFIT. A few, such asNET_INCOMEandOPERATING_INCOME, carryis_derived: true: Arche computes them from the filer's other reported lines when the filer does not report them directly. - Derived metrics (
is_canonical: false) are computed from canonical ones.GROSS_MARGIN,ROE,ROIC,FCF_CONVERSION. These live on the modeling and derived-metric routes.
Asking a canonical-metric route for a derived name is refused with
400 VALIDATION_ERROR, and the message lists the canonical
names that route accepts. /v1/coverage/metrics/GROSS_MARGIN
answers that way because GROSS_MARGIN is derived, not because
no company has a gross margin. Read is_canonical here to know
which route to ask.
Derived metric catalog
The derived metrics and their formulas:
curl -X GET "https://api.arche.fi/v1/edgar/derived-metrics/catalog" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Read dependencies on a derived metric to see which canonical metrics it needs.
If one of those is absent for a period, the derived metric will be absent too —
which is why a derived series can have gaps a canonical series does not.
Bundles and views
Curated metric groupings, so you can request a coherent set without naming every member:
curl -X GET "https://api.arche.fi/v1/edgar/metric-bundles" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Representative response:
{
"data": [
{
"code": "cash_flow_quality",
"label": "Cash flow quality",
"description": "Filing-based cash-flow quality metrics only.",
"metrics": ["CFO_TO_NET_INCOME", "FCF_CONVERSION", "CFO_MARGIN", "FCF_MARGIN"]
},
{
"code": "core_balance_sheet",
"label": "Core balance sheet",
"description": "Canonical filing-based balance-sheet metrics.",
"metrics": [
"CASH_AND_CASH_EQUIVALENTS",
"TOTAL_ASSETS",
"TOTAL_LIABILITIES",
"TOTAL_EQUITY"
]
}
]
}
Eight bundles exist. A bundle code is what
/v1/edgar/companies/{cik}/metric-bundles/{bundle_code}/time-series
takes.
Views are the wider equivalent, mixing canonical and derived metrics for a modeling use case:
curl -X GET "https://api.arche.fi/v1/views/metrics" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
core_fundamentals is the broad one, carrying margins, growth, cash flow,
capital structure and returns together. Request a single view by code at
/v1/views/metrics/{bundle_code}.
Segments
Dimensional breakdowns — the segment, geography and product axes a filer tagged its facts along:
curl -X GET "https://api.arche.fi/v1/metrics/segments?cik=0000789019&page_size=50" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Each row carries the accession_id of the filing it came from, so a segment
figure is anchored to the same filing's statement as the consolidated one. A row
is identified by its company, statement_date, dimension_type, axis_qname,
member_qname, metric_code, period_start, period_end and value; a value
the filing reports more than once is listed once. Filter by cik, company_id, period or dimension_type.
Segment rows are dimensional facts, not a separate statement. A segment
total and the consolidated figure come from the same filing, so they
reconcile — but only within one filing's accession_id. Do not
mix a segment row from one filing with a consolidated figure from another.
Next steps
Company identity
Resolve tickers to full issuer records, search by name, and read mapping validity.
Time series
Pull a metric across a whole reporting history, point-in-time or as-reported.
Fundamentals
Read panels across many companies, name a statement by its identity, and pull the approved macro context.