# Why is the Meeting ID sometimes a string and sometimes a long?

**URL:** <https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009>\
**Category:** API and Webhooks\
**Created:** [June 11, 2020, 12:56am UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009 "2020-06-11T00:56:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matsukaz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matsukaz/32/10290_2.png) [@matsukaz](https://devforum.zoom.us/u/matsukaz)\
**Post date:** [June 11, 2020, 12:56am UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/1 "2020-06-11T00:56:09Z")

</div>

**Description**  
According to the document, some API defines Meeting ID as string, but the other API defines as long.  
For example, `/metrics/meetings` returns Meeting ID as long, and `/users/{userId}/meetings` as string.  
Why is it not the same data type?

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [June 13, 2020, 12:36am UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/2 "2020-06-13T00:36:27Z")

</div>

Hi @matsukaz, Meeting IDs should be interpreted as long, as they can be 11 digits. We’ll take a look at the documentation to make sure we’re updated. Thanks!

cc: @shrijana.g

---

<div class="post-metadata">

**Author:** ![matsukaz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matsukaz/32/10290_2.png) [@matsukaz](https://devforum.zoom.us/u/matsukaz)\
**Post date:** [June 13, 2020, 1:42am UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/3 "2020-06-13T01:42:36Z")

</div>

Thank you for your reply!  
It seems that not only the documentation but also the API itself are handling Meeting ID as string.  
Hope it gets fixed soon, thanks. 😀

---

<div class="post-metadata">

**Author:** ![shrijana.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shrijana.g/32/605_2.png) [@shrijana.g](https://devforum.zoom.us/u/shrijana.g)\
**Post date:** [June 15, 2020, 1:45pm UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/4 "2020-06-15T13:45:03Z")

</div>

@matsukaz @michael.zoom Unfortunately, this is a known issue caused by design differences early on. The engineering team will be fixing it in the future, but it stands as a low priority bug. In the meantime, please convert the Meeting ID to a consistent data type while storing it in your db to avoid errors. 🙂

Thank you,  
Shrijana

---

<div class="post-metadata">

**Author:** ![matsukaz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matsukaz/32/10290_2.png) [@matsukaz](https://devforum.zoom.us/u/matsukaz)\
**Post date:** [June 17, 2020, 12:32am UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/5 "2020-06-17T00:32:17Z")

</div>

HI @shrijana.g ,OK I understand.  
I’ll handle Meeting ID as string for now.  
Thank you.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 19, 2020, 6:22am UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/6 "2020-06-19T06:22:05Z")

</div>

Let us know if you have additional questions @matsukaz! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:08pm UTC](https://devforum.zoom.us/t/why-is-the-meeting-id-sometimes-a-string-and-sometimes-a-long/21009/7 "2020-08-21T22:08:54Z")

</div>

Closed on August 21, 2020, 10:08pm UTC


