Metrics

Every partner metric is its own endpoint — GET /api/v1/apps/:app/metrics/:name. With no date parameters you get a point-in-time snapshot (object: "metric") for the latest value; pass a single date for the snapshot as of that day; supplying start_date and/or end_date switches the same URL into a paginated time series (object: "list"). Ranksy exposes 18 metrics, plus two churn aliases (churn_rate, revenue_churn_rate). Each block below documents only the parameters, components, and errors that apply to it — the shared path, date, and pagination parameters live in Common parameters, and the two response shapes in Response shapes.

Every metric needs a team permission on the key and on the member who created it (and, on a key created before permissions, the metrics:read scope). See Permissions by endpoint.

MetricsRequired permission
mrr, arr, revenuerevenue.overview
usage_revenuerevenue.earnings
ltvrevenue.ltv, plus revenue.overview or revenue.earnings
nrrrevenue.nrr
active_trials, trial_conversion_raterevenue.trials
active_subscriptions, active_merchantsrevenue.subscriptions
installs, uninstalls, reactivations, deactivationsrevenue.installations
churned_total and every churn rate (including the aliases)revenue.churn

Common parameters

Every metric endpoint takes the same path parameter and the same date / pagination query parameters. The per-endpoint sections only call out the extra parameters specific to that metric (basis, window, currency, excluded_plans, and the plan / billing_interval / install_status / status filters).

Path parameter

  • Name
    app
    Type
    string
    Description

    The team app's ULID, e.g. 01JN4HKQX0000000000000000.

Query parameters

  • Name
    date
    Type
    string
    Description

    YYYY-MM-DD. Returns a snapshot as of that day instead of the latest. Mutually exclusive with start_date/end_date (supplying both is a 422).

  • Name
    start_date
    Type
    string
    Description

    YYYY-MM-DD. Supplying start_date and/or end_date switches the response to series mode.

  • Name
    end_date
    Type
    string
    Description

    YYYY-MM-DD. Must be greater than or equal to start_date.

  • Name
    granularity
    Type
    string
    Description

    Series only. One of day (default), week, month. Stock metrics take the bucket's last-day value; flow metrics SUM the bucket; ratios sum their components then divide. (nrr is always monthly and ignores this.)

  • Name
    include_test
    Type
    boolean
    Description

    Default false: test and development stores are left out. true counts them, on every metric except nrr, which cannot include them and lists the parameter in metadata.ignored_filters. Accepts true/false/1/0. When true, metadata carries compute_mode and filters.

  • Name
    page
    Type
    integer
    Description

    Series only. The page to return. Default 1.

  • Name
    per_page
    Type
    integer
    Description

    Series only. Points per page. Default 50, maximum 200; a larger value is clamped to 200, not rejected.

Filter parameters

Only the metrics named here accept these filters. Any other metric returns 400 unsupported_filter when one is supplied, and never ignores it silently. When a filter is applied, metadata.compute_mode is "live" and metadata.filters echoes it.

  • Name
    plan
    Type
    string
    Description

    mrr, arr, active_subscriptions. Exact subscription plan name. Max 255 characters.

  • Name
    billing_interval
    Type
    string
    Description

    mrr, arr, active_subscriptions. ANNUAL or EVERY_30_DAYS.

  • Name
    install_status
    Type
    string | string[]
    Description

    mrr, arr, active_subscriptions. Installation statuses to include (INSTALLED, UNINSTALLED, CLOSED, FROZEN), comma-separated (install_status=INSTALLED,FROZEN) or repeated (install_status[]=FROZEN).

  • Name
    status
    Type
    string
    Description

    active_subscriptions only. Subscription status: active, cancelled, declined, expired, or frozen.

Request

GET
/api/v1/apps/:app/metrics/:name
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/mrr \
  -H "Authorization: Bearer rk_live_..."

Revenue and subscription levels — recurring run-rate, transaction and usage revenue, and the paid-subscription and trial counts behind them.

GET/api/v1/apps/:app/metrics/mrr

Monthly recurring revenue

The app's current monthly recurring revenue: subscription MRR plus, for usage-billed apps, trailing-30-day usage. A money metric reported in the app's base payout currency (the currency key), computed live for the as-of date (today by default). A series is a stock, so each bucket is the value as of its last day — never summed.

Additional parameters

  • Name
    currency
    Type
    string
    Description

    3-letter ISO code. Acknowledged but not converted — values stay in the app's base currency; a mismatch is noted in metadata.currency_note.

Also accepts the plan, billing_interval and install_status filters.

Components (snapshot and every series point): subscription_mrr and usage_mrr, which add up to value. usage_mrr is left out when usage is not part of MRR for this app or request (no usage billing, or a plan / billing_interval filter); subscription_mrr then equals value. A usage_mrr of 0 means usage is included but there was none.

Request

GET
/api/v1/apps/:app/metrics/mrr
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/mrr \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "mrr",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 2331.52,
  "components": { "subscription_mrr": 2100.00, "usage_mrr": 231.52 },
  "currency": "USD",
  "metadata": { "partner_sync_status": "complete", "currency_basis": "base" }
}

GET/api/v1/apps/:app/metrics/arr

Annual recurring revenue

The app's annual recurring revenue — the current mrr annualised (×12). A money metric in the app's base payout currency. Like MRR it is a stock: a series stamps each bucket with the value as of its last day, never summed.

Additional parameters

  • Name
    currency
    Type
    string
    Description

    3-letter ISO code. Acknowledged but not converted (base currency only); a mismatch is noted in metadata.currency_note.

No components. Also accepts the plan, billing_interval and install_status filters.

Request

GET
/api/v1/apps/:app/metrics/arr
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/arr \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "arr",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 27978.24,
  "currency": "USD",
  "metadata": { "partner_sync_status": "complete", "currency_basis": "base" }
}

GET/api/v1/apps/:app/metrics/revenue

Revenue (gross + net)

Transaction revenue in the app's base payout currency. A money breakdown: value is gross revenue (the total transaction value before Shopify's revenue share). components carries the payout breakdown — net (after Shopify's cut), the derived shopify_fee (gross − net), and the per-stream sale flows subscription_revenue / usage_revenue / one_time_revenue (each the summed gross of that sale type). A flow metric — week/month buckets SUM the value and every component. The three streams do not add up to gross: refunds, credits, adjustments and referral transactions also move gross/net/shopify_fee but are not sale streams. Recurring subscription run-rate (MRR) is a point-in-time stock on a different time-basis — get it from the mrr metric, not here.

Additional parameters

  • Name
    currency
    Type
    string
    Description

    3-letter ISO code. Acknowledged but not converted (base currency only).

Components: gross, net, shopify_fee, subscription_revenue, usage_revenue, one_time_revenue.

Request

GET
/api/v1/apps/:app/metrics/revenue
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/revenue \
  -H "Authorization: Bearer rk_live_..." \
  -d start_date=2026-05-01 \
  -d end_date=2026-05-31 \
  -d granularity=month

Series

{
  "object": "list",
  "url": "/api/v1/apps/01JN4HKQX0000000000000000/metrics/revenue",
  "currency": "USD",
  "page": 1,
  "per_page": 50,
  "total_count": 1,
  "has_more": false,
  "coverage": {
    "requested": { "start": "2026-05-01", "end": "2026-05-31" },
    "available": { "start": "2026-05-01", "end": "2026-05-31" }
  },
  "metadata": {
    "partner_sync_status": "complete",
    "currency_basis": "base",
    "value_note": "value is gross revenue (total transaction value before Shopify's revenue share); the payout breakdown … is in components. …",
    "computed": "live"
  },
  "data": [
    {
      "date": "2026-05-31",
      "value": 8421.00,
      "components": {
        "gross": 8421.00,
        "net": 6736.80,
        "shopify_fee": 1684.20,
        "subscription_revenue": 7400.00,
        "usage_revenue": 821.00,
        "one_time_revenue": 200.00
      }
    }
  ]
}

GET/api/v1/apps/:app/metrics/usage_revenue

Usage revenue

Metered (usage-based) sale revenue in the app's base payout currency — the same stream that appears as components.usage_revenue in revenue, exposed on its own, computed live from the transactions. A money metric and a flow: a week/month bucket SUMS the daily values; day keeps every row. A snapshot returns the as-of day's amount (today by default). metadata.summary carries the window's totals: total, shops (distinct paying shops), charges, and top_usage_spenders (each { shop, shop_domain, total_usage_revenue, charges }).

Additional parameters

  • Name
    currency
    Type
    string
    Description

    3-letter ISO code. Acknowledged but not converted (base currency only).

No components. Otherwise takes only the common parameters.

Request

GET
/api/v1/apps/:app/metrics/usage_revenue
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/usage_revenue \
  -H "Authorization: Bearer rk_live_..." \
  -d start_date=2026-05-01 \
  -d end_date=2026-05-31 \
  -d granularity=month

Series

{
  "object": "list",
  "url": "/api/v1/apps/01JN4HKQX0000000000000000/metrics/usage_revenue",
  "currency": "USD",
  "page": 1,
  "per_page": 50,
  "total_count": 1,
  "has_more": false,
  "coverage": {
    "requested": { "start": "2026-05-01", "end": "2026-05-31" },
    "available": { "start": "2026-05-01", "end": "2026-05-31" }
  },
  "metadata": {
    "partner_sync_status": "complete",
    "currency_basis": "base",
    "value_note": "usage_revenue is the day's metered usage-charge revenue …",
    "computed": "live",
    "summary": {
      "total": 821.00,
      "shops": 37,
      "charges": 412,
      "top_usage_spenders": [
        { "shop": "Acme Store", "shop_domain": "acme.myshopify.com", "total_usage_revenue": 96.40, "charges": 31 }
      ]
    }
  },
  "data": [
    { "date": "2026-05-31", "value": 821.00 }
  ]
}

GET/api/v1/apps/:app/metrics/active_subscriptions

Active subscriptions

Point-in-time count of active paid subscriptions, computed live. A stock — a series bucket reports the value as of its last day, never summed. No components, no currency. Takes the common parameters and every filter: plan, billing_interval, install_status, and status.

Request

GET
/api/v1/apps/:app/metrics/active_subscriptions
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/active_subscriptions \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "active_subscriptions",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 214,
  "metadata": { "partner_sync_status": "complete" }
}

GET/api/v1/apps/:app/metrics/active_trials

Active trials

Point-in-time count of subscriptions currently in a trial, computed live (metadata.computed = "live"). Today's value is Shopify's on_trial flag; a past date or a series counts, for each day, the subscriptions in their trial at the end of that day (activated, trial not yet ended, not cancelled). A stock — series buckets take the last-day value, never summed. No components, no currency. Takes only the common parameters.

Request

GET
/api/v1/apps/:app/metrics/active_trials
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/active_trials \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "active_trials",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 18,
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "value_note": "active_trials is the count of subscriptions on trial at the end of each day …"
  }
}

Lifetime value and retention — the dashboard's live LTV, cohort NRR, and trial conversion.

GET/api/v1/apps/:app/metrics/ltv

Estimated lifetime value (LTV)

The dashboard's live, plan-aware estimated LTV (ARPA ÷ 30-day churn rate, the LTV page figure) — computed live, never the lagging stored columns. A money metric. LTV is a point-in-time level, so a series reports the estimated LTV as of each bucket's last day (never summed).

Additional parameters

  • Name
    basis
    Type
    string
    Description

    month (default — monthly estimated LTV) or year (that figure annualised, ×12). real_churn returns 400 invalid_basis; any other value fails validation with 422.

  • Name
    excluded_plans
    Type
    string | string[]
    Description

    Plan names to drop from the calculation — comma-separated (excluded_plans=Free,Trial) or repeated (excluded_plans[]=Free). Mirrors the dashboard LTV page.

  • Name
    currency
    Type
    string
    Description

    3-letter ISO code. Acknowledged but not converted (base currency only).

No components.

Request

GET
/api/v1/apps/:app/metrics/ltv
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/ltv \
  -H "Authorization: Bearer rk_live_..." \
  -d basis=year \
  -d excluded_plans=Free

Snapshot

{
  "object": "metric",
  "id": "ltv",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 612.40,
  "currency": "USD",
  "metadata": {
    "partner_sync_status": "complete",
    "currency_basis": "base",
    "basis": "year",
    "computed": "live",
    "value_note": "ltv is the estimated LTV (ARPA / 30-day churn rate, the LTV page figure), annualised (×12). Computed live and honors excluded_plans.",
    "excluded_plans": ["Free"]
  }
}

GET/api/v1/apps/:app/metrics/nrr

Net revenue retention (NRR)

Net revenue retention, cohort-anchored and reported monthly (reuses the dashboard NRR calc). value is a fraction (1.05 = 105%). The snapshot is the trailing-12-month cohort NRR; a series returns one point per month, dated to the first day of the month, and the granularity parameter has no effect.

Components: mrr_retained, mrr_base, plus the moving parts expansion, contraction, churn, and the derived net_change (expansion − contraction − churn) — all MRR amounts in the app's base currency. The value itself is dimensionless, so there is no currency key. Takes only the common parameters; include_test cannot be honoured and is listed in metadata.ignored_filters.

First-30-day rule. A plan change (upgrade or downgrade) within 30 days of a shop's first conversion to paid does not count as expansion or contraction: a merchant settling on the right plan right after converting is not growth or shrinkage. A cancellation in those 30 days still counts as churn. The first conversion is the first of: a paid subscription with no trial, a trial the subscription survived, the first transaction, or the first trial-converted event.

Request

GET
/api/v1/apps/:app/metrics/nrr
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/nrr \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "nrr",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 1.05,
  "components": {
    "mrr_retained": 14962.50,
    "mrr_base": 14250.00,
    "expansion": 1200.00,
    "contraction": 312.50,
    "churn": 175.00,
    "net_change": 712.50
  },
  "metadata": {
    "partner_sync_status": "complete",
    "basis": "cohort",
    "currency_basis": "base",
    "components_currency_note": "components (mrr_retained, mrr_base) are MRR amounts in the app's base payout currency; `value` itself is a dimensionless ratio.",
    "granularity_note": "NRR is reported monthly; the granularity param has no effect.",
    "window": "12mo",
    "window_note": "Snapshot is the trailing-12-month cohort NRR: retention of the MRR that existed 12 months ago, tracked through expansion, contraction and churn. Pass start_date/end_date for the monthly series."
  }
}

GET/api/v1/apps/:app/metrics/trial_conversion_rate

Trial conversion rate

Share of trials that convert to a paid subscription, cohort-anchored on the trial-start date (matches the dashboard + MCP). value is a fraction (0.30 = 30%). The denominator is settled trials only (converted + cancelled): trials still running have no outcome yet and are left out. The snapshot is the trailing-30-day start cohort, measured over the trials in it that have since ended; a week/month series SUMS numerators and denominators then divides — daily rates are never averaged.

Components: trials_converted and trials_started, where trials_started is the settled denominator (converted + cancelled).

provisional (top-level on the snapshot, and on each series point): true while the cohort still has trials running, so the value can still move. When it is true and components.trials_started is 0, nothing has ended yet and the 0 value carries no signal (see metadata.provisional_note).

metadata carries the cohort's trials_started (every trial started, settled or not), trials_active (still running), a denominator_note, and two supplementary figures for the same window: trials_churned (trials that cancelled without converting) and avg_time_to_convert_days (mean days from trial start to conversion). Takes only the common parameters.

Request

GET
/api/v1/apps/:app/metrics/trial_conversion_rate
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/trial_conversion_rate \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "trial_conversion_rate",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 0.30,
  "components": { "trials_converted": 30, "trials_started": 100 },
  "provisional": true,
  "metadata": {
    "partner_sync_status": "complete",
    "basis": "cohort",
    "trials_churned": 70,
    "avg_time_to_convert_days": 4.2,
    "window": "30d",
    "window_note": "Snapshot rate is the cohort of trials STARTED in the trailing 30 days, measured over the ones that have since ended. Pass start_date/end_date for a series.",
    "trials_started": 124,
    "trials_active": 24,
    "denominator_note": "value = trials_converted / trials_started, where trials_started = converted + cancelled. Trials still running are excluded from the denominator (they have no outcome yet) and counted in trials_active.",
    "provisional_note": "This cohort still has trials running, so the rate can still move as they end."
  }
}

Churn — rolling subscription churn, gross and net revenue churn, and the churned-shop count. Every churn metric is computed live (metadata.computed = "live") and matches the dashboard and the Churn analysis page.

GET/api/v1/apps/:app/metrics/subscription_churn_rate

Subscription churn rate

Rolling subscription churn rate (net): of the customers paying when the window opened, the share that churned by its end (cancelled a paid plan, uninstalled, or the store closed) and did not resubscribe to a paid plan. Frozen subscriptions are not churn. Computed live (metadata.computed = "live"), the same rate as the dashboard and the Churn page. value is a fraction (0.125 = 12.5%). Overlapping windows are never summed: series buckets take the value as of the bucket's last day.

Additional parameters

  • Name
    window
    Type
    string
    Description

    Rolling-window length: 7d, 30d (default), 90d, 365d.

  • Name
    basis
    Type
    string
    Description

    real_churn only (the default and only basis in v1). month or year returns 400 unsupported_basis; any other value fails validation with 422.

Components: customers_churned, customers_at_risk, for every window.

Request

GET
/api/v1/apps/:app/metrics/subscription_churn_rate
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/subscription_churn_rate \
  -H "Authorization: Bearer rk_live_..." \
  -d start_date=2026-04-01 \
  -d end_date=2026-04-30 \
  -d granularity=day \
  -d window=30d

Series

{
  "object": "list",
  "url": "/api/v1/apps/01JN4HKQX0000000000000000/metrics/subscription_churn_rate",
  "page": 1,
  "per_page": 50,
  "total_count": 30,
  "has_more": false,
  "coverage": {
    "requested": { "start": "2026-04-01", "end": "2026-04-30" },
    "available": { "start": "2026-04-01", "end": "2026-04-30" }
  },
  "metadata": {
    "partner_sync_status": "complete",
    "basis": "real_churn",
    "computed": "live",
    "window": "30d",
    "window_note": "Rolling 30d churn as of each date: of the paying customers at the window's start, the share that churned by its end. Computed live from subscription history."
  },
  "data": [
    {
      "date": "2026-04-30",
      "value": 0.042,
      "components": { "customers_churned": 9, "customers_at_risk": 214 }
    }
  ]
}

GET/api/v1/apps/:app/metrics/churn_rate

Customer churn rate (alias)

Alias of subscription_churn_rate, kept for existing callers: same value, components and parameters. metadata.preferred_metric is "subscription_churn_rate".

Alias metadata

{
  "metadata": {
    "partner_sync_status": "complete",
    "preferred_metric": "subscription_churn_rate",
    "basis": "real_churn",
    "computed": "live",
    "window": "30d"
  }
}

GET/api/v1/apps/:app/metrics/gross_revenue_churn_rate

Gross revenue churn rate

Rolling gross revenue churn rate: the MRR that customers paying when the window opened lost to cancellations (cancelled_mrr) and downgrades or usage drops (contraction_mrr), divided by the MRR that cohort started with. Expansion does not offset it (see net_revenue_churn_rate). Computed live (metadata.computed = "live"). value is a fraction. Series buckets take the value as of the bucket's last day — never summed.

How lost MRR is counted

  • Plan moves inside a shop's first 30 days don't count. A merchant settling on the right plan right after converting is not contraction or expansion.
  • A shop that churns is lost at its starting MRR, the MRR it had when the window opened. A downgrade followed by a cancellation in the same window therefore counts once, not twice.

Additional parameters

  • Name
    window
    Type
    string
    Description

    Rolling-window length: 7d, 30d (default), 90d, 365d.

  • Name
    basis
    Type
    string
    Description

    real_churn only (the default). month or year returns 400 unsupported_basis; any other value fails validation with 422.

Components (default 30d window only; other windows omit components and set metadata.components_note):

  • Name
    mrr_churned
    Type
    number
    Description

    Gross lost MRR: cancelled_mrr + contraction_mrr.

  • Name
    cancelled_mrr
    Type
    number
    Description

    Starting MRR of the cohort shops that churned in the window.

  • Name
    contraction_mrr
    Type
    number
    Description

    MRR lost to downgrades and usage drops by shops that are still paying.

  • Name
    expansion_mrr
    Type
    number
    Description

    MRR gained from upgrades and usage growth. Not part of the gross rate; it is what the net rate subtracts.

  • Name
    mrr_base
    Type
    number
    Description

    The MRR the cohort started the window with: the rate's denominator.

All amounts are in the app's base currency.

Request

GET
/api/v1/apps/:app/metrics/gross_revenue_churn_rate
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/gross_revenue_churn_rate \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "gross_revenue_churn_rate",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-04-30",
  "value": 0.0337,
  "components": {
    "mrr_churned": 441.00,
    "cancelled_mrr": 392.00,
    "contraction_mrr": 49.00,
    "expansion_mrr": 118.00,
    "mrr_base": 13086.00
  },
  "metadata": {
    "partner_sync_status": "complete",
    "basis": "real_churn",
    "computed": "live",
    "window": "30d",
    "window_note": "Rolling 30d gross revenue churn: the MRR the customers paying when the window opened lost to cancellations (cancelled_mrr) and downgrades (contraction_mrr), divided by what that cohort paid at the start. Expansion does not offset it; see net_revenue_churn_rate."
  }
}

GET/api/v1/apps/:app/metrics/revenue_churn_rate

Revenue churn rate (alias)

Alias of gross_revenue_churn_rate, kept for existing callers: same value, components and parameters. metadata.preferred_metric is "gross_revenue_churn_rate".

Alias metadata

{
  "metadata": {
    "partner_sync_status": "complete",
    "preferred_metric": "gross_revenue_churn_rate",
    "basis": "real_churn",
    "computed": "live",
    "window": "30d"
  }
}

GET/api/v1/apps/:app/metrics/net_revenue_churn_rate

Net revenue churn rate

Rolling net revenue churn rate: gross lost MRR (cancellations + contraction) minus the cohort's expansion (upgrades, usage growth), divided by the MRR the cohort started with — (mrr_churned − expansion_mrr) ÷ mrr_base. Negative when expansion outgrows the losses. Computed live (metadata.computed = "live"). value is a fraction. Lost MRR is counted the same way as for gross revenue churn, and series buckets take the value as of the bucket's last day — never summed.

Additional parameters: window and basis, as for gross_revenue_churn_rate.

Components: the same five as gross revenue churn (mrr_churned, cancelled_mrr, contraction_mrr, expansion_mrr, mrr_base), default 30d window only.

Request

GET
/api/v1/apps/:app/metrics/net_revenue_churn_rate
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/net_revenue_churn_rate \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "net_revenue_churn_rate",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-04-30",
  "value": 0.0247,
  "components": {
    "mrr_churned": 441.00,
    "cancelled_mrr": 392.00,
    "contraction_mrr": 49.00,
    "expansion_mrr": 118.00,
    "mrr_base": 13086.00
  },
  "metadata": {
    "partner_sync_status": "complete",
    "basis": "real_churn",
    "computed": "live",
    "window": "30d",
    "window_note": "Rolling 30d net revenue churn: the MRR the customers paying when the window opened lost to cancellations and downgrades, minus what they gained from upgrades, divided by what that cohort paid at the start. Negative when expansion outgrows the losses."
  }
}

GET/api/v1/apps/:app/metrics/churned_total

Churned merchants

Count of distinct paying shops that churned in the trailing 30 days as of each date — a rolling window, not a per-day count (metadata.window = "30d"). A stock: series buckets report the value as of the bucket's last day; do not sum across days. No components, no currency. Takes only the common parameters.

Request

GET
/api/v1/apps/:app/metrics/churned_total
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/churned_total \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "churned_total",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 9,
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "window": "30d",
    "window_note": "churned_total is the number of customers who churned in the trailing 30 days as of each date: paying at the window's start, churned by its end (uninstall, shop deactivation or downgrade to free), no paid plan left. A rolling window, not a per-day count. Series buckets report the value as of the bucket's last day; do not sum across days."
  }
}

Installs and merchants — daily install flows and the active-merchant stock.

GET/api/v1/apps/:app/metrics/installs

Installs

Total daily installs: new installs plus reinstalls (a closed store reopening), computed live from install events (metadata.computed = "live"). A flow count — a week/month bucket SUMS the daily installs and components (dated to the bucket's last day); day keeps every day of the range. A snapshot returns the as-of day's count (today by default). No currency. Takes only the common parameters.

Components (snapshot and every series point): new_installs and reinstalls, which add up to value. Reinstalls are also served on their own as reactivations.

Request

GET
/api/v1/apps/:app/metrics/installs
curl -G https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/installs \
  -H "Authorization: Bearer rk_live_..." \
  -d start_date=2026-05-01 \
  -d end_date=2026-05-31 \
  -d granularity=week

Series

{
  "object": "list",
  "url": "/api/v1/apps/01JN4HKQX0000000000000000/metrics/installs",
  "page": 1,
  "per_page": 50,
  "total_count": 5,
  "has_more": false,
  "coverage": {
    "requested": { "start": "2026-05-01", "end": "2026-05-31" },
    "available": { "start": "2026-05-01", "end": "2026-05-31" }
  },
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "value_note": "installs is total installs: new installs plus reinstalls …"
  },
  "data": [
    { "date": "2026-05-03", "value": 19, "components": { "new_installs": 18, "reinstalls": 1 } },
    { "date": "2026-05-10", "value": 41, "components": { "new_installs": 39, "reinstalls": 2 } }
  ]
}

GET/api/v1/apps/:app/metrics/uninstalls

Uninstalls

Total daily uninstalls: uninstalls plus deactivations (a store frozen or closed), computed live from relationship events (metadata.computed = "live"). A flow count — a week/month bucket SUMS the daily values and components; day keeps every row. A snapshot returns the as-of day's count (today by default). No currency. Takes only the common parameters.

Components (snapshot and every series point): uninstalls and deactivations, which add up to value. Deactivations are also served on their own as deactivations.

Request

GET
/api/v1/apps/:app/metrics/uninstalls
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/uninstalls \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "uninstalls",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 6,
  "components": { "uninstalls": 5, "deactivations": 1 },
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "value_note": "uninstalls is total uninstalls: uninstalls plus deactivations …"
  }
}

GET/api/v1/apps/:app/metrics/reactivations

Reactivations

Daily reactivations: stores that had closed (deactivated) reopening with the app still installed (Shopify RELATIONSHIP_REACTIVATED), computed live from relationship events. These are the reinstalls component of installs. A flow count — a week/month bucket SUMS the daily values; day keeps every row. No components, no currency. Takes only the common parameters.

Request

GET
/api/v1/apps/:app/metrics/reactivations
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/reactivations \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "reactivations",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 3,
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "value_note": "reactivations is the count of relationship events of that type per day (a flow — week/month buckets SUM the daily values). Test stores are excluded unless include_test=true."
  }
}

GET/api/v1/apps/:app/metrics/deactivations

Deactivations

Daily deactivations: stores that froze or closed while the app was installed (Shopify RELATIONSHIP_DEACTIVATED), computed live from relationship events. These are the deactivations component of uninstalls. A flow count — a week/month bucket SUMS the daily values (dated to the bucket's last day); day keeps every row. No components, no currency. Takes only the common parameters.

Request

GET
/api/v1/apps/:app/metrics/deactivations
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/deactivations \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "deactivations",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 1,
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "value_note": "deactivations is the count of relationship events of that type per day (a flow — week/month buckets SUM the daily values). Test stores are excluded unless include_test=true."
  }
}

GET/api/v1/apps/:app/metrics/active_merchants

Active merchants

Point-in-time count of stores with the app installed (paying or not), computed live from install events (metadata.computed = "live") — the same number as the Installations page, the dashboard and MCP. The value is a stock — series buckets take the last-day value, never summed. components adds the period's flows, which do SUM across a week/month bucket. No currency. Takes only the common parameters.

Components: installs, reactivations, uninstalls, deactivations, new (subscriptions activated), cancellations (subscriptions cancelled for any reason, plan switches included; not churn, which is churned_total), and net_change (installs + reactivations − uninstalls − deactivations, how much value moved over the period).

Request

GET
/api/v1/apps/:app/metrics/active_merchants
curl https://ranksyapp.com/api/v1/apps/01JN4HKQX0000000000000000/metrics/active_merchants \
  -H "Authorization: Bearer rk_live_..."

Snapshot

{
  "object": "metric",
  "id": "active_merchants",
  "app": "01JN4HKQX0000000000000000",
  "date": "2026-05-29",
  "value": 1284,
  "components": {
    "installs": 22,
    "reactivations": 1,
    "uninstalls": 7,
    "deactivations": 2,
    "new": 6,
    "cancellations": 3,
    "net_change": 14
  },
  "metadata": {
    "partner_sync_status": "complete",
    "computed": "live",
    "value_note": "value is the count of stores with the app installed as of the date …"
  }
}

Response shapes

Two shapes, selected by whether you pass dates. Money series declare currency once on the envelope — never per point.

Snapshot (object: "metric")

  • Name
    object
    Type
    string
    Description

    Always "metric".

  • Name
    id
    Type
    string
    Description

    The metric name, e.g. mrr.

  • Name
    app
    Type
    string
    Description

    The app ULID.

  • Name
    date
    Type
    string
    Description

    The date the value is current as of (YYYY-MM-DD) — the requested date, or today when none was given.

  • Name
    value
    Type
    number
    Description

    The metric value. For ratios this is a fraction (e.g. 0.30), not a percentage.

  • Name
    components
    Type
    object
    Description

    Present only for the metrics whose section lists components (ratios, breakdowns, mrr, installs, uninstalls, active_merchants); the raw inputs behind value.

  • Name
    provisional
    Type
    boolean
    Description

    Present only on trial_conversion_rate; true while the cohort still has trials running.

  • Name
    currency
    Type
    string
    Description

    Present only for money metrics; the app's base payout currency.

  • Name
    metadata
    Type
    object
    Description

    Partner-sync health (partner_sync_status, plus partner_sync_last_complete_at, partner_sync_last_error_at and partner_sync_error_reason when known), currency_basis on money metrics, and any per-metric notes. When a filter parameter is present: compute_mode, filters (the filters applied) and ignored_filters (any the metric could not apply).

Series (object: "list")

  • Name
    object
    Type
    string
    Description

    Always "list".

  • Name
    url
    Type
    string
    Description

    The endpoint path for this metric.

  • Name
    currency
    Type
    string
    Description

    Present only for money metrics; applies to every point in data.

  • Name
    page
    Type
    integer
    Description

    The current page number.

  • Name
    per_page
    Type
    integer
    Description

    Points per page.

  • Name
    total_count
    Type
    integer
    Description

    Total number of points across all pages.

  • Name
    has_more
    Type
    boolean
    Description

    Whether further pages exist.

  • Name
    coverage
    Type
    object
    Description

    What was requested vs what was available. available is null when there is no data in range.

  • Name
    metadata
    Type
    object
    Description

    Partner-sync health plus per-metric notes.

  • Name
    data
    Type
    array
    Description

    The series points.

Point

Series points are compact — no per-row object tag and no per-row currency.

  • Name
    date
    Type
    string
    Description

    The bucket date (YYYY-MM-DD); for week/month, the bucket's last day (nrr points are dated to the first day of the month).

  • Name
    value
    Type
    number
    Description

    The value for that bucket. Ratios are fractions.

  • Name
    components
    Type
    object
    Description

    Present only for the metrics whose section lists components.

  • Name
    provisional
    Type
    boolean
    Description

    trial_conversion_rate only; true while that bucket's cohort still has trials running.

Coverage

coverage tells the caller exactly how much data was available versus requested, so a short or empty result is never ambiguous.

coverage

"coverage": {
  "requested": { "start": "2026-03-01", "end": "2026-05-29" },
  "available": { "start": "2026-03-01", "end": "2026-05-29" }
}

Pagination

Series responses are paginated. Use page and per_page (default 50, max 200) to walk the result set, and check has_more / total_count to know when to stop. The currency and metadata on the envelope apply to every page.


Errors

Beyond the universal 401 / 403 / 422 / 429 (see Errors), the metric endpoints return:

  • 409 — the app's Shopify Partner integration isn't usable. error.code is partner_integration_not_connected (never connected), partner_integration_unauthorized (credentials revoked or rejected — reconnect in Ranksy), or partner_integration_pending (first sync still running — retry shortly). Every metric returns this until the integration is connected and has synced. Metrics never read BigQuery, so a BigQuery error is never returned here.
  • 400 invalid_basis — on ltv only: basis must be month or year (basis=real_churn gets this error). error.param is basis.
  • 400 unsupported_basis — on the churn rates only (subscription_churn_rate, gross_revenue_churn_rate, net_revenue_churn_rate and the aliases churn_rate, revenue_churn_rate): basis must be real_churn (basis=month or year gets this error). error.param is basis.
  • 400 unsupported_filter — a plan, billing_interval, install_status or status filter sent to a metric that cannot apply it (see Filter parameters). error.param names the first such filter.

basis is validated against month, year and real_churn on every metric, so any other value is a 422; metrics other than ltv and the churn rates ignore a valid basis. A malformed date, an end_date before start_date, date together with start_date/end_date, an unknown granularity or window, a currency that is not 3 letters, and any value for group_by (no grouping is supported yet) are also 422 validation_failed.


Things to keep in mind

  • Ratio value is a fraction, not a percentage. 0.30 means 30%; the raw inputs live in components.
  • Money metrics carry currency once. Inline on a snapshot, once on a series envelope — never on individual points. Values are always in the app's base payout currency (v1 does not convert).
  • Stock vs flow vs ratio. Stock metrics take the bucket's last-day value; flow metrics SUM the bucket; ratios SUM their components then divide. Rolling-window metrics (churned_total and the churn rates) overlap day-to-day and are never summed.
  • coverage is your source of truth for how much data backed a series response.