I’m looking to grab all deals within last year from the Hubspot API. I was able to do this using the search API to order deals by create date. However, I need to find archived deals which aren’t shown by the search API. I’m looking at the basic objects API (here), but I am not sure if this allows filtering by date. Does anyone know how to do this? (Using in Python)
For this you will just need to paginate through all of the object records via the api -- and use the archived flag. You should paginate through all of the records until you have them all, then you will need to reduce down your results based upon the create date.
make sure you set the archived Boolean to true in your api calls.
this will allow you to get all within the create date and not use search.
does this make sense?