# REST API pagination

**URL:** <https://devforum.zoom.us/t/rest-api-pagination/122732>\
**Category:** API and Webhooks\
**Tags:** video-sdk\
**Created:** [December 19, 2024, 5:28am UTC](https://devforum.zoom.us/t/rest-api-pagination/122732 "2024-12-19T05:28:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalzamendi](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dalzamendi](https://devforum.zoom.us/u/dalzamendi)\
**Post date:** [December 19, 2024, 5:28am UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/1 "2024-12-19T05:28:06Z")

</div>

Hi,

We are trying to import information from the Zoom REST APIs, and we have successfully done this for many endpoints. However, we are encountering issues when importing data from the `voice_calls` endpoint, specifically when the number of pages exceeds 100.

We were unable to find any information regarding a limit on the number of pages, but we wanted to reach out to confirm.

Is there a limitation on the number of pages that can be retrieved from a REST API endpoint? We are currently fetching 100 objects per page, for a total of 10,000 elements.

Thank you.

Regards,  
David

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 26, 2024, 3:43pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/2 "2024-12-26T15:43:57Z")

</div>

Hey @dalzamendi  
Thanks for reaching out to us!  
I am unaware of a limit here, but I can ask internally about this issue.

---

<div class="post-metadata">

**Author:** ![dalzamendi](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dalzamendi](https://devforum.zoom.us/u/dalzamendi)\
**Post date:** [January 1, 2025, 9:07pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/3 "2025-01-01T21:07:23Z")

</div>

> [@dalzamendi](#):
>
> there a limitation on the number of pages that can be retrieved from a REST API endpoint? We are currently fetching 100 objects pe

It’d be great if you can ask internally to understand if it is a problem on Zoom’s end or Azure Data Factory.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [January 2, 2025, 11:03pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/4 "2025-01-02T23:03:55Z")

</div>

For sure, I am looking into this.  
Can you please confirm if the endpoint you are talking about is the following:

> **[Phone APIs - Zoom Developers](https://developers.zoom.us/docs/api/phone/#tag/voicemails/GET/phone/voice_mails)**
>
> API reference for: Phone

If not, can you point me to the right endpoint @dalzamendi

---

<div class="post-metadata">

**Author:** ![dalzamendi](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dalzamendi](https://devforum.zoom.us/u/dalzamendi)\
**Post date:** [January 3, 2025, 1:28am UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/6 "2025-01-03T01:28:58Z")

</div>

It is this one:  
docs/api/contact-center/#tag/logs/GET/contact\_center/voice\_calls

The one related to contact center data.

---

<div class="post-metadata">

**Author:** ![dalzamendi](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dalzamendi](https://devforum.zoom.us/u/dalzamendi)\
**Post date:** [January 3, 2025, 4:55am UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/7 "2025-01-03T04:55:02Z")

</div>

I want to add another anomaly to docs/api/phone/#tag/voicemails/GET/phone/voice\_mails

When executing  
/contact\_center/voice\_calls?page\_size=100&from= **2024-07-01** T00:00:00Z&to= **2024-07-31T23:59:59Z**

We get:  
“total\_records”: **74117** ,  
“from”: “2024-07-01T00:00:00Z”,  
“to”: “2024-07-31T23:59:59Z”,

But when executing the days separately, let’s say  
/contact\_center/voice\_calls?page\_size=100&from=2024-07-01T00:00:00Z&to=2024-07-01T23:59:59Z  
/contact\_center/voice\_calls?page\_size=100&from=2024-07-02T00:00:00Z&to=2024-07-02T23:59:59Z  
…  
/contact\_center/voice\_calls?page\_size=100&from=2024-07-31T00:00:00Z&to=2024-07-31T23:59:59Z

We get a total of **74296** records which is more than the original number **74117**.

---

<div class="post-metadata">

**Author:** ![dalzamendi](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dalzamendi](https://devforum.zoom.us/u/dalzamendi)\
**Post date:** [January 6, 2025, 5:30am UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/8 "2025-01-06T05:30:23Z")

</div>

> [@dalzamendi](#):
>
> We get a total of **74296** records which is more than the original number **74117**.

We found _part_ of the issue. It seems the endpoint only displays completed calls.

So, if we capture the time range from 00:00:00 to 23:59:59 on a specific day, we might be missing calls that finished the next day.

Would this be correct? This is not super clear in the documentation.

Since these REST APIs are mainly for reporting, it becomes really difficult to incrementally load information from the endpoints due to this behavior.

We have added a sliding window to our logic, but it would be much better to use the ‘from’ and ‘to’ parameters to filter the `end_time` column of the endpoints for completed calls, rather than relying on calls that finished within a specific period of time.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [January 7, 2025, 9:25pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/9 "2025-01-07T21:25:17Z")

</div>

Hi @dalzamendi  
I just looked into our Docs and it is mentioned that the page\_size max value is 100

> **[Contact Center APIs - Zoom Developers](https://developers.zoom.us/docs/api/contact-center/#tag/logs/GET/contact_center/voice_calls)**
>
> API reference for: Contact Center

---

<div class="post-metadata">

**Author:** ![dalzamendi](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@dalzamendi](https://devforum.zoom.us/u/dalzamendi)\
**Post date:** [January 8, 2025, 1:21am UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/10 "2025-01-08T01:21:54Z")

</div>

That would be the number of items per page, not the max number of pages.

Is there a limit on the number of pages retrieved when using the next\_page\_token?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [January 8, 2025, 3:37pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/11 "2025-01-08T15:37:23Z")

</div>

You are right, I misread the message  
I created an internal ticket about this (ZSEE-153439 internal number for reference). I will update you when I have more information about it

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [January 9, 2025, 3:14pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/12 "2025-01-09T15:14:56Z")

</div>

Hi @dalzamendi  
I just heard back from our Engineering team, and they identified the root cause and we will enhance it. I will keep you updated on the fix for this once I have more information

---

<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 10, 2025, 3:15pm UTC](https://devforum.zoom.us/t/rest-api-pagination/122732/13 "2025-01-10T15:15:38Z")

</div>

Closed on January 10, 2025, 3:15pm UTC

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