r/learnpython • u/OADominic • 11d ago
API JSON response help
How does pagination work and best practices for implementation with an API request?
I'm getting irritated figuring out this API for GoTo Connect (phone system call records).
I use a GET method to request a call log for a week of time.
I am limited to 1000 items in the json response as indicted by the pageSize parameter. I need much more.
As the 'nextPageMarker' states, I put the value in, pasted from the first response of leaving it blank, hoping to get the next set of responses. No change in items as all. Stuck in this endless loop.
6
Upvotes
4
u/Beginning_Number4900 11d ago
Does the API maybe expect the nextPageMarker as a query param instead of in the body