Solved

Metrics query endpoint fields

  • 24 September 2021
  • 1 reply
  • 118 views

Badge +2

Using the metrics query endpoint: https://a.klaviyo.com/api/v1/metric/metric_id/export I have been successful pulling metrics using both the “by” and “where” query parameters. This tool is greatly appreciated.

 

I am having a hard time finding the corresponding fields for the “where” and “by” parameters with arguments like `by = $message`. It can take some guesswork to match an analytics UI field with what the queries pull from in your back end. Is there a table or list of Klaviyo fields I can pull from? The specific field I’m looking for is the a/b test ID, but there are quite a few times I’ve run into not being able to guess the proper field name.

icon

Best answer by jonbatscha 27 September 2021, 17:27

View original

1 reply

Badge +1

We have added a page to our API Docs that is dedicated to addressing this common ask: https://apidocs.klaviyo.com/reference/metrics#klaviyo-metrics-attributes
 

As always, we appreciate any and all feedback from the Klaviyo Developer Community!

Reply