# Email Events Bulk Dump

**URL:** <https://community.hubspot.com/t/email-events-bulk-dump/11299>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [September 18, 2018, 8:57pm UTC](https://community.hubspot.com/t/email-events-bulk-dump/11299 "2018-09-18T20:57:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![derraballi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derraballi/32/53612_2.png) [@derraballi](https://community.hubspot.com/u/derraballi)\
**Post date:** [September 18, 2018, 8:57pm UTC](https://community.hubspot.com/t/email-events-bulk-dump/11299/1 "2018-09-18T20:57:08Z")

</div>

Hi,  
I am planning on integerating with the following api:  
[https://api.hubapi.com/email/public/v1/events](https://api.hubapi.com/email/public/v1/events)  
to fetch all the events for a specific app\_id, with an optional campaign/startTime specified.

I noticed that this api is paginated with an offset, however i may be planning on loading all the records. Is there a bulk fetch api to load all the email events, or is the only way to loop over the offset will hasMore is true? One issue i can forsee is that events may be added as i loop over the offset, which could could cause me to miss data. This depends on if the offset param will consistently return the same records, or it would change if the underlying query has more or less events.

That was a lot of words so if it doesn’t make sense the tldr is:

1. Is there a api that has a bulk download of all events for the query
2. If not is the offset idempotent, such that if i: A. load the api B. a new event is created C. load the api with the offset from (A). C should return the same records regardless of (B).

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [September 24, 2018, 5:19pm UTC](https://community.hubspot.com/t/email-events-bulk-dump/11299/2 "2018-09-24T17:19:17Z")

</div>

Hi @derraballi,

Happy to clarify:

1. At this time, there is no method to get _all_ email events without looping.
2. The `offset` is idempotent in that you can repeatedly query the same `offset` value again and it will return the same events, regardless if more recent events have occurred. That said, I’ve only tested this within a twenty minute window. [Our documentation](https://developers.hubspot.com/docs/methods/email/get_events) does state that the `offset` value “is not meant to be long-lived,” so I’m not sure how long the value can be used.
