# Issue with Pagination - Ignoring parameters

**URL:** <https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917>\
**Category:** API and Webhooks\
**Created:** [February 6, 2020, 5:01pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917 "2020-02-06T17:01:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcheung](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tcheung/32/3157_2.png) [@tcheung](https://devforum.zoom.us/u/tcheung)\
**Post date:** [February 6, 2020, 5:01pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/1 "2020-02-06T17:01:44Z")

</div>

I am working on an OAuth application that collects data from our instance.  
I am starting with the users object.

I have logic that generates the paginated URL.

[https://api.zoom.us//v2/users?page\_number=1&page\_size=200](https://api.zoom.us//v2/users?page_number=1&page_size=200)  
[https://api.zoom.us//v2/users?page\_number=2&page\_size=200](https://api.zoom.us//v2/users?page_number=2&page_size=200)  
…ect…

However, no matter what the parameters are generated for page\_number and page\_size, it always returns the same set of records, with page\_number =1

Should the API return an empty set when I exceed the page count for the request, or is that supposed to be tracked within the application?

---

<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 6, 2020, 7:43pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/2 "2020-02-06T19:43:48Z")

</div>

Hey @tcheung, thanks for posting and using Zoom!

Do you have over 200 users? If not, try testing with a `"page_size"` of 1:

`https://api.zoom.us/v2/users?page_size=1&page_number=1`

> [@tcheung](#):
>
> Should the API return an empty set when I exceed the page count for the request, or is that supposed to be tracked within the application?

The `"page_count"` property lets you know how many pages of `"page_size"` there are.

An empty `"users"` array will also be returned once you reach the end of the list.

Also try removing the second slash `/` after `us`.

Have you tested this in postman?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tcheung](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tcheung/32/3157_2.png) [@tcheung](https://devforum.zoom.us/u/tcheung)\
**Post date:** [February 6, 2020, 7:45pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/3 "2020-02-06T19:45:54Z")

</div>

I have tested with page size = 1. Paging works fine until the page number goes past the number of users, and then it just continues to return the last user, regardless of the page number entered.

---

<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 6, 2020, 7:49pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/4 "2020-02-06T19:49:36Z")

</div>

Hey @tcheung, I see.

That is strange, it should be an empty users array.

For the last instance, does the “page\_count” match with the “page\_number”? Also are you specifying the `status` [query param](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users#request-parameters)?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tcheung](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tcheung/32/3157_2.png) [@tcheung](https://devforum.zoom.us/u/tcheung)\
**Post date:** [February 6, 2020, 8:00pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/5 "2020-02-06T20:00:02Z")

</div>

I’ve tried it with and without a status parameter set.  
The page\_count does match the page\_number on the final record in the result set, and continues to do so as the page\_number in the parameter increases.

---

<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 6, 2020, 8:09pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/6 "2020-02-06T20:09:44Z")

</div>

Hey @tcheung,

I cannot reproduce this issue.

Can you possibly send me a video of this in postman, and send me your App Name? So I can look at the logs?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tcheung](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tcheung/32/3157_2.png) [@tcheung](https://devforum.zoom.us/u/tcheung)\
**Post date:** [February 6, 2020, 8:19pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/7 "2020-02-06T20:19:29Z")

</div>

The app is the CozyRoc integration app: [https://marketplace.zoom.us/apps/QjsWWznaQ3uurbzj43F-Og](https://marketplace.zoom.us/apps/QjsWWznaQ3uurbzj43F-Og) which I’m using to build a SQL Server Integration Services integration.

I’m not sure what Postman is, I can get you a Fiddler log of the request and replies, if you have somewhere I can send it to.

---

<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 6, 2020, 8:33pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/8 "2020-02-06T20:33:50Z")

</div>

Hey @tcheung,

Thanks, we will look into this and get back to you! Don’t worry about postman.

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, 7:14pm UTC](https://devforum.zoom.us/t/issue-with-pagination-ignoring-parameters/7917/9 "2020-08-21T19:14:42Z")

</div>


