APIs & Integrations

basware_hubspot
Member

Contacts API Pagination in Postman

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.

0 Upvotes
2 Replies 2
cbarley
HubSpot Alumni
HubSpot Alumni

Contacts API Pagination in Postman

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.

0 Upvotes
MatthewShepherd
Key Advisor

Contacts API Pagination in Postman

Hi @cbarley 

 

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

Did my post help answer your query?Help the community by marking it as a solution.
0 Upvotes