This number is the Total Profiles. I’ve inspected the full page, and this seems to be pre-loaded html field, not an API call.
Can you please help me on how I can retrieve this number??
Thank you very much!
Susana
Page 1 / 1
Hi @siss_susana!
At this time, there is no API endpoint that can directly retrieve this number.
However, you could technically call the Get Profiles endpoint which returns all of the profiles in your account, and use a function on your end to count them.
Best, Brian
@siss_susana as @Brian Turcotte rightly pointed out there is no direct API for this, but I would like to help you with a workaround that helped.
If you create a segment with "Is not suppressed", you will get a segment of all your active profiles. Or you can give a condition that matches all the conditions. And no worries each time a profile is created this segment would also be updated since it satisfy all conditions.
Then you can use the Get a Segment API which would have the profile_count option in the response (see the screenshot attached) which can give you the count of profiles in the segment.
Hence this way you should be able to get the count of all the active Profiles / Profiles as you specify from Klaviyo using API.
Hope this helped.
Hi @siss_susana!
At this time, there is no API endpoint that can directly retrieve this number.
However, you could technically call the Get Profiles endpoint which returns all of the profiles in your account, and use a function on your end to count them.
Best, Brian
Hi @Brian Turcotte, sorry if this is a silly question but: how can I ensure I have no duplicated users if I sum all the values among all profiles?
Thank you in advance!
@siss_susana as @Brian Turcotte rightly pointed out there is no direct API for this, but I would like to help you with a workaround that helped.
If you create a segment with "Is not suppressed", you will get a segment of all your active profiles. Or you can give a condition that matches all the conditions. And no worries each time a profile is created this segment would also be updated since it satisfy all conditions.
Then you can use the Get a Segment API which would have the profile_count option in the response (see the screenshot attached) which can give you the count of profiles in the segment.
Hence this way you should be able to get the count of all the active Profiles / Profiles as you specify from Klaviyo using API.
Hope this helped.
Hello @abhijithvs, I’ll wait on the response from Brian Turcotte (if the profiles don’t have duplicated users) because I have multiple sites & countries and I don’t have full access/knowledge on that, so creating a new segment for each one would require me to ask to the MKT people. But I will keep it as my plan B of course!
Thank you!
Thank you very much.
Hi @siss_susana!
Sorry for the delay here! You can only have one profile per email address, since email is the primary identifier in Klaviyo. Therefore, as long as it’s within the same account you will not have duplicate profiles.
- Brian
Hi @siss_susana!
At this time, there is no API endpoint that can directly retrieve this number.
However, you could technically call the Get Profiles endpoint which returns all of the profiles in your account, and use a function on your end to count them.
Best, Brian
Do you plan to develop an endpoint like this soon?
It is very important because it allows us to limit how many profiles to fetch.