Campaign events APi

I need to pull ALL of our email events into our DataWarehouse, regardless of the Campaign. I am using the Event API, inside a loop, adjusting the offset, using the value from the previous API response.

[https://api.hubapi.com/email/public/v1/events?limit=1000&offset=Ch4KFQi6583QqNa5jrQBEJvghMy2y4S0cRj3hISy1jE]. This is working, but is slow.

I have 2 questions . . .

1. Is 1000 the max limit?

2. Is there a different API more suited to a batch environment?

Hi, @pac0001. Thanks for your question.

Q1. That is correct – “The maximum allowed value is 1000.”

Q2. There is not a batch equivalent for this endpoint

I know this is not the answer you were looking for. I hope this helps get you moving forward. — Jaycee

Thank you for your response.

Is there a limit to the # of concurrent API calls I can make?

As a work around, I added the “eventType” to my request. Then for each eventType, I make the API call. The documentation shows 11 different event types . . . can I run 11 API calls in parallel?

Hi, @pac0001. There isn’t a concurrency limit listed in the Rate Limit documentation, only calls per second and per 24-hour period. You may need to do some testing in your app to avoid hitting those limits if you try to make concurrent calls this way.

Best,

Jaycee