I want to get the active profile count from the Api only, I will not be able to create a segment(Active member segment as it is one of the solutions to my question) as I have the API of my client,
So is there any possible way to do it
As of Now, I can get the total profile form get profile API using a recussion call, how can I filter suppressed profiles from it
Solved
How to get Active Profile Count without creating new Segment of Active Profile Member
Best answer by ankitdew05
I have researched about it so we can take this approach, in Profile, we have attributes.subscriptions.email.marketing.suppressions it is an array if the array length is zero then we get to know it is active if the array length is !=0 than it is suppressed so we can loop through it and find.
As the rate limit of get profiles API is 60/m 1/s and looping take some millisecond for 100 profiles so no time complexity problem
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.