When messing with Roblox web APIs I often find myself in a position where I need to loop through page objects and cursors, however because the next page requires the cursor of the last one, I have no way to parallelize the process.
I have thought of searching from both sides, by passing in different sorting filters to the endpoints(for example ascending and descending) and going through a bit more than half of the pages from both sides. This does indeed decrease the searching time to almost half, but I then have to deal with other things such as duplicate removal and small room for errors.
Is there any way to efficiently parallelize and mass-fetch API pages? Preferably in a way that minimizes time and amount of requests to be made.