Looping http request node

Is there any way to create a loop with http request node, to pass a different set of values with subsequent iterations.

The most time there should be no need for looping anything in n8n as the nodes normally execute once for every item they receive. So also the HTTP Request Node. If you give it 3 items it will make 3 requests.

Here a simple example (you can simply copy and paste it in n8n)

{
  "nodes": [
    {
      "parameters": {
        "functionCode": "return [\n  {\n    json: {\n      number: 1\n    }\n  },\n   {\n    json: {\n      number: 2\n    }\n  },\n   {\n    json: {\n      number: 3\n    }\n  }\n]"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        550,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://httpbin.org/anything",
        "options": {},
        "queryParametersUi": {
          "parameter": [
            {
              "name": "number",
              "value": "={{$node[\"Function\"].data[\"number\"]}}"
            }
          ]
        }
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        750,
        300
      ]
    }
  ],
  "connections": {
    "Function": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

What if i want to hit different api’s with the http request node simultaneously or subsequently(with one node).
The url would be the same for example https://sample.example.net/api/users/{id}, just the id in the url would be different eg,https://sample.example.net/api/users/001,https://sample.example.net/api/users/002.
What i want to achieve here is a way to feed this “id” using add expression, and i want to do this for all the values of “id”.

Yes that is no problem. Simply set the URL as expression and also everything else you want to change depending on the input data.

What I posted was just a very simply example to show how it works.