# Contact Center api for analytics - api is looping through the same 10 records when using the next\_page\_token

**URL:** <https://devforum.zoom.us/t/contact-center-api-for-analytics-api-is-looping-through-the-same-10-records-when-using-the-next-page-token/133394>\
**Category:** Contact Center\
**Created:** [May 30, 2025, 12:38am UTC](https://devforum.zoom.us/t/contact-center-api-for-analytics-api-is-looping-through-the-same-10-records-when-using-the-next-page-token/133394 "2025-05-30T00:38:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank7](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/frank7/32/69425_2.png) [@Frank7](https://devforum.zoom.us/u/Frank7)\
**Post date:** [May 30, 2025, 12:38am UTC](https://devforum.zoom.us/t/contact-center-api-for-analytics-api-is-looping-through-the-same-10-records-when-using-the-next-page-token/133394/1 "2025-05-30T00:38:28Z")

</div>

I setup this api and when I run it, it returns a next\_page\_token and shows several thousand records returned and 10 per page.

/contact\_center/analytics/historical/details/metrics?from={from\_date}&to={to\_date}&channel={channel}&queue\_ids={queue\_ids}&next\_page\_token{next\_page\_token}&page\_size{page\_size}

When I update the next\_page\_token to the original value returned and keep the other parameters the same, it continues to return the same 10 records from the 1st iteration, and goes into a continuous loop.

- total\_records: 4110,
- page\_size: 10,
- next\_page\_token: "jcVu7LK6Qk3perC…

Is there anything special that needs to be done to have this loop through results instead of repeating the same 10 records each time?

Thanks
