API Documentation
← API overview

Market Sizing

2 endpoints · every section below is generated from the API catalog

GET/api/v1/market-sizing

Search

Available on FreeFull reference →

Returns a paginated list of market-sizing records with metadata (page, limit, totalItems, totalPages). Call it to browse or filter market-sizing data by spending, prevalence, or drug count, or to search by text. Returns 400 for invalid query parameters, 503 when the data is unavailable on this deployment, and 500 on other failures.

Rate limit: regulatoryApiCallsPerDay · Free plan: 30/day

Parameters

ParameterTypeRequiredDescription
searchstringNomaximum length 500
containsstringNomaximum length 200
has_prevalencebooleanNobooleans arrive as strings - send 'true' or 'false'; value is parsed from the raw query string and coerced server-side
min_spendingnumberNoLower bound on spending (alias of min_weighted).
max_spendingnumberNoUpper bound on spending (alias of max_weighted).
minSpendingnumberNoLower bound on spending (alias of min_weighted).
maxSpendingnumberNoUpper bound on spending (alias of max_weighted).
min_weightednumberNoLower bound on weighted spending.
max_weightednumberNoUpper bound on weighted spending.
min_rawnumberNoLower bound on raw spending.
max_rawnumberNoUpper bound on raw spending.
min_prevalencenumberNoLower bound on prevalence.
max_prevalencenumberNoUpper bound on prevalence.
min_drug_countnumberNoLower bound on number of drugs.
max_drug_countnumberNoUpper bound on number of drugs.
pagenumberNoMin 1; default 1 (min 1; default 1)
Range: 1 to ∞
limitnumberNoRange 1-100; default 20 (range 1-100; default 20)
Range: 1 to 100
sortstringNoDefault total_prev_weighted (default total_prev_weighted)
Allowed values: total_prev_weighted, total_raw, prevalence, drug_count, key
orderstringNoDefault desc (default desc)
Allowed values: asc, desc

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/market-sizing"
GET/api/v1/market-sizing/:key

Details

Available on FreeFull reference →

Returns the market-sizing record for a single disease identified by its key. Call it when you already have a disease key and need its market-sizing details. Returns 404 if no disease matches the key, and 500 on an internal failure.

Rate limit: regulatoryApiCallsPerDay · Free plan: 30/day

Parameters

ParameterTypeRequiredDescription
key(path)stringYes

Example request

curl -H "x-api-key: YOUR_API_KEY" \
  "https://app.caelrith.com/api/v1/market-sizing/{key}"