Implementation of Dynamic Pagination Using nextPageToken

Hello everyone,

I’m trying to implement dynamic pagination using the nextPageToken value from the YouTube Data API within a Make.com scenario.

Here’s what I’ve done so far:
I used the HTTP module to send the initial request and followed it with a Repeater to loop multiple times. However, the issue is that the nextPageToken from the first response is reused in every iteration, resulting in the same page of data being fetched repeatedly. I’m not getting data from subsequent pages as expected.

  1. How can I dynamically pass the updated nextPageToken from each HTTP response into the next HTTP request?
  2. Is there a way to set up a loop or flow control that checks if a new nextPageToken exists and uses it in the next call?
  3. Ultimately, I want to gather results from multiple pages (up to 50 items per page), aggregate them, and process them with a single Iterator module.

Any guidance or example scenario would be highly appreciated. Thanks in advance!

Welcome to the Make Community!

You’ll need to use set variable at the end of the loop, and then get variable after the repeater to get the new value.

Alternatively you can use a subscenario.

Hope this helps! Let me know if there are any further questions or issues.

@samliew