# Paginated responses from the Zoom API

**URL:** <https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593>\
**Category:** API and Webhooks\
**Created:** [January 18, 2023, 1:17am UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593 "2023-01-18T01:17:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodolfoc](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rodolfoc](https://devforum.zoom.us/u/rodolfoc)\
**Post date:** [January 18, 2023, 1:17am UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593/1 "2023-01-18T01:17:59Z")

</div>

I requested using the next\_page\_token parameter to retrieve the next set of values (see below) But I am getting “{"code":400,"message":"The next page token is invalid or expired."}”. Am I using the wrong url address?

[https://api.zoom.us/v2/phone/users?next\_page\_token=wRdke7wmZdRGYjotWIPCWFXX5Z0XXh5sZ12](https://api.zoom.us/v2/phone/users?next_page_token=wRdke7wmZdRGYjotWIPCWFXX5Z0XXh5sZ12)"

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [January 18, 2023, 5:20am UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593/2 "2023-01-18T05:20:38Z")

</div>

Hi @rodolfoc ,

How long are you waiting before you use the next page token? The expiry time for next page token is 15 mins

---

<div class="post-metadata">

**Author:** ![rodolfoc](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rodolfoc](https://devforum.zoom.us/u/rodolfoc)\
**Post date:** [January 18, 2023, 7:10pm UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593/3 "2023-01-18T19:10:29Z")

</div>

Right way!  
Also I tried with the page number parameter but it is going to hundreds of pages even though the total records is about 600 so it should have been about a total of 30 pages by using the page\_size = 20  
[https://api.zoom.us/v2/phone/users?page\_size=20&page\_number](https://api.zoom.us/v2/phone/users?page_size=20&page_number) = page number iteration

---

<div class="post-metadata">

**Author:** ![rodolfoc](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rodolfoc](https://devforum.zoom.us/u/rodolfoc)\
**Post date:** [January 18, 2023, 9:43pm UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593/4 "2023-01-18T21:43:37Z")

</div>

Using the page number it returns same records even though I pass different page number as a parameter.

---

<div class="post-metadata">

**Author:** ![rodolfoc](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@rodolfoc](https://devforum.zoom.us/u/rodolfoc)\
**Post date:** [January 18, 2023, 10:13pm UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593/5 "2023-01-18T22:13:12Z")

</div>

So I found the solution regarding the next\_page\_token parameter. I just needed append it to the original call . I had excluded the page size parameter from the original call

---

<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:** [January 22, 2024, 1:50pm UTC](https://devforum.zoom.us/t/paginated-responses-from-the-zoom-api/81593/6 "2024-01-22T13:50:01Z")

</div>

Closed on January 22, 2024, 1:50pm UTC

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