cancel
Showing results for 
Search instead for 
Did you mean: 

Pagination in HTTP Client snap

Pakhi
New Contributor III

Hi All,
I am working with HTTP client snap and this is my first snap in the pipeline and i am using GET method to read data from API.
I have to make sure data from all pages gets captured from source and for that i have to use pagination.

Can anyone help me in this as i have never used this function.

6 REPLIES 6

Thanks. I understand.

This isn’t as easy as it should be, but try this:

  • Check Enable debug
  • For page in the Override Parameters, set the expression to parseInt($_debug.request.requestLine.match("page=([0-9]+)")[1]) + 1

jhipp
New Contributor

That worked like a charm. I’ll keep that in my back pocket for future (less than stellar) APIs 🙂