Skip to main content
Contributor I
May 26, 2021
Solved

Get current list size through REST API

  • May 26, 2021
  • 7 replies
  • 923 views

I am with an agency using Klaviyo for multiple accounts, and we are working to build out more consolidated reporting by querying the Klaviyo API.

 

One of our ongoing metrics is the list / segment size. As far as I can tell, the only way to do that through the current API is to query all the way through the current list or segment members (e.g. /v2/group/LIST_OR_SEGMENT_ID/members/all).

 

Does anyone know if there is a simpler/quicker/less taxing way to get this number? And if not is there an enterprising Klaviyo API Dev/Product Manager who wants to cut down on the number of API requests I need to make daily :grin:. I was hoping it would just be an aggregate number tacked onto v2/list/LIST_ID

 

Thanks!

Nikolaj

 

Bonus Points if I could somehow get this as a historical value (e.g. to track list size historically) through metrics.. 

    This topic has been closed for replies.
    Best answer by Dov

    Hi @Nikolaj,

    Thank you for sharing your question with the Klaviyo Community.

    Yes, currently the only way to gather all emails for a given list or segment is to use  https://a.klaviyo.com/api/v2/group/list_or_segment_id/members/all. With that said, I understand your point and see how fetching the overall count can be useful to include in this request. I have submitted it as a proposal for our product team to consider. In the meantime, you can either continue using this endpoint or you can export lists and segments through a .csv file to capture total list and/or segment count.

    Thanks and have a great day.

    7 replies

    Dov
    DovAnswer
    Klaviyo Alum
    May 27, 2021

    Hi @Nikolaj,

    Thank you for sharing your question with the Klaviyo Community.

    Yes, currently the only way to gather all emails for a given list or segment is to use  https://a.klaviyo.com/api/v2/group/list_or_segment_id/members/all. With that said, I understand your point and see how fetching the overall count can be useful to include in this request. I have submitted it as a proposal for our product team to consider. In the meantime, you can either continue using this endpoint or you can export lists and segments through a .csv file to capture total list and/or segment count.

    Thanks and have a great day.

    DD
    Contributor III
    May 11, 2022

    Hi,

     

    I would like to also chip in on this request as it would be very nice to pull the segment size for our BI.

    Contributor I
    June 7, 2022

    I would also like to +1 this as an extremely useful new feature

    Contributor I
    September 7, 2022

    I would also need this very much

    Contributor I
    April 7, 2023

    This would be super helpful. Is this on the roadmap at all?

    Brian Turcotte
    Klaviyo Alum
    April 7, 2023

    Hi @pillow!

     

    I reached out to Engineering and this feedback is definitely on their radar - I’ll update the thread if there’s any news in the future!

     

    Best,

    Brian

    Contributor I
    November 19, 2024

    Any progress on this?