API Query Loop with Pagination when "Total items path" is the count of items and not the number of pages

Hello,

There is an API that returns a request as follows:

{

"status": "OK",

"content": {

"summary": {

"current_page": 1,

"page_length": 30,

"total_records": 92

},

"data": [...]

}

}

The issue is the offset pagination expected “Total items path” to return the total pages instead of the actual total items as a result I get the following error:

Note the parameters are passed in the body as JSON.

Please advise if anyone managed to overcome this.