Using paginated APIs with Python (four ways!)
HTML-код
- Опубликовано: 26 июн 2021
- Sometimes APIs don't give you all of the results you want at once, and you need to make multiple requests to get everything. Let's make it work in Python!
Code is here: gist.github.com/jsoma/3138129... - Наука
The birds chirping in the background made this video relaxing to watch.
One more method to add to this: if the API returns total number of items(count in this example), then loop until all items are fetched. May need to check if the last page has the same count as the first, if not more items have been added since we issued the first request.
Thank you so much for this video - just what I was looking for. The way you go through the steps is so easy to understand, especially how things are working "in the background."
This is great and perfectly solved my problem. Thank you!
Thank you for such a clear tutorial and showing different options with pros and cons. Well done and thank you!
Excellent video, so clear the way you explaind. Thank you
Thank you so much for the tutorial Jon. You had saved my day :D
I wish I could find this tutorial earlier!
Clear explanation and did solve my problem. Very helpful and practical 👍Thank you :)
Exactly!
Great video really useful and helped a lot with my paginated APIs for work.. thanks 👍
Great video!! Tnx for sharing, Jonathan!!
Nice I found this piece.
You Sir, Are A Legend. Thanks a Ton!!
Bro, incredible tutorial. There's no many videos about this.
Glad you liked it!
Very nice!! Thank you!!
very good
Thanks for sharing.
You are awesome.
Good stuff!
I need to make 13000 calls to download all the data. How do I run a loop of 100 calls to download the data... each call has 1000 records .... If I run more than 100 calls, the request times out. Can you help ?
God bless you