Modeling
The modeling routes return derived analytics — margins, returns, growth rates, TTM aggregates — computed against a fixed point-in-time snapshot rather than against today's data. That anchoring is the point: a ratio is only reproducible if the filings behind it are pinned.
Every route here takes the company in its {company_id} path segment, as the
company's UUID, its CIK or a ticker. A ticker resolves as of the request's
as_of; see Tickers on data routes.
Which dates resolve
Every modeling read takes as_of: the figures reflect filings the SEC accepted
on or before that date. Every covered company resolves at:
- any date on or after its most recent filing, and
- December 31 of 2022, 2023, 2024 and 2025.
A date before a company's first filing returns 404, and so does any other
past date with no model available:
{
"error": {
"code": "NOT_FOUND",
"http_status": 404,
"message": "No model ratios built for this company's filings as of the requested date.",
"details": {},
"trace_id": "…"
}
}
A 404 here does not mean the company is uncovered. For another
past date, POST /v1/modeling/universe/pit-snapshot builds the
model periods it reads; ratios, TTM and growth are available at the dates
listed above.
Build a snapshot
POST /v1/modeling/universe/pit-snapshot computes the snapshot and returns the
metric rows it produced. It takes up to 50 companies at a time, as ciks or as
tickers (each resolved as of as_of_date), not both:
curl -X POST "https://api.arche.fi/v1/modeling/universe/pit-snapshot" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"ciks": ["0000320193", "0000789019"],
"as_of_date": "2025-06-30",
"statement_types": ["INCOME_STATEMENT"],
"metrics_bundle": "core"
}'
All four fields are required. metrics_bundle is all, or core for the core
metrics of each statement type.
{
"page": 1,
"page_size": 50,
"total": 12,
"items": [
{
"cik": "0000320193",
"statement_type": "INCOME_STATEMENT",
"metric_name": "BASIC_EPS",
"metric_value": "1.650000",
"statement_date": "2025-03-29",
"fiscal_year": 2025,
"fiscal_period": "Q2",
"_meta": {
"snapshot_id": "90f34d524303985cb8920a3456fe326641ea4cf04a2d95bbf8ca4c8d0369046b",
"snapshot_hash": "55ed0c2e57a26cb6c62f10cd4cff9c549483f351d9388366a4f7d0e3d0fd789c",
"accession_id": "0000320193-25-000057"
}
}
]
}
A large build can answer 202 instead of 200, meaning the snapshot is still
being computed. Retry the read rather than the build.
Every row carries the accession_id of the filing it came from, so a figure in a
model traces back to a specific filed statement. Record snapshot_hash alongside your
model run; it identifies exactly the statements it used.
Screen the corpus
POST /v1/modeling/universe/screen returns every company that met all your
conditions as known on as_of_date, across the whole corpus. It needs the
Growth plan.
curl -X POST "https://api.arche.fi/v1/modeling/universe/screen?page_size=50" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"as_of_date": "2025-12-31",
"period_basis": "annual",
"conditions": [
{ "metric": "REVENUE", "operator": "gt", "value": "1000000000" },
{ "metric": "NET_INCOME", "operator": "gt", "value": "0" },
{ "metric": "CURRENT_RATIO", "operator": "gte", "value": "1.5" }
]
}'
- Name
as_of_date- Type
- required
- Description
The date the screen is known on. Each company is read as of the end of that date, UTC, and nothing the SEC accepted later is used. Screen on a date listed in Which dates resolve.
- Name
period_basis- Type
- required
- Description
annualscreens each company's latest fiscal year,quarterlyits latest fiscal quarter. A company whose latest such period ended more than 18 months (annual) or 9 months (quarterly) before the date had stopped reporting, and is not screened.
- Name
conditions- Type
- required
- Description
One to eight conditions, and a company must meet every one. Each names a statement metric such as
REVENUEor a ratio such asROE, an operator (gt,gte,lt,lteoreq) and a decimal-stringvaluein the statement's units. A company with no value for a condition's metric does not meet it.
{
"data": {
"page": 1,
"page_size": 2,
"total": 589,
"items": [
{
"cik": "0000001750",
"statement_date": "2025-05-31",
"fiscal_year": 2025,
"fiscal_period": "FY",
"accession_id": "0001410578-25-001475",
"metrics": {
"CURRENT_RATIO": "2.723274",
"NET_INCOME": "12500000.000000",
"REVENUE": "2780500000.000000"
}
},
{
"cik": "0000001800",
"statement_date": "2024-12-31",
"fiscal_year": 2024,
"fiscal_period": "FY",
"accession_id": "0001628280-25-007110",
"metrics": {
"CURRENT_RATIO": "1.670975",
"NET_INCOME": "13402000000.000000",
"REVENUE": "41950000000.000000"
}
}
],
"as_of_date": "2025-12-31",
"screened_companies": 6282,
"snapshot_hash": "f6132c68a3ee1d1a6d5dd73ba98fed327067b8de196241add139da8de11335c8",
"replay_token": "2d062639ab3daf1d199250c7c1fc9cbf9d678b2712b73d1bb4a97ec1d0b34b33",
"verify_url": "https://arche.fi/verify/2d062639ab3daf1d199250c7c1fc9cbf9d678b2712b73d1bb4a97ec1d0b34b33"
}
}
Matches come in ascending CIK order. Each names the period it was screened on
and its filing's accession_id, with the value of every condition's metric in
metrics. screened_companies counts the companies that had a period to
screen on the date, so total against it is the share that passed.
snapshot_hash covers every match on every page; record it with your result,
and verify the page later at verify_url, with no key.
Model periods
The normalized per-period rows the other routes are computed from. This is the route to read when you want the inputs rather than the derived figures:
curl -X GET "https://api.arche.fi/v1/modeling/companies/a2cb31b5-dc0f-4a17-a665-e41f59cb8e0a/periods?as_of=2025-12-31&page_size=50" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Each row names its statement — cik, statement_type, fiscal_year,
fiscal_period and the filing's accession_id — so you can carry a model input
back to its provenance.
/v1/modeling/companies/{company_id}/multi-year returns the same rows arranged
for multi-year comparison, with the valuation inputs computed from each one.
A period row holds one statement, so an income-statement row has no balance
sheet inputs; each null input names why in unavailable_metrics.
Ratios
Margins, returns and capital-structure ratios for each period in the snapshot:
curl -X GET "https://api.arche.fi/v1/modeling/companies/a2cb31b5-dc0f-4a17-a665-e41f59cb8e0a/ratios?as_of=2025-12-31&page_size=50" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Representative response:
{
"page": 1,
"page_size": 50,
"total": 87,
"items": [
{
"company_id": "a2cb31b5-dc0f-4a17-a665-e41f59cb8e0a",
"cik": "0000320193",
"statement_type": "INCOME_STATEMENT",
"accounting_standard": "US_GAAP",
"statement_date": "2025-03-29",
"fiscal_year": 2025,
"fiscal_period": "Q2",
"currency": "USD",
"as_of_timestamp": "2025-12-31T23:59:59Z",
"snapshot_hash": "0514bfd0be1e04b31f211646f3f209761ddb24380af2e832b2b365ded8c4295a",
"metrics": {
"GROSS_MARGIN": "0.470506",
"OPERATING_MARGIN": "0.310291",
"NET_MARGIN": "0.259860",
"ROE": "0.370980",
"ROA": "0.074811",
"ROIC": "0.191197",
"DEBT_TO_EQUITY": "1.380382",
"CURRENT_RATIO": "0.820870",
"QUICK_RATIO": "0.516245",
"BOOK_VALUE_PER_SHARE": "4.436465",
"DSO": "24.667205",
"DPO": "96.477462",
"INVENTORY_TURNOVER": "8.054235",
"CASH_CONVERSION_CYCLE": "-60.636012"
},
"unavailable_metrics": [
{
"metric": "INTEREST_COVERAGE",
"reason": "MISSING_INPUT",
"missing_inputs": [
"INTEREST_EXPENSE",
"INTEREST_INCOME",
"NET_INTEREST_INCOME"
]
}
]
}
]
}
Ratios live in metrics as decimal strings, not floats — "0.470506" is a
47.05% gross margin. Keep them as strings or decimals; parsing to binary
floating point is how a reported figure stops reconciling.
Each period has one row. A fiscal year-end whose fourth-quarter figures are
available has two on the same statement_date: an FY row computed from the year's figures, and a Q4 row
computed from the fourth quarter's, so the quarterly series has no gap at the
year-end. Day-count ratios (DSO, DPO and CASH_CONVERSION_CYCLE) use 365
days on FY rows and 90 days on quarter rows. Filter on fiscal_period to
read one series: compare a quarter with a quarter and a year with a year.
Ratio names such as GROSS_MARGIN and ROE exist
only here. They are derived, so they are not canonical
statement metrics and /v1/coverage/metrics/GROSS_MARGIN reports
zeros for them. See Metric catalog for which names live
where.
Growth
Year-over-year, quarter-over-quarter and CAGR figures, with cagr_years naming
the window:
curl -X GET "https://api.arche.fi/v1/modeling/companies/a2cb31b5-dc0f-4a17-a665-e41f59cb8e0a/growth?as_of=2025-12-31&page_size=50" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Rows carry REVENUE_GROWTH_YOY, REVENUE_GROWTH_QOQ, NET_INCOME_GROWTH_YOY
and similar in metrics, in the same decimal-string form.
Trailing twelve months
TTM aggregates, with the window stated on every row so a figure is never ambiguous about what it sums:
curl -X GET "https://api.arche.fi/v1/modeling/companies/a2cb31b5-dc0f-4a17-a665-e41f59cb8e0a/ttm?as_of=2025-12-31&page_size=50" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
Each row carries ttm_window_start and ttm_window_end beside the summed
metrics. Check the window before comparing two companies: a TTM figure that
ends on a different date is a different measurement.
A line is totalled only when every quarter in the window reports it. A line
some quarter omits is listed in unavailable_metrics as
INCOMPLETE_TRAILING_YEAR rather than summed over fewer than four quarters.
Valuation at your price
Arche serves no market prices. Send the price per common share and the date it is for, and the route values the company from the filings the SEC had accepted by the end of that date (UTC), so no figure uses a filing that was not public when the price was set:
curl -X GET "https://api.arche.fi/v1/modeling/companies/0000320193/valuation?price=230.00&price_date=2025-11-14" \
-H "X-Api-Key: $ARCHE_API_KEY" \
-H "X-Request-ID: $(uuidgen)" \
-H "Accept: application/json"
| Parameter | Required | Meaning |
|---|---|---|
price | yes | Price per common share, a positive decimal string. |
price_date | yes | The date the price is for, not later than today (UTC). |
price_currency | no | ISO currency code, default USD. It must be the company's reporting currency; prices are not converted, and a mismatch returns 400 naming it. |
shares_outstanding | no | Shares to value the company at in place of the filed cover-page count: for several share classes, an ADR, or a split after the cover date. |
multiples holds MARKET_CAP, ENTERPRISE_VALUE, PRICE_TO_EARNINGS,
PRICE_TO_SALES, PRICE_TO_BOOK, EV_TO_REVENUE, EV_TO_EBITDA,
EARNINGS_YIELD, FCF_YIELD and DIVIDEND_YIELD, each over the latest balance
sheet and the trailing twelve months ending on the latest income and cash-flow
statements. Every figure divides totals, never per-share figures summed over
quarters, so a split inside the trailing year does not distort it.
shares_source says whether the share count is the filed one or yours, and
sources names each statement read by accession, fiscal period, period end and
SEC acceptance time.
A few figures are withheld rather than estimated:
- A company that states its share count only by class has no filed total; every
figure lists
SHARES_OUTSTANDINGas missing until you sendshares_outstanding. - Enterprise value needs reported cash and a reported debt line; neither is taken as zero. It adds noncontrolling interest and excludes preferred stock.
- A filing does not say whether its total equity and net income include
noncontrolling interest. When the company reports noncontrolling interest,
PRICE_TO_BOOK,PRICE_TO_EARNINGSandEARNINGS_YIELDare listed asINCLUDES_NONCONTROLLING_INTEREST. - Dividends paid are as filed and can include preferred dividends.
A date before the company's first filing returns 404, as does a date more than 548 days after its latest periodic report.
When a metric can't be computed
Ratio, growth and multi-year rows never leave a metric silently absent. Each
metric the route computes that a row does not carry is listed in
unavailable_metrics, with the reason and, when an unreported input is the
cause, the canonical lines that were missing. TTM rows list the lines their
window reports but cannot total. In the ratios example above,
Apple's income statement for the quarter reports none of the interest lines
the divisor is read from, so interest coverage has no divisor:
"unavailable_metrics": [
{
"metric": "INTEREST_COVERAGE",
"reason": "MISSING_INPUT",
"missing_inputs": ["INTEREST_EXPENSE", "INTEREST_INCOME", "NET_INTEREST_INCOME"]
}
]
reason is one of a fixed set, so code can branch on it:
reason | Meaning |
|---|---|
NOT_REPORTED | The filing does not report the line for the period. |
NOT_ON_STATEMENT | The value comes from a different statement than the row. Read that statement's row for the period. |
MISSING_INPUT | An input the formula needs is not reported for the period. missing_inputs names it. |
DENOMINATOR_ZERO | Every input is present, but the divisor is zero. |
NON_POSITIVE_VALUE | The formula is defined only for positive values, such as a CAGR base or a share count, and one is zero or negative. |
NO_COMPARABLE_PERIOD | A growth rate has no earlier period of the same length to compare against. |
NOT_APPLICABLE_TO_PERIOD | The metric is not defined for this kind of period, such as quarter-over-quarter growth on an annual row. |
INCOMPLETE_TRAILING_YEAR | Not every quarter of the trailing twelve months reports the line. |
INCLUDES_NONCONTROLLING_INTEREST | The company reports noncontrolling interest, and the filing does not say whether the input includes it. |
NOT_YET_COMPUTED | The inputs support a value that has not been computed yet. It is served once computed, with no action from you. |
On ratios and growth, every metric in the route's set is in metrics or in
unavailable_metrics. On multi-year, every null in valuation_inputs has an
entry. Model periods carry the statement as reported, so a line absent from
their metrics was not reported.
Coverage varies by company
A company covered at a date does not always have rows in every derived table.
An empty items with total: 0 here means the derived rows were not computed
for that company, not that the company is uncovered. Read
/v1/modeling/companies/{company_id}/periods to confirm the inputs exist.
Within a row that does exist, a missing ratio is never zero: its reason is in
unavailable_metrics.
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.