Skip to main content
Contributor I
May 14, 2021
Solved

How can retrieve all of my events?

  • May 14, 2021
  • 3 replies
  • 424 views

I am trying to retrieve all of my events. I understand that the metrics/timeline API only allows me to retrieve a batch of 100 events. How am I able to get the next 100 and eventually retrieve them all? 

    This topic has been closed for replies.
    Best answer by klaviyojad

    @PLG  if you look at the api docs for the metrics-timeline  you will see there is a  since string param.

    You can specify for it a UUID obtained from the next attribute of a prior API call. This essentially achieves pagination to get you the next set of results.

    3 replies

    Klaviyo Employee
    May 14, 2021

    @PLG  if you look at the api docs for the metrics-timeline  you will see there is a  since string param.

    You can specify for it a UUID obtained from the next attribute of a prior API call. This essentially achieves pagination to get you the next set of results.

    adzviser
    Contributor I
    Contributor I
    December 3, 2024

    @PLG  if you look at the api docs for the metrics-timeline  you will see there is a  since string param.

    You can specify for it a UUID obtained from the next attribute of a prior API call. This essentially achieves pagination to get you the next set of results.

    But this means that we will have to call https://a.klaviyo.com/api/events? sequentially with different page cursors, correct? It will take a long time for it to get all the events if there are lots of events. 

    Talk to your marketing data intuitively
    chloe.strange
    Community Manager
    Community Manager
    December 27, 2024

    Hi ​@adzviser

    Can you provide a little more information on what you are looking to accomplish by pulling all of this data? This will be helpful for solutioning. I also wanted to call out that this is the updated link you should be looking at: https://developers.klaviyo.com/en/reference/get_events

    What was shared above is now deprecated. 

    ~Chloe