Skip to main content
Solved

Need help in retrieving 'List Name', 'List ID' and 'List person count' in Klaviyo

  • May 26, 2023
  • 1 reply
  • 158 views

Forum|alt.badge.img+4

Hi Klaviyo Developer Community!

I am currently need your assistance in retrieving two specific pieces of data: 'List Name' and 'List person count.' I have looked into the documentation but couldn't find a solution to get this information. Could anyone kindly guide me on how to extract these details from Klaviyo? I need this for lists as well as segments.
 

Thank you in advance for your assistance and expertise.

Best regards,
Santiago 

Best answer by Brian Turcotte

Hi @santiagosanti!

 

I can certainly help with this!

To retrieve the name of a List via API given the List ID, you can make a call to the Get List endpoint, which returns the name among other list attributes:

While there’s no endpoint for directly retrieving total list subscribers, you could technically get this value by calling the Get List Profiles endpoint (which returns all the profiles in a list), and then looping through and counting the total number on your side. 

 

The “List Count” endpoint is a heavily requested feature, so I will certainly update this thread if there are any changes/updates there.

 

I hope this helps, and thanks for using the Community!

- Brian

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

1 reply

Brian Turcotte
Forum|alt.badge.img+37

Hi @santiagosanti!

 

I can certainly help with this!

To retrieve the name of a List via API given the List ID, you can make a call to the Get List endpoint, which returns the name among other list attributes:

While there’s no endpoint for directly retrieving total list subscribers, you could technically get this value by calling the Get List Profiles endpoint (which returns all the profiles in a list), and then looping through and counting the total number on your side. 

 

The “List Count” endpoint is a heavily requested feature, so I will certainly update this thread if there are any changes/updates there.

 

I hope this helps, and thanks for using the Community!

- Brian