Skip to main content
GET
Retention

Query Retention

Retrieve retention metrics including birth retention, compounded retention, and frequency data.

Query Retention Report

integer
required
Your Mixpanel project ID
integer
The workspace ID
string
required
Start date in YYYY-MM-DD format
string
required
End date in YYYY-MM-DD format
string
Type of retention analysis.Options: birth (first time retention) or compounded (recurring retention)Default: birth
string
The first event a user must do to be counted in a birth retention cohort. Required when retention_type is birth.
string
The event to generate returning counts for. Applies to both birth and compounded retention.
string
Expression to filter born_events by
string
Expression to filter return events by
integer
The number of units per bucketed interval. Default is 1.
integer
The number of individual buckets/intervals returned. Default is 1.
string
The interval unit.Options: day, week, monthDefault: day
boolean
Accumulate retention values from right to left. When true, day N equals users who retained on day N and any day after.Default: false
string
Property to segment retention by
integer
Maximum number of property values to return when segmenting

Example Request

Response

object
Retention data with dates as keys

Use Cases

Calculate Retention Rates