I would like to use the Mixpanel API to get a list of all the users who would be considered in the MAU/WAU/DAU lists. How can I do this?
Hi Kale, Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
To get a list of users considered in the MAU/WAU/DAU lists using the Mixpanel API, you can use the Query API, specifically the /engage endpoint. Here's how you can approach this:1. First, define what constitutes an "active user" for your product. This could be any meaningful action, such as "watches a video" or a more complex definition based on your product's specifics.2. Use the /engage endpoint of the Query API to filter users based on your defined criteria for active users.3. Set the appropriate time range for MAU (last 30 days), WAU (last 7 days), or DAU (last 24 hours).Unfortunately, the provided knowledge sources don't contain specific code examples or detailed API instructions for this particular use case. However, you can find more information about using the Query API in the Mixpanel Developer Reference.For a more detailed guide on how to use the API or for specific code examples, I recommend checking Mixpanel's official API documentation or contacting their support team for the most up-to-date and accurate information.Remember that when defining active users, it's important to choose actions that represent meaningful engagement with your product, as mentioned in the Mixpanel Blog on MAU: "Simply 'opening the app' is not a meaningful engagement metric. Instead, individual products need to define what user action(s) are the most useful indicators for them."
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
I am attempting to use the engage endpoint and I find the method for filtering to be overly complex. I do not understand how to include the filter in code. Are tjere no examples of how to do this?