Question

List cohorts API - sorting and pagination?

  • 21 March 2024
  • 0 replies
  • 42 views

Userlevel 1
Badge

Hi!

Is there any kind of sorting and pagination available for the list cohorts API? (https://www.docs.developers.amplitude.com/analytics/apis/behavioral-cohorts-api/#get-all-cohorts)

 

Obviously the API can’t return the details of an infinite number of cohorts. We appear to be getting 140 back, but this doesn’t include all cohorts for the project. From the documentation it looks like there are no sorting or pagination parameters available. Is that really the case?

How are the results from the API ordered? It doesn’t seem to be any of the parameters that might make sense like “createdAt”, “lastMod” or “lastComputed”.


0 replies

Be the first to reply!

Reply