# ID ranges

**URL:** <https://community.hubspot.com/t/id-ranges/16326>\
**Category:** APIs & Integrations\
**Tags:** companies, object, contacts\
**Created:** [September 19, 2019, 10:55am UTC](https://community.hubspot.com/t/id-ranges/16326 "2019-09-19T10:55:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannes-mue](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johannes-mue/32/59606_2.png) [@Johannes-mue](https://community.hubspot.com/u/Johannes-mue)\
**Post date:** [September 19, 2019, 10:55am UTC](https://community.hubspot.com/t/id-ranges/16326/1 "2019-09-19T10:55:49Z")

</div>

Hi,

What are is the generalized range for the IDs you expose in your API?

I would guess 1 to 4294967295, or 1 to 2147483647? (In the second case it seems you will run out of ID would seem space in the near future 🙂 )

Are there exceptions I need to consider that are outside that range?

Also, which IDs are globally unique, and which are only unique per account/company/ or any other related object?

I need to know this so I can choose the correct type to handle, and store the IDs in my integration.

Thanks,

Johannes M.

---

<div class="post-metadata">

**Author:** ![lscanlan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lscanlan/32/66262_2.png) [@lscanlan](https://community.hubspot.com/u/lscanlan)\
**Post date:** [September 25, 2019, 9:05pm UTC](https://community.hubspot.com/t/id-ranges/16326/2 "2019-09-25T21:05:11Z")

</div>

Hi @Johannes-mue,

Are you all set with this one? I see Derek responded to the thread here: [https://community.hubspot.com/t5/APIs-Integrations/ID-ranges/m-p/292333](https://community.hubspot.com/t5/APIs-Integrations/ID-ranges/m-p/292333), which looks like a duplicate. But let me know if you had any other questions.

---

<div class="post-metadata">

**Author:** ![Johannes-mue](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johannes-mue/32/59606_2.png) [@Johannes-mue](https://community.hubspot.com/u/Johannes-mue)\
**Post date:** [September 26, 2019, 4:51am UTC](https://community.hubspot.com/t/id-ranges/16326/3 "2019-09-26T04:51:37Z")

</div>

Hi Leland,

Yes, all good. This post got deleted/marked as spam for some reason, so I had to duplicate it. Apparently, it was restored now.

Regards,

Johannes M.
