Mixpanel Community Icon

Accessing Mixpanel User Cohorts Through APIs: Questions & Recommendations

Β·
Β·

Hi, I have a usecase where I need personalize some flows in the app based on the user cohort. Most of our data already resides in MixPanel, so I was thinking if there is any way to access the user cohort information from the APIs. I stumbled upon engage query API which does give us the information required but this is highly rate limited. Questions 🎫:

  1. 1.

    Is there a way to increase the limits on this API?

  2. 2.

    Is there any other API which I can use to get realtime cohort for any given userID? Is mixpanel the right tool for this or do you have any other recommendation for how to go about solving this issue?

  • Avatar of Julianne B.
    Julianne B.
    Β·
    Β·

    Hi Aakash- Julianne from Mixpanel Support here. Diving right in below:

    1. 1.

      It isn't possible to increase the limit for the APIs. Checking users cohorts and dynamically updating the site isn't really the expected use case for the Engage API. Sorry to not have better news there 😞

    2. 2.

      Within Mixpanel, Cohorts syncs may be a better fit for the use case. A dynamic cohort sync automatically updates a list of users in the cohort at regular intervals. You could then query this list of users as needed. For custom webhooks, the cohorts are synced every 30 minutes.

  • Avatar of Aakash R.
    Aakash R.
    Β·
    Β·

    I checked the documentation on Cohorts syncs. Is it possible to increase the number of sync from 60 to a bigger number?

  • Avatar of Julianne B.
    Julianne B.
    Β·
    Β·

    The 60 recurring sync cohort limit is a hard limit, and from my understanding, we don't typically increase the limit as it helps to ensure real time delivery - going above this limit could cause delays in the syncs. Instead, we recommend pausing any unneeded recurring syncs to stay within that limit. Sorry for not having better news there 😞