Solved

Get a list of user_ids from a Cohort ID via API.

  • 13 April 2022
  • 2 replies
  • 36 views

Badge

Let’s say I have a Cohord ID = ‘rrsn6f2’, 

Instead of exporting the CSV file manually and then remove all the unused columns and keep only 1 column, the ‘user_id’ column which is a custom user property to include our own system’s user_id, I mean to do that job automatically by using Amp API. Is it feasible? 

Thank you.

 

 

icon

Best answer by Saish Redkar 13 April 2022, 16:59

View original

2 replies

Userlevel 7
Badge +10

Hey @hien.cao 

Amplitude offers a Behavioral Cohorts API wherein you can submit the cohort ID and get the list of those users. They have the props and propsKey parameters in there which you can use to select the user properties you need to include in the response.

Hope this helps.

 

Badge

Hey @hien.cao 

Amplitude offers a Behavioral Cohorts API wherein you can submit the cohort ID and get the list of those users. They have the props and propsKey parameters in there which you can use to select the user properties you need to include in the response.

Hope this helps.

 

Sweet! Appreciate this!

Reply