Solved

User profile API is not returning cohort ids list

  • 11 April 2022
  • 1 reply
  • 158 views

I am calling https://profile-api.amplitude.com/v1/userprofile endpoint with required params but I see that cohort_ids is always an empty array for every user id. Why is this the case? Even though the users are part of many cohorts.

icon

Best answer by Yuanyuan Zhang 12 April 2022, 16:46

View original

1 reply

Userlevel 5
Badge +5

Hi @preyansh.

This is Yuanyuan from the Amplitude Support team - thank you for writing this post!

It would appear that in order to get Cohort IDs, you need to the use User Profile API alongside the Recommend package. It can also be used separately to recommend but only to get the user properties.

In case you are interested in the Recommend package, please let me know. I will gladly connect you with the Sales team for further discussion. 

I hope this is helpful to you. Please let me know if you have follow-up questions!

Best, 

Reply