Thanks @Kunal Kumar Sinha for waiting. I got an update from our team that it is not possible to implement this using the current response from API and one approach is API response to be modified as below, then pagination rules can be used in below format
{
"story_count": 212,
"next": "2",
"previous": null,
"results": []
}
And the pagination rules should be:
QueryParameters['page']: $['next']
Another approach is to implement the manual pagination in which data can be fetched till the value for next becomes null.
Please let us know if this helps in resolving the issue.