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...
  • НаукаНаука

Комментарии • 20

  • @SudarshanGR
    @SudarshanGR 2 года назад +5

    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.

  • @jenniferkirschnickduffy2098
    @jenniferkirschnickduffy2098 7 месяцев назад

    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."

  • @kweluokafor3139
    @kweluokafor3139 6 месяцев назад

    This is great and perfectly solved my problem. Thank you!

  • @karengutzman8922
    @karengutzman8922 2 года назад +2

    Thank you for such a clear tutorial and showing different options with pros and cons. Well done and thank you!

  • @alandiaz1054
    @alandiaz1054 2 года назад

    Excellent video, so clear the way you explaind. Thank you

  • @cvas-d
    @cvas-d 2 года назад

    Thank you so much for the tutorial Jon. You had saved my day :D

  • @chiachishen
    @chiachishen Год назад +1

    I wish I could find this tutorial earlier!
    Clear explanation and did solve my problem. Very helpful and practical 👍Thank you :)

  • @SprintsNClimbs
    @SprintsNClimbs 2 года назад

    Great video really useful and helped a lot with my paginated APIs for work.. thanks 👍

  • @rafaelgdalmoro
    @rafaelgdalmoro 2 года назад

    Great video!! Tnx for sharing, Jonathan!!

  • @onyekachinelson6999
    @onyekachinelson6999 2 года назад +1

    Nice I found this piece.

  • @ayushsrivastava6494
    @ayushsrivastava6494 Год назад

    You Sir, Are A Legend. Thanks a Ton!!

  • @ThexRasTafari
    @ThexRasTafari 2 года назад

    Bro, incredible tutorial. There's no many videos about this.

    • @jsoma
      @jsoma  2 года назад +1

      Glad you liked it!

  • @ramonpacheco42
    @ramonpacheco42 2 года назад

    Very nice!! Thank you!!

  • @googlecloud6366
    @googlecloud6366 2 года назад

    very good
    Thanks for sharing.

  • @minakshimathpal8698
    @minakshimathpal8698 2 месяца назад

    You are awesome.

  • @jackverran6927
    @jackverran6927 2 года назад

    Good stuff!

  • @dakshsahni7479
    @dakshsahni7479 2 года назад

    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 ?

  • @ademolaoladapo9024
    @ademolaoladapo9024 2 года назад

    God bless you