Skip to main content
Solved

Is there a way to use the API to get Total Subscribes per day?

  • January 31, 2023
  • 3 replies
  • 104 views

Forum|alt.badge.img+2

I see the growth reports for lists online but I am looking to get that info via the API for ingestion into our own hosted data tools.

 

Anyone have any experience grabbing this data?

 

thanks

Best answer by Brian Turcotte

Hi @BocoTech and welcome to the Community!

 

It sounds like this use case could be accomplished using our Query Metric Aggregates endpoint. This endpoint can be used to gather aggregate event data associated with native Klaviyo metrics like “Subscribed to List”.

 

In order to fit your exact use case, you would just need to pull the ID of your Subscribed to List metric from your Klaviyo account, then specify "count" from the measurement parameter, and "day" in the interval parameter. In order to get the metric ID, you can go to your Klaviyo account and navigate to Analytics > Metrics> Search for Subscribe:

Then, go up to the URL and grab the ID, which is the alphanumeric code that will appear after “metric”:

 

You can also use our Developer Portal docs on this endpoint to help you form the Curl Request if you’d like.

 

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?

3 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • February 1, 2023

Hi @BocoTech and welcome to the Community!

 

It sounds like this use case could be accomplished using our Query Metric Aggregates endpoint. This endpoint can be used to gather aggregate event data associated with native Klaviyo metrics like “Subscribed to List”.

 

In order to fit your exact use case, you would just need to pull the ID of your Subscribed to List metric from your Klaviyo account, then specify "count" from the measurement parameter, and "day" in the interval parameter. In order to get the metric ID, you can go to your Klaviyo account and navigate to Analytics > Metrics> Search for Subscribe:

Then, go up to the URL and grab the ID, which is the alphanumeric code that will appear after “metric”:

 

You can also use our Developer Portal docs on this endpoint to help you form the Curl Request if you’d like.

 

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

- Brian


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • February 6, 2023

so this seemingly worked, however I am getting some pretty varied results API vs. the web gui.

 

Any reasons for that? 

 

Is it mostly a timezone issue? Or are the events from the API different from what is shown on the web interface?


Brian Turcotte
Forum|alt.badge.img+37

Hi @BocoTech

 

The discrepancy in results is likely due to Klaviyo’s attribution model. My colleague David discusses this in detail here:

 

Essentially, the API includes organic data and is not confined by the same date restrictions as the Klaviyo dashboard. In order to get a closer match to your API results within Klaviyo, you could use custom reports.

 

I hope this helps!

- Brian