Skip to main content

Analytics - API Documentation

Overview

Analytics endpoints return aggregated usage, geography, event, and behavior metrics for one app.

Data Sources

CollectionPurpose
countly.users{appId}Core aggregated session/user metrics used by dashboard, sessions, countries, loyalty, frequency, and durations.
countly.device_details{appId}Aggregated platform/device/version/resolution metrics used by dashboard and tops/metric queries.
countly.carriers{appId}Aggregated carrier metrics used by dashboard and tops/metric queries.
countly.events_dataAggregated custom-event metrics used by events endpoints.
countly.event_groupsEvent-group definitions used in grouped event queries.
countly.app_users{appId}Base user universe for total-user correction logic.
countly.metric_changes{appId}Historical metric-change correction source for total-user estimation.

Configuration Impact

SettingAffectsImpact
api.total_usersDashboard/countries/metric/tops user-estimation pathsWhen disabled, total-user correction is skipped.
api.metric_changesMetric-change correction in total-user estimationWhen disabled, previous metric values are not merged from change history.
api.country_datamethod=countries on /oWhen disabled, countries response becomes empty object for method-based route.
api.city_datamethod=cities on /oWhen disabled, cities response becomes empty object for method-based route.

Key Behavior Notes

  • /o/analytics/* endpoints return raw JSON payloads (not wrapped under result).
  • Most endpoints have multiple output modes based on request parameters (metric, metrics, event, events, segmentation, bucket).
  • Event analytics can return subperiod, segmented, or grouped outputs depending on parameters.

Limitations

  • Metrics are aggregation-based and can be empty for low-traffic apps or unsupported metric keys.
  • Large periods and high-cardinality segmentation increase processing cost.

Last Updated

2026-02-17