APIs & Integrations

kajalna
Member

Get data for objects within specified date range

Is it possible to get data within specific date range.
For eg: http://developers.hubspot.com/docs/methods/contacts/get_contact
Above url describes to get data of all contacts. Is there any way or parameters to be appended in url so that we can get data within specified date range.

According to one of the solution on forum using : “https://api.hubapi.com/contacts/v1/lists/recently_updated/contacts/recent?hapikey=xxxx&timeOffset=xx...” ; which provides contacts below the specified timeOffset. I do not require data as below certain timeOffset. I want data returned to be either above specified timeOffset or between two timeOffsets
So is it possible so that I can get contacts created or updated between specified timeOffset ?

0 Upvotes
2 Replies 2
Dadams
HubSpot Employee
HubSpot Employee

Get data for objects within specified date range

Hi @kajalna

There is not a way to get the records created or updated between to specific times. Any of the recently updated or created endpoints start with the most recently updated records, and page backwards from there, so you’d need to page backwards until you have the records updated after the earliest time you’re looking for, and then filter out the records updated after the latest time that you’re looking for. We have more details on paging through the recent contacts using the offsets here:
http://developers.hubspot.com/docs/faq/how-do-i-use-vidoffset-and-timeoffset

0 Upvotes
accuranker
Member

Get data for objects within specified date range

That is really a shame. Is it something that will be available at some point ?

0 Upvotes