Analytics API 413 error on 90-day query

Hit a 413 Entity Too Large on /api/v2/analytics/queues/summary. The request body is too big with a 90-day range. Need to split the query into smaller chunks. Any code examples for pagination or date splitting logic in Python?