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).
Card codes:
realtime— today-so-far vs. yesterday counters (trials_count,subscriptions_count,inapp_count,tracked_revenue).
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
Card code — one of the values in enum; other codes are not part of the public API.
realtime 64Query Parameters
Start of the time range (Unix timestamp, seconds). Ignored by cards that report fixed windows (e.g. realtime).
End of the time range (Unix timestamp, seconds). Ignored by cards that report fixed windows.
hour, day, week, month Environment: 0 = sandbox, 1 = production.
0, 1 0 <= x <= 500Three-letter ISO 4217 currency code. Affects monetary values like tracked_revenue.
^[A-Z]{3}$Same schema as the charts endpoint.
Response
Card data. realtime returns an array of one row per sub-metric.