use v3 events api to get *all* events (not per contact) in a time range

I’m using Prefect to run a nightly data extract and load from Hubspot into a warehouse. I have got the contacts and companies working ok using the v3 endpoint (doing a full download each night), however the endpoint for events is less helpful for my needs - i would like to be able to query initially for *all* events to backfill the warehouse, and subsequently for all events since a particular date.

Although the v3 events endpoint does support querying by date it requires you to specificy a single contact (or other specific object+id). I’ve looked at the v2 and v1 offerings as well and not convinced either of them supports what i need either (query by date across all users).

Any suggestions on what I should be doing here or if the api is likely to change any time soon?

Note that in principle you could query for new events on every single contact every night, but that would be tens of thousands of requests, which seems a bit ridicoulous (and slow) even if it technically is within the daily limits for the api.

thanks

@JBeatty ,

Any suggestions here?

Hi @dan-man ,
At present HubSpot does not provide API for getting all events in v3 , for now, you can get
all of the events associated with specific object type if you do not pass them it will through error i.e.
https://prnt.sc/26qhlw6 , to get particular object event use https://api.hubapi.com/events/v3/events?objectType=contact&hapikey=YOUR_HUBSPOT_API_KEY

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.

Thanks for the reponse @webdew . I’m a bit unclear about a few of the things you said. If you make the request you suggest you get this error, implying you need to do it per-object rather than for all contacts. Is that what you meant? What are my options instead? Can I use something from v1 or v2 to get all events (at least all contact events), with filtering based on date?

Two years later, still looking for a solution here. My first thought is to use something like Segment instead of Hubspot for web visit data per contact.