Account usage (beta)

Get MAU usage

Deprecated

GET
/api/v2/usage/mau

Get a time-series array of the number of monthly active users (MAU) seen by LaunchDarkly from your account. The granularity is always daily.Endpoints for retrieving monthly active users (MAU) do not return information about active context instances. After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should not rely on this endpoint. To learn more, read Account usage metrics.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Query Parameters

from?string

The series of data returned starts from this timestamp. Defaults to 30 days ago.

Formatstring
to?string

The series of data returned ends at this timestamp. Defaults to the current time.

Formatstring
project?string

A project key to filter results to. Can be specified multiple times, one query parameter per project key, to view data for multiple projects.

Formatstring
environment?string

An environment key to filter results to. When using this parameter, exactly one project key must also be set. Can be specified multiple times as separate query parameters to view data for multiple environments within a single project.

Formatstring
sdktype?string

An SDK type to filter results to. Can be specified multiple times, one query parameter per SDK type. Valid values: client, server

Formatstring
sdk?string

An SDK name to filter results to. Can be specified multiple times, one query parameter per SDK.

Formatstring
anonymous?string

If specified, filters results to either anonymous or nonanonymous users.

Formatstring
groupby?string

If specified, returns data for each distinct value of the given field. Can be specified multiple times to group data by multiple dimensions (for example, to group by both project and SDK). Valid values: project, environment, sdktype, sdk, anonymous, contextKind, sdkAppId

Formatstring
aggregationType?string

If specified, queries for rolling 30-day, month-to-date, or daily incremental counts. Default is rolling 30-day. Valid values: rolling_30d, month_to_date, daily_incremental

Formatstring
contextKind?string

Filters results to the specified context kinds. Can be specified multiple times, one query parameter per context kind. If not set, queries for the user context kind.

Formatstring

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/usage/mau"
{  "_links": {    "property1": null,    "property2": null  },  "metadata": [    {      "property1": null,      "property2": null    }  ],  "series": [    {      "0": 11,      "1": 15,      "time": 1677888000000    }  ]}