# Number of Participants present

**URL:** <https://devforum.zoom.us/t/number-of-participants-present/102001>\
**Category:** Twilio Migration\
**Tags:** video-sdk\
**Created:** [January 17, 2024, 4:40pm UTC](https://devforum.zoom.us/t/number-of-participants-present/102001 "2024-01-17T16:40:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krunalrgupta15](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/krunalrgupta15/32/55503_2.png) [@krunalrgupta15](https://devforum.zoom.us/u/krunalrgupta15)\
**Post date:** [January 17, 2024, 4:40pm UTC](https://devforum.zoom.us/t/number-of-participants-present/102001/1 "2024-01-17T16:40:03Z")

</div>

Hey Zoom team , I have searching for the function which can give me the 'Number of participants ’ present in the zoom video sdk web, but unable to find it in the documentation.

I know there are some events such as user-added, user-removed etc but I specifically want the Participants count in the video call  
In twilio we get the participants count but unable to find it on zoom  
So can you plz help me with that.

---

<div class="post-metadata">

**Author:** ![james.coon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/james.coon/32/54396_2.png) [@james.coon](https://devforum.zoom.us/u/james.coon)\
**Post date:** [January 17, 2024, 5:08pm UTC](https://devforum.zoom.us/t/number-of-participants-present/102001/2 "2024-01-17T17:08:23Z")

</div>

Hey, @krunalrgupta15!

Currently, the Zoom Video SDK supports **up to 1,000 participants** in a session. To find out how many participants are currently in a session programmatically, the function may differ based on the SDK that you’re currently using; however, for our Web SDK, you can call [`getAllUser()`](https://marketplacefront.zoom.us/sdk/custom/web/modules/VideoClient.html#getAllUser), which will return an array of all current in-session participants.

Please let me know if you have any further questions!

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![krunalrgupta15](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/krunalrgupta15/32/55503_2.png) [@krunalrgupta15](https://devforum.zoom.us/u/krunalrgupta15)\
**Post date:** [January 18, 2024, 5:22am UTC](https://devforum.zoom.us/t/number-of-participants-present/102001/3 "2024-01-18T05:22:46Z")

</div>

Thanks for replying James,  
Yeah I am using that function but it give doesn’t give the “Number of Participants” → numerically

And one more thing the ‘getAllUser()’ giving us the garbage values sometimes like  
if user leave and joined continously it can give me the garbage value.  
So can you guide me how to deal with it.

---

<div class="post-metadata">

**Author:** ![krunalrgupta15](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/krunalrgupta15/32/55503_2.png) [@krunalrgupta15](https://devforum.zoom.us/u/krunalrgupta15)\
**Post date:** [January 26, 2024, 7:43am UTC](https://devforum.zoom.us/t/number-of-participants-present/102001/4 "2024-01-26T07:43:59Z")

</div>

@james.coon hey any for suggestions for above question

---

<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:** [February 13, 2024, 5:12pm UTC](https://devforum.zoom.us/t/number-of-participants-present/102001/5 "2024-02-13T17:12:46Z")

</div>

Hey @krunalrgupta15 ,

You can simply filter out the duplicate users if there were some that left and joined multiple times. For example:

```js
var result = client.getAllUser().reduce((unique, o) => {
    if(!unique.some(obj => obj.label === o.label && obj.value === o.value)) {
      unique.push(o);
    }
    return unique;
},[]);

console.log(result);

```

> <https://stackoverflow.com/questions/45439961/remove-duplicate-values-from-an-array-of-objects-in-javascript/45440277#45440277>

Best,  
Tommy
