Getting contacts statics ??

Spoiler

I have an account in hubspot and when I test this in postman : it give valid number of total contact.

https://api.hubapi.com/contacts/v1/contacts/statistics

authorization : bearer token: Mytoken

{

“contacts”: 5,

“lastNewContactAt”: 1708790642763

}

But when I try to test the same api with my company account and using their token I get contacts 0

{

“contacts”: 0

}

, and If I try to loop over the hole contacts and using pagination I get a valid result 5004 . using this url

"https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=false&properties=email,jobtitle,experience,"’ . but the probleme is that takes so long(over 15 second in postman) and I want to use the total number of contacts in my frontEnd.

Where is the probleme here ?

Thanks in advance

Hey, @Lna91 :waving_hand: I hope you made some progress. If not, let try using your Company auth token and making the same request to the same endpoint. Your example uses at least two different examples using different auth tokens.

Can you use your Company token (OAuth or Private App) and make requests to both of the endpoints you listed, please? And share your request and response here.

Endpoints to test using your company token:

Thanks for the additional information! — Jaycee