Skip to main content

StatisticsAPI

Dashboard, language, project, history, and agent analytics.

A Free-plan week example is in the Statistics guide. Use week on Free; paid history limits are enforced by the server.

IDE statistics

dashboard, _, err := client.StatisticsAPI.MainApiV1GetMyDashboardStatsGet(ctx).Execute()
history, _, err := client.StatisticsAPI.MainApiV1GetMyActivityHistoryGet(ctx).Execute()
languages, _, err := client.StatisticsAPI.MainApiV1GetMyLanguageStatsGet(ctx).Execute()
projects, _, err := client.StatisticsAPI.
MainApiV1GetMyProjectStatsGet(ctx).
Period("week").
Execute()

Desktop-agent dashboard

agentDashboard, _, err := client.StatisticsAPI.GetAgentDashboard(ctx).Period("week").Execute()
agentSummary, _, err := client.StatisticsAPI.GetAgentDashboardSummary(ctx).Period("week").Execute()
agentTimeline, _, err := client.StatisticsAPI.GetAgentDashboardTimeline(ctx).Period("week").Execute()
agentPrograms, _, err := client.StatisticsAPI.GetAgentDashboardPrograms(ctx).Period("week").Execute()
agentPlatforms, _, err := client.StatisticsAPI.GetAgentDashboardPlatforms(ctx).Period("week").Execute()
agentHourly, _, err := client.StatisticsAPI.GetAgentDashboardHourly(ctx).Period("week").Execute()
agentRecent, _, err := client.StatisticsAPI.GetAgentDashboardRecent(ctx).Period("week").Execute()

desktopStats, _, err := client.StatisticsAPI.
MainApiV1GetMyDashboardStatsDesktopGet(ctx).
Period("week").
Execute()

Android dashboard

androidSummary, _, err := client.StatisticsAPI.GetAndroidDashboardSummary(ctx).Period("week").Execute()
androidTimeline, _, err := client.StatisticsAPI.GetAndroidDashboardTimeline(ctx).Period("week").Execute()
androidApps, _, err := client.StatisticsAPI.GetAndroidDashboardApps(ctx).Period("week").Execute()
androidDevices, _, err := client.StatisticsAPI.GetAndroidDashboardDevices(ctx).Period("week").Execute()
androidHourly, _, err := client.StatisticsAPI.GetAndroidDashboardHourly(ctx).Period("week").Execute()
androidRecent, _, err := client.StatisticsAPI.GetAndroidDashboardRecent(ctx).Period("week").Execute()

androidStats, _, err := client.StatisticsAPI.
MainApiV1GetMyDashboardStatsAndroidGet(ctx).
Execute()