# Total duration participants

**URL:** <https://devforum.zoom.us/t/total-duration-participants/42023>\
**Category:** API and Webhooks\
**Created:** [January 30, 2021, 3:12pm UTC](https://devforum.zoom.us/t/total-duration-participants/42023 "2021-01-30T15:12:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoringUsername](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boringusername/32/22328_2.png) [@BoringUsername](https://devforum.zoom.us/u/BoringUsername)\
**Post date:** [January 30, 2021, 3:12pm UTC](https://devforum.zoom.us/t/total-duration-participants/42023/1 "2021-01-30T15:12:17Z")

</div>

I’m having a hard time understanding why the total `duration` for _registered_ participants is not a sum of all the signon/signoff periods within a meeting. Here’s the result for `/report/meetings/{meeting_id}/participants`:

```auto
[page_count] => 1
    [page_size] => 300
    [total_records] => 5
    [next_page_token] => 
    [participants] => Array
        (
            [0] => Array
                (
                    [id] => vuQwNUXKT0etpB0sksCJQA
                    [user_id] => 16778240
                    [name] => <host name>
                    [user_email] => zoom.host@ourdomain.com
                    [join_time] => 2021-01-30T13:00:49Z
                    [leave_time] => 2021-01-30T13:03:22Z
                    [duration] => 153
                    [attentiveness_score] => 
                )

            [1] => Array
                (
                    [id] => FLA4epaiSFiPZjCpxq9EgA
                    [user_id] => 16779264
                    [name] => Attendee 1 Name
                    [user_email] => attendee1@ourdomain.com
                    [join_time] => 2021-01-30T13:01:14Z
                    [leave_time] => 2021-01-30T13:01:31Z
                    [duration] => 17
                    [attentiveness_score] => 
                )

            [2] => Array
                (
                    [id] => FLA4epaiSFiPZjCpxq9EgA
                    [user_id] => 16780288
                    [name] => Attendee 1 Name
                    [user_email] => attendee1@ourdomain.com
                    [join_time] => 2021-01-30T13:01:31Z
                    [leave_time] => 2021-01-30T13:02:17Z
                    [duration] => 46
                    [attentiveness_score] => 
                )

            [3] => Array
                (
                    [id] => KGkiUe8SSYyF1NKb6ot7GQ
                    [user_id] => 16781312
                    [name] => Attendee 2 Name
                    [user_email] => attendee2@ourdomain.com
                    [join_time] => 2021-01-30T13:02:50Z
                    [leave_time] => 2021-01-30T13:02:58Z
                    [duration] => 8
                    [attentiveness_score] => 
                )

            [4] => Array
                (
                    [id] => KGkiUe8SSYyF1NKb6ot7GQ
                    [user_id] => 16782336
                    [name] => Attendee 2 Name
                    [user_email] => attendee2@ourdomain.com
                    [join_time] => 2021-01-30T13:02:59Z
                    [leave_time] => 2021-01-30T13:03:17Z
                    [duration] => 18
                    [attentiveness_score] => 
                )

        )

```

As you can see, both `Attendee 1` and `Attendee 2` have both signed on/off two times. Zoom _sees_ that these are the same participant (same id), yet, why do they get different entries, and is their `duration` not just added up?

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [February 1, 2021, 2:46pm UTC](https://devforum.zoom.us/t/total-duration-participants/42023/2 "2021-02-01T14:46:41Z")

</div>

Hey @BoringUsername,

The reason it is listed as two seperate entries is so that you can easily see what sections of the meeting each participant was there for. For example, if I wanted to see if John Was in my meeting for a particular part of a presentation, I could see what times he joined and left, and determine whether he was present. If all I have is a generic ‘duration’, I have no idea what part of the meeting he was present for.

I’m not 100% sure what your use case is, however it should be pretty easy to iterate over the participants and add up their durations, if you need such data.

It would make a good #feature-requests to have a column names ‘total\_duration’ which lists the total number of minutes an attendee was live for.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![BoringUsername](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boringusername/32/22328_2.png) [@BoringUsername](https://devforum.zoom.us/u/BoringUsername)\
**Post date:** [February 1, 2021, 3:30pm UTC](https://devforum.zoom.us/t/total-duration-participants/42023/3 "2021-02-01T15:30:56Z")

</div>

Thanks @alexmayo, for confirming this. Indeed, it’s very simple to calculate the total duration, because that’s my use case: attendees need to participate a minimum duration. The only problem I have with this, is that the number of entries may get pretty big. You can only get max 300 per API call, and with a 100 participants you can easily go over that limit, meaning more API calls for just the totals.

Side note: I didn’t notice it at first, but the `user_id` changes for each section, the `id` stays the same.

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [February 1, 2021, 3:32pm UTC](https://devforum.zoom.us/t/total-duration-participants/42023/4 "2021-02-01T15:32:23Z")

</div>

Right. I can certainly see the advantage of having a `total_duration` property for retrieved results. I would personally post in the #feature-requests section, so that it get seen by the development team. 👍

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 1, 2021, 10:11pm UTC](https://devforum.zoom.us/t/total-duration-participants/42023/5 "2021-02-01T22:11:26Z")

</div>

Hey @alexmayo,

Thank you for the assist! Let me know if you have any questions @BoringUsername.

Thanks,  
Max

---

<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:** [March 4, 2021, 8:11am UTC](https://devforum.zoom.us/t/total-duration-participants/42023/6 "2021-03-04T08:11:55Z")

</div>

Closed on March 4, 2021, 8:11am UTC

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