Solved

How to fetch Cohort defined in Mixpanel to our Backend ?

  • 31 December 2020
  • 2 replies
  • 84 views

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:

  1. How to define an API to fetch Cohorts from Mixpanel to our Backend Database?
  2. Will the API be real-time?
  3. Will the API get triggered everytime I define a new User Cohort, when will the API get triggered? 
  4. 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 !

icon

Best answer by robin 1 January 2021, 17:12

Hello @Saurabh Raina,

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.

View original

2 replies

Userlevel 3
Badge +1

I don’t think there is a way to sync cohort data to your backend. Cohorts are integrated by Mixpanel with a select set of partners, which can be found under Integrations list.

Userlevel 3
Badge +3

Hello @Saurabh Raina,

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.

Reply


Mixpanel