Query API
Retention
Query retention and frequency data
GET
Retention
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mixpanel/docs/llms.txt
Use this file to discover all available pages before exploring further.
Query Retention
Retrieve retention metrics including birth retention, compounded retention, and frequency data.Query Retention Report
Your Mixpanel project ID
The workspace ID
Start date in
YYYY-MM-DD formatEnd date in
YYYY-MM-DD formatType of retention analysis.Options:
birth (first time retention) or compounded (recurring retention)Default: birthThe first event a user must do to be counted in a birth retention cohort. Required when
retention_type is birth.The event to generate returning counts for. Applies to both birth and compounded retention.
Expression to filter born_events by
Expression to filter return events by
The number of units per bucketed interval. Default is
1.The number of individual buckets/intervals returned. Default is
1.The interval unit.Options:
day, week, monthDefault: dayAccumulate retention values from right to left. When
true, day N equals users who retained on day N and any day after.Default: falseProperty to segment retention by
Maximum number of property values to return when segmenting
Example Request
Response
Retention data with dates as keys
Use Cases
Calculate Retention Rates
Retention