# Can't get all contacts from api

**URL:** <https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [February 8, 2019, 2:31pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870 "2019-02-08T14:31:03Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 8, 2019, 2:31pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/1 "2019-02-08T14:31:03Z")

</div>

Hi all,

I’m developing a little app under Google appscript. I have 19 contacts in my portal,

but when i call [api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=](http://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=)[my\_key]&count=100 i get only 11 of them.

Anybody with the same issue?

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 8, 2019, 6:15pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/2 "2019-02-08T18:15:16Z")

</div>

Ok so.. i was searching differences between contacts returned from api and the one not returned.

All the not returned ones are coming from Chat Bot source !

The returned contacts instead are from other sources like ads, site forms, manual and others.

What can i do?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 8, 2019, 7:48pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/3 "2019-02-08T19:48:42Z")

</div>

Hi, @jakino.

That sounds strange! Could you share links to some of these “missing” contacts?

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 8, 2019, 9:02pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/4 "2019-02-08T21:02:21Z")

</div>

These are examples:

> **[HubSpot](https://app.hubspot.com/contacts/5427796/contact/52801)**

> **[HubSpot](https://app.hubspot.com/contacts/5427796/contact/39001)**

These contacts are returned individually by GET /contacts/v1/contact/vid/:vid/profile , but they are not returned by GET /contacts/v1/lists/all/contacts/all (with count=100) .

I can provide apikey in PM.

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 12, 2019, 2:31pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/5 "2019-02-12T14:31:06Z")

</div>

I’m trying to solve this problem, but i’m using contacts api with only two parameters : hapikey and count =100, and i can’t get all the contacts created by chatbot. I’m comparing json strings got from direct browser url call to avoid any personal coding error… I think this is an hubspot api issue. Can you please test it?

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 12, 2019, 5:17pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/6 "2019-02-12T17:17:29Z")

</div>

Hi, @jakino.

Apologies for the delayed response.

You’re not doing anything wrong; I can reproduce the issue as well. I’ll be reaching out to the product team and we’ll investigate the behavior further.

Thank you for your continued patience.

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 12, 2019, 5:25pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/7 "2019-02-12T17:25:58Z")

</div>

Nice ty

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 25, 2019, 4:48pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/8 "2019-02-25T16:48:12Z")

</div>

Any news??

I can’t develop any app if your APIs are’s working..

Thank you for your work.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 25, 2019, 5:08pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/9 "2019-02-25T17:08:11Z")

</div>

Hi, @jakino.

Sincere apologies for how long this has taken.

Late last week, one of our engineers found and resolved the issue with bot-sourced contacts, so newly-created contacts should _not_ be affected.

We are still working to backfill and resolve the behavior for existing contacts, however. I’ve reminded him that this is an ongoing issue for you, so I suspect he will be working on it today.

Thank you again for reporting this and for your continued patience.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 26, 2019, 10:14pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/10 "2019-02-26T22:14:36Z")

</div>

Hi, @jakino.

All bot-created contacts should now be returned via the _Get all contacts_ endpoint!

If you find this isn’t the case, could you share a link to an example contact?

Thanks again for your patience throughout this process.

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 27, 2019, 6:24am UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/11 "2019-02-27T06:24:45Z")

</div>

Ok so..

I see 99 contacts on hubspot interface.

Every contacts has one deal: deals are 74, so the interface is returning some duplicate contacts, i don’t know why.

Api return 74 contacts, so it is working.

I have an interface issue now.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 27, 2019, 12:56pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/12 "2019-02-27T12:56:08Z")

</div>

Hi, @jakino.

Per my last message, could you please provide a link or an email of a contact who is not appearing in either the API or in the interface. I can’t investigate further without specific examples.

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 27, 2019, 1:36pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/13 "2019-02-27T13:36:57Z")

</div>

Api is ok.

Web interface is returning duplicate contacts. Some examples:

> **[HubSpot](https://app.hubspot.com/contacts/5427796/contact/84151/)**

> **[HubSpot](https://app.hubspot.com/contacts/5427796/contact/208251/)**

> **[HubSpot](https://app.hubspot.com/contacts/5427796/contact/12201/)**

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 27, 2019, 10:20pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/14 "2019-02-27T22:20:01Z")

</div>

Thank you for including those links, @jakino, however I’m still unsure as to what you mean by “duplicate contacts.”

[HubSpot deduplicates](https://knowledge.hubspot.com/articles/kcs_article/contacts/deduplication-of-contacts-companies-deals-tickets) contact records by `email` address, so no two contacts can have the same email address, however one real-life person could have two different email addresses and thus two separate contact records.

Is that what you’re seeing? Like with two contacts named “Alessia,” for example?

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [February 28, 2019, 7:17am UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/15 "2019-02-28T07:17:48Z")

</div>

The problem is on the client side I think.

I see a total of 104 contacts on contacts panel.

( [Loading...](https://app.hubspot.com/contacts/5427796/contacts/list/view/all/) )

The problem is : i don’t have 104 contacts. I have 79 contacts.

In the contacts panel some of them are duplicated: same email, name, number , ect.

If i order them by name, i can see duplicated ones easily. They are exactly the same.

When i search for one of them in the search bar, only one is returned, so it’s a bit weird.

Screen as POC.

 ![hubspot1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/6/d6c03b927df3c2560182750a3df3421fa760349b.png)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [February 28, 2019, 1:16pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/16 "2019-02-28T13:16:21Z")

</div>

Ah, I see, @jakino! Thanks for documenting this. It’s certainly strange behavior where merged contact records still appear separately the contact home page.

I’ll share this with the team so we can get it sorted out.

---

<div class="post-metadata">

**Author:** ![jakino](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakino/32/59606_2.png) [@jakino](https://community.hubspot.com/u/jakino)\
**Post date:** [March 1, 2019, 7:27am UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/17 "2019-03-01T07:27:45Z")

</div>

Ty.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [March 1, 2019, 12:51pm UTC](https://community.hubspot.com/t/cant-get-all-contacts-from-api/12870/18 "2019-03-01T12:51:47Z")

</div>

Hi, @jakino.

Thanks for your patience.

The “duplicate” contacts should no longer appear in account 5427796. I now see **81** contacts listed on [this page](https://app.hubspot.com/contacts/5427796/contacts/list/view/all/). Can you confirm whether the issue is resolved on your end?
