---
title: "Get analytics user stats"
method: GET
path: "/api/apps/{app_id}/analytics/stats/users"
---

# Get analytics user stats

`GET /api/apps/{app_id}/analytics/stats/users`

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns how many of the app's users are active, live, and inactive, for an at-a-glance dashboard.

A user counts once, in the bucket its most recent event falls into: `active_users` for the last 7 days, `inactive_7d` for 7 to 30 days ago, and `inactive_30d` for longer ago than that. Base44 keeps analytics events for 60 days, so `inactive_30d` covers 30 to 60 days and a user who has been away longer drops out of the counts entirely.

`live_users` is counted separately, from the app's heartbeats rather than its events, and covers the last 2 minutes.

Only users the app attributes its events to are counted. Events the app tracks without a user are not.

<Note>Each counter reports `0` when Base44 cannot read it, with a `200`, so treat a sudden drop to zero as a possible read failure rather than a real one.</Note>

## Path parameters

- `app_id` string, required — ID of the app whose analytics to read.

## Response `200`

The app's user counts.

- UserStatsResponse — User statistics for dashboards.
  - `active_users` integer — Users whose most recent event was in the last 7 days.
  - `live_users` integer — Users seen in the app in the last 2 minutes.
  - `inactive_7d` integer — Users whose most recent event was between 7 and 30 days ago.
  - `inactive_30d` integer — Users whose most recent event was more than 30 days ago.

## Other responses

- `401` — Missing or invalid credentials.
- `403` — You don't have access to this app.
- `404` — App not found.
- `422` — Validation Error

---

[API](https://skmtc.dev/idealspot/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/idealspot/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/idealspot/base44-app-management-api/revisions/31ef75eb64ab/schema)
