Problem Statement
So I defined a bunch of User Cohorts in Mixpanel. Now I want these user-cohorts to be fetched and populated in our backend (Company Database).
Expectation
Can you please respond with the following:
- How to define an API to fetch Cohorts from Mixpanel to our Backend Database?
- Will the API be real-time?
- Will the API get triggered everytime I define a new User Cohort, when will the API get triggered?
- Do we have to define different API for different Cohorts?
Please respond with the query as we are expecting to start work on building the infrastructure for making this product successful. Happy New Year !
Best answer by robin
Hello
You can query this endpoint https://developer.mixpanel.com/reference/engage#engage-query by cohort ID.
You will have to manually call this API each time you wish to get new data.