Solved

API endpoint to fetch campaign ID and flow stats

  • 1 February 2024
  • 2 replies
  • 43 views

Badge

We are currently integrating with Klaviyo for email reporting. We need to fetch campaign performance stats and flow performance stats from the API using Query Metric Aggregate Endpoint. We encountered two problems: 

  1. In the supported attributes, it seems that we can only fetch data aggregated by campaign name not by campaign id. In this case, how can we ensure the campaign is unique (sometimes different campaign ids can have same campaign name)?
  2. In the supported attributes, it seems that there is no flow stats. Is there an API endpoint to fetch flow stats?
icon

Best answer by saulblum 1 February 2024, 16:05

View original

2 replies

Userlevel 4
Badge +7

Hi! Good timing, there will be an API release this month (planned for 02-15) that adds a reporting API that will let you fetch the analytics you can currently access in the UI for campaigns and flows.

Subscribe to the developer newsletter at https://developers.klaviyo.com/en and you’ll be notified about the new API calls.

 

 

 

Userlevel 4
Badge +7

You can use the aggregates call to group events like Opened Email by flow, with the $flow property. 

Reply