APIs & Integrations

jawadfazal
Member

Getting email events for all contacts

Hi, 

I would like to get all the email events for all the contacts. 

Currently what I am doing is that first getting list of contacts with emails from contact api as a list. 

Then I am looping through the contacts and passing emails to the following API

https://api.hubapi.com/email/public/v1/events?hapikey=demo&recipient=user1@aol.com&startTimestamp=1582218071133&endTimestamp=1582732190766

 This takes lot of time and slow even for small dataset and even fails sometimes. 

Is there a better way to get all the email events for all contacts? 

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Getting email events for all contacts

@zaklein , how do you tackle something like this?

0 Upvotes