Pagination stop according to page size

I am attempting to setup pagination for a RestAPI. The following is the example JSON. I have specified: $.data[*] as the data location. I have setup the following variables to be included in the URL: page_value, per_page.

I have set the Stop According To: Page Size and per page {per_page}. In testing the api calls are not stopping. Rather the calls continue to loop. As per the json below there is a total_pages value. Can i set a rule to break if page_value = total_pages

“data”: [
“meta”: {
“pagination”: {
“total”: 2,
“count”: 2,
“per_page”: 100,
“current_page”: 1,
“total_pages”: 1,
“links”: {}

Hi @nordlaw!

If you are OK to send a river URL you are working on, we can take a look.

Otherwise you can create a support ticket via the Rivery console by clicking the ‘Help’ menu.


Hi Taylor I resolved this. Thanks.