Skip to main content
Solved

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


Forum|alt.badge.img

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.

 

 

Best answer by Saish Redkar

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.

 

View original
Did this topic help you find an answer to your question?

2 replies

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1377 replies
  • Answer
  • April 13, 2022

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.

 


Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • April 13, 2022
Saish Redkar wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings