How do i get numbers from 1 to 100 each one by one numerically

I have created a workflow that uses a http request but the problem is in the query string in http node there is a need of page number and for that I have built a workflow that take number from 1- 100 randomly, which is creating a lot of duplicates so I am looking for someone to help me how do i get number from 1-100 one at one time , numerically and not repeating same number again.

using the code below to get randomly

AIM to get number numerically and one at one time and new number after loop

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@Arsh_Tyagi , HTTP Request node has built in pagination functionality. You can utilize the variable $pageCount, there is no need for an additional node to do the pages.

Are you saying the number from 1 to 100 has to be random and not sequential?

Can you show me how to do that beciase I am unable to figure that our

I am looking to get number sequentially and one after another after running loop

@Arsh_Tyagi , this involves a few steps, assuming you use page query string in your URL (e.g. https://acme.com?page=1) and it has potentially unlimited number of pages but you need only first 100.

  1. Enable Pagination mode
  2. Select the mode “Update a Parameter in Each request”
  3. Select parameter type “Query”
  4. Give the parameter name “page” and value “{{ $pageCount + 1 }}
  5. For “Pagination Complete When” pick “Other”
  6. The “Complete Expression” set to “{{ $pageCount == 100 }}

Here’s an example

If your use case does not correspond to the above condition, let me know what those are to amend the node settings accordingly, provided you still cannot figure that out.