APIs & Integrations

ssidda
Member

I want to know how many records left after making Hubspot get deals api call, How can I get count?

SOLVE

I am making hubspot deals api call, https://legacydocs.hubspot.com/docs/methods/deals/get-all-deals

Due to the api limit it is giving 250 records, If there are more records in your account than the limit= parameter, you will need to use the offset returned in the first request to get the next set of results. However, this doesn't provide us with a number left.

But I want to know how many records left. 

Is there any other way i can get total left records?

1 Accepted solution
hilton22
Solution
Contributor | Diamond Partner
Contributor | Diamond Partner

I want to know how many records left after making Hubspot get deals api call, How can I get count?

SOLVE

Hi @ssidda ,

 

I'm with @dennisedson in this one. At this moment, I dont know if there is a way to get this value without paginate all the records (considering the V2 and V3 Hubspot API versions).

 

But that would be a nice feature if we have in the JSON response array, a index showing the total of records or total of pages from the entity,

something like : "total_records": "100 of 10.000".

 

Maybe you should post that in the Hubspot forum of ideias.

 

You can count with my up vote on that! 🙂

 

Cheers,

View solution in original post

3 Replies 3
CBelga
Contributor | Platinum Partner
Contributor | Platinum Partner

I want to know how many records left after making Hubspot get deals api call, How can I get count?

SOLVE

If you ave access to the CRM development, you can use the GraphiQL to quuery to an object and get the total number of records in the object. 

0 Upvotes
hilton22
Solution
Contributor | Diamond Partner
Contributor | Diamond Partner

I want to know how many records left after making Hubspot get deals api call, How can I get count?

SOLVE

Hi @ssidda ,

 

I'm with @dennisedson in this one. At this moment, I dont know if there is a way to get this value without paginate all the records (considering the V2 and V3 Hubspot API versions).

 

But that would be a nice feature if we have in the JSON response array, a index showing the total of records or total of pages from the entity,

something like : "total_records": "100 of 10.000".

 

Maybe you should post that in the Hubspot forum of ideias.

 

You can count with my up vote on that! 🙂

 

Cheers,

dennisedson
HubSpot Product Team
HubSpot Product Team

I want to know how many records left after making Hubspot get deals api call, How can I get count?

SOLVE

Hi @ssidda ,

I do not think there is a way to return just that without looping through all of them.

@hilton22 , @RMones  feel free to correct me if I am wrong!

0 Upvotes