Skip to main content
Solved

Accessing subscriber

  • May 28, 2021
  • 1 reply
  • 126 views

Forum|alt.badge.img+2

Hello 

What api method can I use to retrieve new and existing users with their associated subscriber status? I’ve looked through the documentation but can’t find what ‘m looking for.

 

Is there a way to see for example for time period of 24 hours lets say - who subscribed in that period? Who signed up etc?

 

Is there also a way to access the full customer base using the api and access their current email status? for example if I have 10K emails - can I download them with their associated profiles/subscriber status?

 

Many thanks

Adham

Best answer by julie.accardo

Hi @adsham,

 

In order to identify the users that subscribed to a list within a certain time period, you have the option of creating a segment with the conditions of “Anyone who is in list X and was added to list in the last 24 hours.” You can then set up the following GET request to retrieve the subscribers in that segment.

curl --request GET \ --url 'https://a.klaviyo.com/api/v2/group/LIST_OR_SEGMENT_ID/members/all?api_key=PRIVATE_KEY' \ --header 'Accept: application/json'

 

You could do something similar with segments where you create different segments based on subscriber status and get the respective contacts from those segments using our API. Open to other suggestions, however, for this second question!

 

Best,

Julie

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

1 reply

julie.accardo
Klaviyo Employee
Forum|alt.badge.img+36
  • Klaviyo Employee
  • 185 replies
  • Answer
  • May 29, 2021

Hi @adsham,

 

In order to identify the users that subscribed to a list within a certain time period, you have the option of creating a segment with the conditions of “Anyone who is in list X and was added to list in the last 24 hours.” You can then set up the following GET request to retrieve the subscribers in that segment.

curl --request GET \ --url 'https://a.klaviyo.com/api/v2/group/LIST_OR_SEGMENT_ID/members/all?api_key=PRIVATE_KEY' \ --header 'Accept: application/json'

 

You could do something similar with segments where you create different segments based on subscriber status and get the respective contacts from those segments using our API. Open to other suggestions, however, for this second question!

 

Best,

Julie