Skip to main content
Solved

Get current list size through REST API


Forum|alt.badge.img+2

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.. 

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.

View original
Did this topic or the replies in the thread help you find an answer to your question?

7 replies

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • Answer
  • 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.


Forum|alt.badge.img+3
  • Contributor III
  • 5 replies
  • 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.


Forum|alt.badge.img+1
  • Contributor I
  • 1 reply
  • June 7, 2022

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


Forum|alt.badge.img+1
  • Contributor I
  • 1 reply
  • September 7, 2022

I would also need this very much


Forum|alt.badge.img
  • Contributor I
  • 1 reply
  • April 7, 2023

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


Brian Turcotte
Forum|alt.badge.img+37

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
  • 1 reply
  • November 19, 2024

Any progress on this?