REST API pagination

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

1 Like

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

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

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

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

It is this one:
docs/api/contact-center/#tag/logs/GET/contact_center/voice_calls

The one related to contact center data.

1 Like

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-01T00: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.

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.

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

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?

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

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

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