---
title: "Monthly active users"
description: "Get monthly active user (MAU) counts with get_monthly_active_users to track user growth or to build MAU reports for billing."
---

# Monthly active users

> Get monthly active user (MAU) counts with get_monthly_active_users to track user growth or to build MAU reports for billing.

## Overview

The `get_monthly_active_users` function provides monthly active user (MAU) counts. Use this endpoint to:

- Track unique user engagement month over month
- Monitor user growth and retention trends
- Generate MAU reports for billing or analytics

## Quick start

```graphql
query GetMonthlyActiveUsers(
  $accountId: uuid
  $startDate: timestamp
  $endDate: timestamp
) {
  rows: get_monthly_active_users(
    args: { account_id: $accountId, start_time: $startDate, end_time: $endDate }
  ) {
    month_year
    unique_users
  }
}
```

**Variables:**

```json
{
  "accountId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "startDate": "2024-01-01",
  "endDate": "2024-01-01"
}
```

## Try it

<GraphiQLPlayground
  query={`query GetMonthlyActiveUsers(
  \$accountId: uuid
  \$startDate: timestamp
  \$endDate: timestamp
) {
  rows: get_monthly_active_users(
    args: { account_id: \$accountId, start_time: \$startDate, end_time: \$endDate }
  ) {
    month_year
    unique_users
  }
}`}
  variables={`{
  "accountId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "startDate": "2024-01-01",
  "endDate": "2024-01-01"
}`}
  endpoint="https://logs.moveo.ai/v1/graphql"
/>

## Parameters

| Parameter   | Type        | Description                       |
| ----------- | ----------- | --------------------------------- |
| `accountId` | `uuid`      | Account identifier                |
| `startDate` | `timestamp` | Start date (format: `yyyy-mm-dd`) |
| `endDate`   | `timestamp` | End date (format: `yyyy-mm-dd`)   |

## Response fields

| Field          | Type     | Description                           |
| -------------- | -------- | ------------------------------------- |
| `month_year`   | `String` | Month and year (format: `yyyy-mm`)    |
| `unique_users` | `Int`    | Number of unique users for the month  |

## Common use cases

**Single month**

Get MAU for a single month:

```json
{
  "accountId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "startDate": "2024-01-01",
  "endDate": "2024-01-01"
}
```

**Multiple months**

Get MAU for multiple months:

```json
{
  "accountId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "startDate": "2024-01-01",
  "endDate": "2024-03-01"
}
```

## Example response

```json
{
  "data": {
    "rows": [
      {
        "month_year": "2024-01",
        "unique_users": 3016
      },
      {
        "month_year": "2024-02",
        "unique_users": 1248
      }
    ]
  }
}
```
