{
  "name": "Extract Amazon product data to Sheets with Olostep API",
  "nodes": [
    {
      "id": "2d3bc36e-a7fe-49a5-95e4-591edcfa2fbf",
      "name": "scrape amazon products",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -608,
        496
      ]
    },
    {
      "id": "677f2c1e-f3a6-44dd-8a2b-b82b6012aa69",
      "name": "parsedInfo",
      "type": "n8n-nodes-base.set",
      "position": [
        -432,
        496
      ]
    },
    {
      "id": "e17f4dda-9920-48b0-b96f-ed698cbf5c8c",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -224,
        496
      ]
    },
    {
      "id": "e36e8a82-df64-492f-ad01-064e8e91bc5b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -832,
        480
      ]
    },
    {
      "id": "3a5b06c3-81b4-4719-a5de-988e5949252b",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -16,
        496
      ]
    },
    {
      "id": "8167a2bf-5e6d-4616-808d-32fa51f62202",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        576,
        512
      ]
    },
    {
      "id": "224ae802-2110-4e97-9fcb-83c7ec29d4d2",
      "name": "Insert row",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        368,
        512
      ]
    },
    {
      "id": "f4792914-40f3-44bc-95ff-87f352fa00b0",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1424,
        480
      ]
    },
    {
      "id": "d0d689c4-39f9-495e-9803-f6978d578a1e",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -1248,
        480
      ]
    },
    {
      "id": "6956396a-acf8-4dd7-8ee0-3564151c1fa3",
      "name": "Split Out2",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1040,
        480
      ]
    },
    {
      "id": "34a55dec-685b-44ad-b761-9b3030954567",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        176,
        368
      ]
    },
    {
      "id": "45623202-f500-4dbf-93f8-c3a5401a48ed",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        384
      ],
      "parameters": {
        "width": 352,
        "height": 256,
        "content": "## Pagination  \nIterates through multiple Amazon pages (1–10).\n"
      }
    },
    {
      "id": "119dbd07-ce62-4c2c-a429-b8755d7cf2d0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -896,
        352
      ],
      "parameters": {
        "width": 416,
        "height": 368,
        "content": "## Olostep Amazon Scrape  \nExtracts product title + URL."
      }
    },
    {
      "id": "b64a15cf-4adf-4d4a-853f-01aa142cc420",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        352
      ],
      "parameters": {
        "width": 784,
        "height": 368,
        "content": "## Parse & Split  \nConverts JSON output into individual products."
      }
    },
    {
      "id": "648d3650-2c1d-42f6-9781-a32a8f43b4ad",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        352
      ],
      "parameters": {
        "width": 384,
        "height": 368,
        "content": "## Insert Row  \nSaves each product to a Google Sheet / Data Table.\n"
      }
    },
    {
      "id": "422c00b9-25d5-488c-b931-43ccadde67ba",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2096,
        64
      ],
      "parameters": {
        "width": 608,
        "height": 1152,
        "content": "# Olostep Amazon Products Scraper  \n\nThis n8n template automates Amazon product scraping using the Olostep API.  \nSimply enter a **search query**, and the workflow scrapes multiple Amazon search pages"
      }
    },
    {
      "id": "f7aa6ef0-6c75-4b39-9ec1-c18a029d8047",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1472,
        352
      ],
      "parameters": {
        "width": 192,
        "height": 272,
        "content": "## Enter a search query  \nExample: “wireless bluetooth headphones”."
      }
    },
    {
      "id": "1f000c8d-fe6a-41ed-948c-83dac32c66c4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        736
      ],
      "parameters": {
        "width": 384,
        "height": 128,
        "content": "## WARNING\nIf the http request runs through a 504 gateway timeout error try to execute again or set the node settings to retry on failure."
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert row": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out2": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "parsedInfo": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Split Out2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "scrape amazon products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "scrape amazon products": {
      "main": [
        [
          {
            "node": "parsedInfo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}