# Getting contacts statics ??

**URL:** <https://community.hubspot.com/t/getting-contacts-statics/102762>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [March 17, 2024, 12:15pm UTC](https://community.hubspot.com/t/getting-contacts-statics/102762 "2024-03-17T12:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lna91](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@Lna91](https://community.hubspot.com/u/Lna91)\
**Post date:** [March 17, 2024, 12:15pm UTC](https://community.hubspot.com/t/getting-contacts-statics/102762/1 "2024-03-17T12:15:56Z")

</div>

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](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.](https://api.hubapi.com/crm/v3/objects/contacts?limit=100&archived=false&properties=email,jobtitle,experience,%22)

Where is the probleme here ?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 19, 2024, 9:20pm UTC](https://community.hubspot.com/t/getting-contacts-statics/102762/2 "2024-03-19T21:20:13Z")

</div>

Hey, @Lna91 👋 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:

- [GET all contacts](https://developers.hubspot.com/docs/api/crm/contacts#:~:text=To%20request%20a%20list%20of%20all%20contacts)
- [Get Contacts Statistics](https://legacydocs.hubspot.com/docs/methods/contacts/get-contacts-statistics)

Thanks for the additional information! — Jaycee
