Solved

Retrieve events for specific set of metrics

  • 26 October 2022
  • 1 reply
  • 73 views

Badge +2

Good morning,

We need to retrieve the events for a specific set of metrics, e.g.: Received Email, Open Email, Clicked Email, … .

With the API we can:

  • Retrieve all the events and remove the no interested: https://a.klaviyo.com/api/metrics/ (one request but we have to filter later)
  • Retrieve the events for each metric https://a.klaviyo.com/api/metrics/{id}/ (multiple requests).

Is there a way to do this with a single request without getting all the events? (something like "give me all the events for these metrics")

Thanks.

icon

Best answer by David To 27 October 2022, 16:19

View original

1 reply

Userlevel 7
Badge +60

Hello @CohleyDev,

Welcome to the Klaviyo Community!

Great question! At present retrieving the events for a subset/grouping of metrics is not supported. The options available as you’ve highlighted of quarrying all events or returning all events for a specific metrics run multiple times would be the best methods. However, I’ll certainly share this feedback and use case with our Product Team as they’re always interested in further developing our API capabilities. 

If you haven’t already, check out the release of our new APIs. 

Thanks for being a part of the Klaviyo Community!

David

Reply