Skip to main content
Active Contributor II
May 26, 2023
Solved

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

  • May 26, 2023
  • 1 reply
  • 211 views

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 

    This topic has been closed for replies.
    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

    1 reply

    Brian Turcotte
    Klaviyo Alum
    May 26, 2023

    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