APIs & Integrations

EReis
Participant

Endpoint to count the number of deals and tickets

SOLVE

Is there a similar endpoint like this:

https://api.hubapi.com/contacts/v1/contacts/statistics?hapikey=demo

described here:

https://legacydocs.hubspot.com/docs/methods/contacts/get-contacts-statistics

to count the number of deals and tickets (or other objects)? 

0 Upvotes
1 Accepted solution
webdew
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Endpoint to count the number of deals and tickets

SOLVE

Hi @EReis ,

Unfortunately this statistics api is just for contacts .although you can use get all tickets api in code and then execute the result through for loop and then store the count in any variable.

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

View solution in original post

2 Replies 2
webdew
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Endpoint to count the number of deals and tickets

SOLVE

Hi @EReis ,

Unfortunately this statistics api is just for contacts .although you can use get all tickets api in code and then execute the result through for loop and then store the count in any variable.

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.

EReis
Participant

Endpoint to count the number of deals and tickets

SOLVE

Thanks a lot!