Skip to main content

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.

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.


Understood, thank you @Saish Redkar .


Reply