Forum Academy Marketplace Showcase Pricing Features

How to receive all of the data from an API call that returns paginated data

Hey everyone,

I’ve been stuck on this problem for about two days. I’m not sure how to receive all of the data from an external API that sends me the data in pages of 500. At the end of each page (call), there is a link to the next page (of 500) which can be seen in the screenshot (links next), but I’m not sure how to loop the call so that all of the pages are displayed.

The link is just added to the url of the original api call and the next page is received.

Appreciate any responses. Thanks