Skip to main content
Solved

API Methods to get all campaigns sent to a particular profile or e-mail domain

  • May 20, 2024
  • 1 reply
  • 94 views

Forum|alt.badge.img

Hi,

I am new to using the Klaviyo API.  I have had a quick look at the API and really just need a few pointers to help me understand if what I wish to achieve is possible or not, and if it is then roughly how might I set about it.

I would like to run a script that will look through all of the campaigns that I have sent and report all of the campaigns that were sent to a specific recipient or better still sent to any recipient at a specified e-mail domain.  It can’t be assumed that any lists or segments have the same definitions that they had when the campaigns were sent, so is there an underlying database that can be accessed that records the “send-to” list of each campaign?

Many thanks for any help that can be provided.

Ross

Best answer by kaila.lawrence

Hiya @Ross Addinall! Great question. You can use the Events API to filter for received email metric. Email domain is a metric inside of the received email metric so you can filter by that as well! You’ll want to filter out any message that has “$flow” as a property. The result will be all campaigns sent to a specific domain. 

 

Hope that helps :)

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

1 reply

kaila.lawrence
Community Manager
Forum|alt.badge.img+31
  • Community Manager
  • 499 replies
  • Answer
  • May 24, 2024

Hiya @Ross Addinall! Great question. You can use the Events API to filter for received email metric. Email domain is a metric inside of the received email metric so you can filter by that as well! You’ll want to filter out any message that has “$flow” as a property. The result will be all campaigns sent to a specific domain. 

 

Hope that helps :)