Solved

Get list of users that match a property using the Profile API?

  • 9 November 2021
  • 2 replies
  • 148 views

Badge

Hello,

Is it posible to use the Amplitude’s Profile API to get all users that match a condition over an user property?

For example, GET all user whose “number_of_purchases” is greather than 10.

Thanks you.

icon

Best answer by Saish Redkar 9 November 2021, 03:23

View original

2 replies

Userlevel 7
Badge +10

Hey @carlos.bernal 

From what I understand from its documentation, the Profile API works on a single user id and responds with the recommendations/computations/member cohorts ids / user properties for that user. So your use case might not be possible using the Profile API.

However, if you have a prebuilt cohort of users who have “number_of_purchases” is greater than 10 , you can leverage the Behavioral Cohort API to fetch the list of those users.

 

Let me know if I have interpreted your use case correctly.

Badge

Understood, thank you @Saish Redkar .

Reply