Skip to main content
Solved

Metrics query endpoint fields

  • September 24, 2021
  • 1 reply
  • 133 views

Forum|alt.badge.img+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.

Best answer by jonbatscha

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!

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

1 reply

Forum|alt.badge.img+1
  • Klaviyo Employee
  • 2 replies
  • Answer
  • September 27, 2021

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!