Skip to main content

Monthly active users

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

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"
}

Try it

Loading GraphQL Playground...

Parameters

ParameterTypeDescription
accountIduuidAccount identifier
startDatetimestampStart date (format: yyyy-mm-dd)
endDatetimestampEnd date (format: yyyy-mm-dd)

Response fields

FieldTypeDescription
month_yearStringMonth and year (format: yyyy-mm)
unique_usersIntNumber of unique users for the month

Common use cases

Get MAU for a single month:

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

Example response

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