# Unable to paginate using next\_page\_token when calling /report/webinars/{webinarId}/participants

**URL:** <https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553>\
**Category:** API and Webhooks\
**Created:** [August 17, 2019, 3:26am UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553 "2019-08-17T03:26:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nelson/32/1178_2.png) [@nelson](https://devforum.zoom.us/u/nelson)\
**Post date:** [August 17, 2019, 3:26am UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/1 "2019-08-17T03:26:07Z")

</div>

I am connecting to /report/webinars/{webinarId}/participants to retrieve a participant report.

the total\_records is 3, so when I retrieve it with a page\_size \>= 3, all is fine.

However if I change the page\_size \< 3, e.g. if I send to:

/report/webinars/{webinarId}/participants?page\_size=2

Then I get 2 results back with a next\_page\_token.

If I then make a request to :  
/report/webinars/{webinarId}/participants?page\_size=2&next\_page\_token={next\_page\_token}

I get the same 1st 2 results again. I tried omitting the page\_size in case that is the issue:

/report/webinars/{webinarId}/participants?next\_page\_token={next\_page\_token}

But that returns error code 300 (The next page token is invalid or expired).

I am using a JWT to access, if it matters.

---

<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:** [August 19, 2019, 7:23pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/2 "2019-08-19T19:23:14Z")

</div>

Hey @nelson, thanks for reaching out and using Zoom!

Correct, when you do not include the `page_size` with the `next_page_token` you get a `The next page token is invalid or expired` error. You must use both when paginating.

As for your issue of getting the 1st 2 results again when using the `next_page_token`, I was unable to reproduce this issue. Pagination worked as intended when I tried.

[Are you passing in the webinarId or the webinarUUID?](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportwebinarparticipants#request-parameters)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nelson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nelson/32/1178_2.png) [@nelson](https://devforum.zoom.us/u/nelson)\
**Post date:** [August 20, 2019, 5:50pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/3 "2019-08-20T17:50:43Z")

</div>

I am passing the webinarId (not the webinarUUID). I am still having this issue. Is there a minimum page\_size that pagination will work at? Are you using JWT? And does it matter if I regenerate a new JWT for each request?

---

<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:** [August 20, 2019, 8:46pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/4 "2019-08-20T20:46:23Z")

</div>

Hey @nelson,

Yes I am using JWT, and I just tested generating a new JWT for each request and that all works as expected.

What is the webinarId so I can take a closer look?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nelson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nelson/32/1178_2.png) [@nelson](https://devforum.zoom.us/u/nelson)\
**Post date:** [August 22, 2019, 2:06pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/5 "2019-08-22T14:06:03Z")

</div>

The webinar ID is 847-288-134

---

<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:** [August 22, 2019, 9:17pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/6 "2019-08-22T21:17:02Z")

</div>

Thanks @nelson,

Were the participants users on your Zoom account, or external participants?

---

<div class="post-metadata">

**Author:** ![nelson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nelson/32/1178_2.png) [@nelson](https://devforum.zoom.us/u/nelson)\
**Post date:** [August 22, 2019, 9:18pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/7 "2019-08-22T21:18:31Z")

</div>

One of them was an internal user, but the other one was an external one.

---

<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:** [August 22, 2019, 9:31pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/8 "2019-08-22T21:31:10Z")

</div>

Thanks, still can’t reproduce.

Can you send me your request url for each page, and the corresponding responses?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nelson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nelson/32/1178_2.png) [@nelson](https://devforum.zoom.us/u/nelson)\
**Post date:** [August 23, 2019, 5:48pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/9 "2019-08-23T17:48:34Z")

</div>

Thanks for the help. I managed to figure it out. The problem was with the separator in the query string. Due to some historical reason, my code was generating:

`https://api.zoom.us/v2/report/webinars/847288134/participants?page_size=1&amp;next_page_token=xxxxxxxxxx`

instead of the correct

`https://api.zoom.us/v2/report/webinars/847288134/participants?page_size=1&next_page_token=xxxxxxxxxx`

---

<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:** [August 23, 2019, 7:14pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/10 "2019-08-23T19:14:38Z")

</div>

Happy to help @nelson!

Glad the issue was resolved 🙂

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, 6:39pm UTC](https://devforum.zoom.us/t/unable-to-paginate-using-next-page-token-when-calling-report-webinars-webinarid-participants/5553/11 "2020-08-21T18:39:18Z")

</div>

Closed on August 21, 2020, 6:39pm UTC


