{
  "name": "Generate rotating user-agents and proxy IPs for scraping APIs",
  "nodes": [
    {
      "id": "b3ad398f-314e-4319-95e1-9a9ebe4286c9",
      "name": "user-agents",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1296,
        256
      ]
    },
    {
      "id": "6e5f162f-54e8-4e39-b6c8-ccf1e784a657",
      "name": "clean the return to line in user-agent",
      "type": "n8n-nodes-base.set",
      "position": [
        -688,
        256
      ]
    },
    {
      "id": "22db55f3-cf19-48b4-a204-e5af0af1e1ef",
      "name": "random sort",
      "type": "n8n-nodes-base.sort",
      "position": [
        -480,
        256
      ]
    },
    {
      "id": "0db0b1ae-0ee8-4c12-9cc8-3202cc656e62",
      "name": "Extract user-agent values",
      "type": "n8n-nodes-base.html",
      "position": [
        -1104,
        256
      ]
    },
    {
      "id": "aefcdf94-b9a7-4de1-ad3d-09e9ecc53ef0",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -896,
        256
      ]
    },
    {
      "id": "d3317611-f80d-42b1-8b45-4d5c215709e7",
      "name": "Check used IP/user-agent with cloudflare",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        256,
        -368
      ]
    },
    {
      "id": "9371e1a4-445b-4156-9a2f-b4f14f2691b3",
      "name": "Manual trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1520,
        96
      ]
    },
    {
      "id": "0e8c6c40-68c0-421b-956d-d6fe19420955",
      "name": "SET your proxy connection details here",
      "type": "n8n-nodes-base.set",
      "position": [
        -1280,
        -112
      ]
    },
    {
      "id": "37312114-a111-4abc-8a19-62d7e7fc4940",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -32,
        -96
      ]
    },
    {
      "id": "32f504be-251e-4975-acfe-a31778d69966",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2432,
        -224
      ],
      "parameters": {
        "width": 864,
        "height": 1024,
        "content": "# Generate multiple dynamic user-agent & IP address for scraping APIs using proxy \n\n## ✨What it does\n\nUseful for scraping only/API data.\n\nThis workflow will give you the ability to bypass the IP addre"
      }
    },
    {
      "id": "b93449a3-d468-4bb7-b4e7-2a66077877ef",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        -224
      ],
      "parameters": {
        "width": 336,
        "height": 288,
        "content": "## Add proxy credentials here"
      }
    },
    {
      "id": "8848764a-cba2-4e96-9b77-44c2482fb03a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -16
      ],
      "parameters": {
        "width": 336,
        "height": 288,
        "content": "## Add the HTTP node for the API you want to call"
      }
    },
    {
      "id": "60c848b7-6df4-4db8-88d1-4ce7c05aba10",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        96
      ],
      "parameters": {
        "width": 336,
        "height": 304,
        "content": "## Update the number of user-agent you want to use"
      }
    },
    {
      "id": "e40f1c90-4c00-45f6-8c0b-f7e987d5eca5",
      "name": "Take X random user-agents",
      "type": "n8n-nodes-base.limit",
      "position": [
        -240,
        256
      ]
    },
    {
      "id": "95670562-97b7-4a2e-a978-0bf64f58d8a6",
      "name": "Targeted API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        288,
        96
      ]
    },
    {
      "id": "d199c0a2-00a7-4e2d-b334-f21cd056c4e7",
      "name": "IP address and user-agent used",
      "type": "n8n-nodes-base.set",
      "position": [
        608,
        -368
      ]
    },
    {
      "id": "76052c7e-93d2-4894-a963-2cee06495e9f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        -512
      ],
      "parameters": {
        "width": 480,
        "height": 336,
        "content": "## Informative node to show with couple IP_address/user-agent are being used"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Check used IP/user-agent with cloudflare",
            "type": "main",
            "index": 0
          },
          {
            "node": "Targeted API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "clean the return to line in user-agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "random sort": {
      "main": [
        [
          {
            "node": "Take X random user-agents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "user-agents": {
      "main": [
        [
          {
            "node": "Extract user-agent values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual trigger": {
      "main": [
        [
          {
            "node": "user-agents",
            "type": "main",
            "index": 0
          },
          {
            "node": "SET your proxy connection details here",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract user-agent values": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Take X random user-agents": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "SET your proxy connection details here": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "clean the return to line in user-agent": {
      "main": [
        [
          {
            "node": "random sort",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check used IP/user-agent with cloudflare": {
      "main": [
        [
          {
            "node": "IP address and user-agent used",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}