# Get 'n' longest zoom sessions by participants

**URL:** <https://devforum.zoom.us/t/get-n-longest-zoom-sessions-by-participants/49319>\
**Category:** API and Webhooks\
**Created:** [April 30, 2021, 8:06pm UTC](https://devforum.zoom.us/t/get-n-longest-zoom-sessions-by-participants/49319 "2021-04-30T20:06:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maheshkumar.natamai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maheshkumar.natamai/32/26616_2.png) [@maheshkumar.natamai](https://devforum.zoom.us/u/maheshkumar.natamai)\
**Post date:** [April 30, 2021, 8:06pm UTC](https://devforum.zoom.us/t/get-n-longest-zoom-sessions-by-participants/49319/1 "2021-04-30T20:06:49Z")

</div>

**Description**  
What is the best way to go about creating a leaderboard of participants from a zoom meeting based on their longest continuous session in a meeting in one week (any rolling 7 day period)?

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Additional context**  
I was originally thinking of doing this with event subscriptions, using the participant join event and participant leave event to keep track of the longest session, but I don’t know if there is a better way, or if there is a way to accomplish this with historical data. The meetings are open 24/7.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [May 3, 2021, 4:16pm UTC](https://devforum.zoom.us/t/get-n-longest-zoom-sessions-by-participants/49319/2 "2021-05-03T16:16:43Z")

</div>

Hi @maheshkumar.natamai,

For this, I would recommend leveraging our List Meeting Participants API:

> **[List meeting participants - Dashboards - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/dashboards/dashboardmeetingparticipants)**
>
> Get a list of participants from live or past meetings.
> If you do not provide the type query parameter, the default value will be set to live and thus, y...

This endpoint returns a join and leave time for each participant, and can be called on Live meetings as well as past meetings.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 3, 2021, 2:17am UTC](https://devforum.zoom.us/t/get-n-longest-zoom-sessions-by-participants/49319/3 "2021-06-03T02:17:02Z")

</div>

Closed on June 3, 2021, 2:17am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
