API only returns 10 rows, we need full data.

Hello,

So I am trying to create an API that extracts all entries in our custom object. In my post call, I have this link

https://api.hubapi.com/crm/v3/objects/2-32705690?associations=deal

But the problem here, it only returns 10 rows.

1. Is there a way to return all data?

2. Is it possible to extract only the custom objects created at a specific time frame? Our plan is to extract every 15 mins.

Thank you!

Hi @ELazo,

You can increase the amount of results returned but only up to 100. You can do this by adding ?limit=100 parameter, i.e.

https://api.hubapi.com/crm/v3/objects/2-32705690?limit=100

In order to return all of the results, you will need to utilize the “after” paramater for getting the next page of results and loop through the results there are no more pages of results.

If you would like to retrieve custom objects with specific criteria, you will need to utilize the CRM Search API

Since you are planning on extracting data every 15 min, you can also look into using webhooks in HubSpot workflows.