Analytics API pageCount stuck at 1 with pageSize 10

Getting pageCount stuck at 1 even when pageSize is set to 10. Response returns 50 items but paging object doesn’t show right count. Weird behavior.

api = RoutingAnalyticsApi(client)
req = GetRoutingSkillsQueueAeDataRequest(size=10, page=1)
res = api.get_analytics_routing_skills_queue_ae_data(req)
# res.paging.pageCount is 1

Running genesys-cloud-python-8.14.0. Incrementing pageNumber just gives empty sets after the first hit. pageCount doesn’t update. It’s acting like the pager’s broken. Checking the summary object now.

Pagination on analytics endpoints is tricky. The SDK often ignores size if you don’t explicitly set totalSize. Try passing totalSize=10 in the request object. It forces the backend to respect the limit. Without it, the API defaults to returning everything up to the max, leaving pageCount misleadingly at 1.

The issue isn’t the size param. Analytics endpoints return a max of 1000 items per request regardless of what you pass in size. The SDK calculates pageCount based on the total count divided by the requested size. If you ask for 10 but get 1000 back, pageCount stays 1 because the backend didn’t split it.

You have to handle pagination on the client side. Loop through the response until nextPageUri is null.

from genesyscloud import routing_api

api = routing_api.RoutingAnalyticsApi(client)
page = 1
all_data = []

while True:
 req = routing_api.GetRoutingSkillsQueueAeDataRequest(
 page=page, 
 size=100 # Use max allowed to reduce calls
 )
 res = api.get_analytics_routing_skills_queue_ae_data(req)
 
 if res is None or res.entities is None:
 break
 
 all_data.extend(res.entities)
 
 if res.paging.nextPageUri is None:
 break
 
 page += 1

# Process all_data

Stop fighting the paging object. It’s misleading for analytics. Just follow the nextPageUri or increment the page counter manually.