I need to get all contacts in from API and as HubSpot only let 100 contacts per request, I need to get pagination done in Postman. Is this possible to set up pagination in Postman and save all results in a big file?
I am new to the Postman and have no idea even if this is possible or not.
Hi @pan999, to my knowledge you can't do this programmatically in Postman. You'll need to manually enter the offset values to get the next set of contacts in each request. I created a pagination tool in NodeJS that I pushed to GitHub that you can check out as a simple example: https://github.com/cbarley10/hubspot-pagination. It does exactly what you describe.
Thanks for the pagination tool. I have got this working but I'm wondering if it is possible to modify the script to pull merged-vids? I'm trying to compile a list of all contacts that have been merged within our portal. As merged-vids isn't an actual contact property the tool doesn't return any contacts if use that as the contact property parameter.
Any thoughts much appreciated!
Matthew Shepherd
Freelance HubSpot Consultant CRM Consultant | SEO Specialist