APIs & Integrations

MPallot
Member

API returning the same contacts

SOLVE

Hello, I am very new to using APIs so please excuse me if this is a basic question.

 

I am trying to call all our contacts from Hubspot using the following URL:

 

https://api.hubapi.com/crm/v3/objects/contacts? limit=100 &properties=... &paginateAssociations=true &archived=false&hapikey=...

 

But we have more than 100 contacts but when I try to increase this limit I don't call any contacts (I assume due to the limit of 100/10 seconds) (HTTP/1.1 400 Bad Request)

 

So what do I need to change in my URL or workflow to call the second page of contacts as opposed to the first page again?

 

Thanks

0 Upvotes
1 Accepted solution
DRousselin
Solution
Participant

API returning the same contacts

SOLVE

This GET request returns you a JSON object including the paging details : {paging.next.after}
So, you have to include in your link : &after={paging.next.after}
Here is the documentation link for contacts : https://developers.hubspot.com/docs/api/crm/contacts (select Endpoints tab)

View solution in original post

0 Upvotes
1 Reply 1
DRousselin
Solution
Participant

API returning the same contacts

SOLVE

This GET request returns you a JSON object including the paging details : {paging.next.after}
So, you have to include in your link : &after={paging.next.after}
Here is the documentation link for contacts : https://developers.hubspot.com/docs/api/crm/contacts (select Endpoints tab)

0 Upvotes