v1

latestOpenAPI 3.0.32026-07-26120117318.1 KB
Analytics

Get analytics card data

Returns the current value of a scalar dashboard card. Cards bundle several related metrics (e.g. realtime returns today's trials, subscriptions, in-app purchases and tracked revenue as a four-row table).

Valid public card codes:

  • realtime — today-so-far vs. yesterday counters (trials_count, subscriptions_count, inapp_count, tracked_revenue).

Additional codes are internal-only and return 404 when requested publicly.

get/analytics/cards/{card_code}

Path parameters

card_code'realtime' required

Card code. Only codes listed in the endpoint description are exposed publicly.

Query parameters

frominteger

Start of the time range (Unix timestamp, seconds). Ignored by cards that report fixed windows (e.g. realtime).

tointeger

End of the time range (Unix timestamp, seconds). Ignored by cards that report fixed windows.

unit'hour' | 'day' | 'week' | 'month'
environment0 | 1

Environment: 0 = sandbox, 1 = production.

max_seriesinteger
segmentationstring
currencystring

Three-letter ISO 4217 currency code. Affects monetary values like tracked_revenue.

filter[<attribute>][]string[]

Same schema as the charts endpoint.

Response

Card data. realtime returns an array of one row per sub-metric.

codestring required

Sub-metric code (e.g. trials_count, subscriptions_count, inapp_count, tracked_revenue).

valuenumber required

Value for the current window (integer for count metrics, decimal for revenue).

valuePrevnumber

Value for the previous comparison window.