In this post, we will see how to resolve Python API call pagination issue
Question:I am stuck on the following issue: I have the code below for an API call. In and of itself, the API call is fine, no server issues, I have checked it in Postman:
I found a post here that I massaged to add on the “while” loop, and I had to modify it to fit my requirements.
Code version 1 (full):
So, I added some error handling:
Code version 2:
So, I modified the while loop again:
Code version 3:
Best Answer:Since I dont have API access I can only guess that you confused the break condition in the while loop
If you have better answer, please add a comment about this, thank you!