New to n8n but have some experience with automation. Trying to call API that contains pagination (i.e. &page=1, &page=2, etc.) The great part is the result contains the NEXT URL that I need to call HOWEVER n8n’s feature where we can throw that Next URL into the original HTTP node errors out for some reason. I have tried including the headers and body in response and nothing seems to be working.
Below are the screenshots. Let me know if I am doing something wrong.
Thanks for suggestion. See below, I show the response from the initial GET which includes the “next” URL and then I also show the response from that next URL as well which shows the “next” URL as null. In theory, this API is structured perfectly for n8n’s feature for Pagination where response contains next URL and pagination complete when its null.
My assumption here is that I am missing something regarding the $response from the HTTP call itself. When running it, I get an error that the field doesn’t exist so something is happening on the n8n side. Thoughts?
To be more clear, inside n8n HTTP node. I have the initial GET (not including any page parameter). When I test that and get a response (that includes the NEXT URL), I am able to add the pagination feature on and use the $response variable to identify the correct URL I am looking for (see below verified by green highlighted text). Immediately, if I test the node again, it fails with the undefined URL error.