Get records added to a list after a certain timestamp


#1

Anyone have an example of how to use the contacts/v1/lists/:list_id/contacts/recent API call to get records added since a certain timestamp?

I have Smart List that I’m checking every 30 minutes, I only want to retrieve contacts that were added to that list since the last time I checked.


#2

Hi @BrianF

There’s a more details explanation for how to poll for recently added contacts here:
http://developers.hubspot.com/docs/faq/how-do-i-use-vidoffset-and-timeoffset

That endpoint will always start with the most recently added records, so you’d need to use the vid-offset and time-offset to page backwards, until you get to a time-offset that’s earlier that the last time you checked.


#3

OK thank you

Seems a but clunky that you can’t just pass in a timestamp and get all the record created since then on the first call, is this something that could be added in future rev’s?