Hi @mgrotton , it looks like you're using the get recently updated endpoint rather than the get all contacts endpoint. The get recently updated endpoint only scrolls back in time 30 days. If you want to get all contacts, you should use the second endpoint I linked. I would also recommend getting contacts 100 at a time (the max) so that you use less API calls.
Hi, the endpoint I posted about IS the get all endpoint. We're using the other in our script for 'catch up' runs, but those are meant to look at contacts less than 30 days old.
Also, since writing this question I've run the same process twice with no changes and the second time it actually did complete the scan.
Can't go with 100, because we are using data from the contacts to get information from another API and the combined processing time is long enough that processing more than a couple at a time would cause our PHP end of the process to time out.
Hi @mgrotton , apologies, I linked the wrong endpoint in the last message. However, the endpoint you posted https://api.hubapi.com/contacts/v1/lists/all/contacts/recent is to get recently created contacts: see the docs here. The docs state that if you're using this endpoint you need to use the vid-offset in conjunction with the time-offset parameters on each subsequent call.
I just ran my own portal through a tool I created and got all 1000 contacts back going 1 at a time: https://github.com/cbarley10/hubspot-pagination so it looks like that endpoint should be functioning correctly!
Edit: I see why you're using the recent endpoint if you only want to go back 30 days, but make sure you're also using the time-offset property as well as described by the docs on that endpoint