Get analytics chart data
Returns time-series data for a chart. chart_code selects the metric; pass query
parameters to constrain the time range and segmentation.
Chart codes (25 total) — see enum for the full machine-readable list:
- Revenue:
proceeds(net),sales(gross),refunds,refund-rate,arpu,arppu. - Recurring revenue:
mrr,arr,mrr-movement,arr-movement(new / expansion / contraction / churn). - Subscriptions:
active-subscriptions,new-subscriptions,paid-subscriptions-movement,subscriptions-overview,subscription-cancellation. - Trials:
free-trials,active-trials,trials-movement,trial-cancellation,trial-to-paid. - Acquisition / conversion:
users-overview,user-to-trial,user-to-paid. - Aliases (kept for backward compatibility):
user-to-trial-conversion=user-to-trial,subscription-cancellation-rate=subscription-cancellation.
Segmentation codes (pass via segmentation) and filter attribute codes
(pass via filter[<attribute>][]) are discoverable from
GET /v4/analytics/charts/{chart_code}/meta.
Authorizations
Bearer authentication using the project Secret Key (prefixed with sk_), used exactly as shown in the dashboard. Endpoints that support sandbox data take an explicit environment field or parameter. All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.
Path Parameters
Chart code — one of the values in enum; other codes are not part of the public API.
proceeds, active-subscriptions, paid-subscriptions-movement, users-overview, free-trials, active-trials, trials-movement, user-to-trial, trial-to-paid, user-to-paid, sales, refunds, refund-rate, arppu, arpu, trial-cancellation, subscription-cancellation, subscriptions-overview, new-subscriptions, mrr, arr, mrr-movement, arr-movement, user-to-trial-conversion, subscription-cancellation-rate 64Query Parameters
Attribute-scoped filter (repeat the parameter once per value). Each attribute is ANDed with every other attribute; values within the same attribute are ORed.
Examples:
filter[country][]=US&filter[country][]=GB— US or UKfilter[country][]=US&filter[target_platform][]=iOS— US and iOSfilter[product_id][]=premium_monthly&filter[product_id][]=premium_yearly
Attribute codes are stable across projects; their value lists are
project-scoped and discoverable from the chart's */meta response
(filter_conditions[].attribute / filter_conditions[].values[]). Common
attribute codes:
Scalar attributes (user_id, q_user_id, device_id) accept a single value;
list attributes accept many. Up to 50 distinct attributes and 100 values per
attribute are accepted; the rest are silently dropped.
Response
Chart data.