APIs & Integrations

ujuttu
Member

Parallel pagination to get all events

Hi

I want to get all events from all of our campagins.  right now we have 659 compagins estimated events aroud 15M -20M records. I tried getting this infomation using single thread but it's taking too long.  I am wondering how I can able to do multi threading on the sequential API(i,e response with offset value in it) like events endpoint (https://legacydocs.hubspot.com/docs/methods/email/get_events).

Is there is way to pull records more efficiently?

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

Parallel pagination to get all events

Hi, @ujuttu. Thanks for reaching out! Hey @JBeatty, do you have any experience setting up what @ujuttu is describing?

 

Thank you!  — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
Lle444
Member

Parallel pagination to get all events

Hi there--I just wanted to check if there was any update on this question? This would be a helpful thing to have for my team.

 

This question gets at the same idea:

 

https://community.hubspot.com/t5/APIs-Integrations/API-pagination-consistency/td-p/789030

 

But wondering if there are any alternative approaches, and/or if anyone has a Python code example.

 

Thanks!

0 Upvotes