Skip to main content
Contributor I
May 12, 2021 6:15 PM UTC
Solved

API - Get count of subscribers in List or Segment

I haven’t been able to find any endpoint where I can retrieve the count of subscribers to a given list or segment. 

 

Trying to get a count from api/v2/group/LIST_OR_SEGMENT_ID/members/all would take too long and probably trip the rate limit with my list of 160K+ subscibers.

 

Seems like it would make sense to be included in the Get List Info call.

 

Thank you

    Dov
    DovAnswer
    Klaviyo Alum
    May 13, 2021 1:14 PM UTC

    Hi @mkren47,

    Thank you for sharing your feedback with the Klaviyo Community.

    That is excellent feedback. I have submitted it as a proposal for our product team to consider implementing in the future.

    In the meantime, I’d recommend exporting the list(s) and segment(s) in question through a .csv file as another way to retrieve both a subscriber count and all details pertaining to those profiles. Also, keep in mind that only Klaviyo users with the Owner, Admin, or Analyst roles have the ability to export lists and segments.

    Thanks and have a wonderful Thursday.

    DD

    24 replies

    Contributor I
    Apr 26, 2023 9:45 PM UTC

    Hi @david_hbm!

     

    There’s no update at this time, but I’ll tag you and notify the thread as soon there is!

     

    Best,

    Brian

    Also Waiting for this feature

    Contributor I
    May 8, 2023 10:32 PM UTC

    Still waiting a update, adding a “total” or “count” in the response is a quick solution that work for everyone

    Contributor IV
    Aug 15, 2023 5:23 PM UTC

    Am I missing something?  Is this possible yet?  We need to see a count for each list/segment without getting the entire list of like 38000 profiles.  

    Contributor IV
    Aug 16, 2023 2:39 PM UTC

    Need update on this. When will this feature will be available?

    Brian Turcotte
    Klaviyo Alum
    Aug 16, 2023 6:59 PM UTC

    Hi @kenw232 @bproulx @juanfdp!

    The ‘profile count’ field is now available in the response of Get List and Get Segment, as shown in the example response here:

     

    Best,
    Brian

    Contributor IV
    Aug 17, 2023 12:22 PM UTC

    I don’t see this at all.  I simply do not get a profile_count.  I made sure I’m using API release 2023-08-15 but all I see is:
     

    Listinfo (2023-08-15): Array
    (
    [data] => Array
    (
    [type] => list
    [id] => YzT7bf
    [attributes] => Array
    (
    [name] => tx store list
    [created] => 2022-10-21T21:37:16+00:00
    [updated] => 2022-10-21T21:37:16+00:00
    )

    [relationships] => Array

    No profile_count at all.  What might I be missing?  I’m calling https://a.klaviyo.com/api/lists/YzT7bf/

    And this profile_count should be added to the https://a.klaviyo.com/api/lists/ call too.  I get all my lists, but I still have to loop through them all to get a profile_count.

    Contributor IV
    Aug 17, 2023 1:09 PM UTC

    Hi @kenw232 @bproulx @juanfdp!

    The ‘profile count’ field is now available in the response of Get List and Get Segment, as shown in the example response here:

     

    Best,
    Brian

    I also can’t see it using the latest 2023-08-15 version.
     

     

    Brian Turcotte
    Klaviyo Alum
    Aug 17, 2023 5:05 PM UTC

    Hi @kenw232 and @bproulx!

     

    If you’re not seeing the profile count it’s because you have to elect to include the additional-fields[list] Query Param for profile count when making the call. See the example here in the developer portal:

     

    This will adjust the URL to look like this:

    https://a.klaviyo.com/api/lists/YzT7bf/?additional-fields[list]=profile_count

     

    Best,

    Brian

    Contributor IV
    Aug 17, 2023 5:18 PM UTC

    Hi @kenw232 and @bproulx!

     

    If you’re not seeing the profile count it’s because you have to elect to include the additional-fields[list] Query Param for profile count when making the call. See the example here in the developer portal:

     

    This will adjust the URL to look like this:

    https://a.klaviyo.com/api/lists/YzT7bf/?additional-fields[list]=profile_count

     

    Best,

    Brian

    Thanks it works!

    Contributor IV
    Aug 17, 2023 6:28 PM UTC

    Can I use this ?additional-fields[list]=profile_count on all the /lists/ listing too?  Or do this only work on a single /lists/Yzt7bf/ type of thing?