Pagination within body parameters

Hi,

I´m using the http request node to query an api, within the body parameters pagination is set like this: “page”:1

{“keywords”:[],“publicationPeriod”:null,“occupationUris”:[],“skillUris”:[],“requiredExperienceCodes”:[],“positionScheduleCodes”:[],“sectorCodes”:[],“availableLanguages”:[“de”],“educationLevelCodes”:[],“positionOfferingCodes”:[],“locationCodes”:[“de”],“euresFlagCodes”:[],“otherBenefitsCodes”:[],“requiredLanguages”:[],“resultsPerPage”:50,“sortSearch”:“BEST_MATCH”,“page”:1,“sessionId”:“7hqyzxsp7txj4fjq0yrxyz”}

I´m wondering how I could loop through it after I have received the first batch of 50 results.

Hey @Kool_Baudrillard, welcome to the community :tada:

Here is a simple pagination example using query parameters, but it would work just as well for body parameters instead (I just don’t have a suitable API for a demo workflow). It reads the page value from the API response using an expression in the Set node, adds 1 to it and writes it into a next_page field which the HTTP Request node can then use:

Hope this helps!