{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "f7d16185-7d9b-4a5c-8d9a-25d91afae61c",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {},
        "formTitle": "Shopify Scraper",
        "formFields": {
          "values": [
            {
              "fieldLabel": "website"
            }
          ]
        },
        "formDescription": "Shopify Scraper"
      },
      "typeVersion": 2.2
    },
    {
      "id": "16736d7a-af75-482e-8465-5b9924fe7b17",
      "name": "Store Info Scrap Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        -140
      ],
      "parameters": {
        "url": "https://shopify-scraper4.p.rapidapi.com/shopinfo.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "website",
              "value": "={{ $json.website }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "shopify-scraper4.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "253cd194-c8c2-42f2-a285-d562af502ab6",
      "name": "Products Scarp Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        180
      ],
      "parameters": {
        "url": "https://shopify-scraper4.p.rapidapi.com/products.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "website",
              "value": "={{ $json.website }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "shopify-scraper4.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9af8038d-06e1-4cf5-a2ef-64816d51e374",
      "name": "Append Products Data In Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        480,
        180
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "id",
              "defaultMatch": true,
              "canBeUsedToMatch": true
            },
            {
              "id": "title",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "handle",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "handle",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "body_html",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "body_html",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "published_at",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "published_at",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "created_at",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "created_at",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "updated_at",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "updated_at",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "vendor",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "vendor",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "product_type",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "product_type",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "tags",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "tags",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "variants",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "variants",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "images",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "images",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "options",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "options",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "autoMapInputData",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 265041704,
          "cachedResultUrl": "",
          "cachedResultName": "Products"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "",
          "cachedResultName": "Shopify"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "e0ac4258-a0ff-4e39-a05c-3d20713eaa36",
      "name": "Append Store Info Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        480,
        -140
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [
            {
              "id": "id",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "id",
              "defaultMatch": true,
              "canBeUsedToMatch": true
            },
            {
              "id": "name",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "city",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "city",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "province",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "province",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "country",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "country",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "currency",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "currency",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "domain",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "domain",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "url",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "myshopify_domain",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "myshopify_domain",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "description",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "description",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "ships_to_countries",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "ships_to_countries",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "money_format",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "money_format",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "published_collections_count",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "published_collections_count",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "published_products_count",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "published_products_count",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "shopify_pay_enabled_card_brands",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "shopify_pay_enabled_card_brands",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "offers_shop_pay_installments",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "offers_shop_pay_installments",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "autoMapInputData",
          "matchingColumns": [
            "id"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "",
          "cachedResultName": "Shop Info"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "",
          "cachedResultName": "Shopify"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "e5b2f242-68cf-4cb0-83ea-5c84c3d6bc60",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -300
      ],
      "parameters": {
        "width": 780,
        "height": 1300,
        "content": "# \ud83d\udecd\ufe0f Shopify Scraper Workflow (n8n)\n\nA streamlined automation to fetch Shopify store info and product data via RapidAPI and log it into Google Sheets.\n\n---\n\n## \ud83d\udccc Trigger\n\n### \ud83d\udd39 On form submission\n- Accepts a `website` URL from the user to initiate the scraping process.\n\n---\n\n## \ud83d\udd04 Workflow Steps\n\n### 1. \ud83d\udce9 Store Info Scrap Request\n- Sends the submitted `website` to `shopify-scraper4.p.rapidapi.com/shopinfo.php` (POST request).\n- Headers include `x-rapidapi-host` and `x-rapidapi-key`.\n\n### 2. \ud83d\udce6 Products Scrap Request\n- Sends the same `website` to `shopify-scraper4.p.rapidapi.com/products.php` (POST request).\n- Fetches product-level data for the store.\n\n---\n\n## \ud83d\udcca Data Storage (Google Sheets)\n\n### \ud83d\udd39 Append Store Info Google Sheets\n- Saves the returned store information into the `Shop Info` sheet.\n\n### \ud83d\udd39 Append Products Data In Google Sheets\n- Logs product details into the `Products` sheet.\n\n---\n\n## \ud83d\udd17 Google Sheets Document\n[\ud83d\udcc4 Open Sheet](https://docs.google.com/spreadsheets/d/1mVC_2w7vHsKtcxUGkLWvzWSUqpzCoUWtWkLy3CPnfa4)\n\n---\n\n## \u2705 Summary (Node-by-node)\n\n| Node Name                          | Purpose                                          |\n|-----------------------------------|--------------------------------------------------|\n| On form submission                | Collects website input from user                |\n| Store Info Scrap Request          | Calls API to fetch Shopify store info           |\n| Products Scrap Request            | Calls API to fetch product list                 |\n| Append Store Info Google Sheets   | Writes store info to \"Shop Info\" sheet          |\n| Append Products Data In Google Sheets | Writes product data to \"Products\" sheet     |\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "b21191f6-2be1-4e4c-8c98-24eada3019c8",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -120
      ],
      "parameters": {
        "height": 300,
        "content": "**On form submission**\n  - Triggers the workflow when a user submits a website via form."
      },
      "typeVersion": 1
    },
    {
      "id": "aaa36bf5-e830-4266-ba04-c153fe2abaaf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -280
      ],
      "parameters": {
        "height": 260,
        "content": "**Store Info Scrap Request**\n  - Sends a POST request to the Shopify Scraper API to fetch store-level metadata (e.g., name, location, domain, etc.).\n"
      },
      "typeVersion": 1
    },
    {
      "id": "4316983c-dfd3-4c28-94eb-8081d0e1089a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        20
      ],
      "parameters": {
        "height": 300,
        "content": "**Products Scarp Request**\n  - Sends a POST request to the same API to retrieve product details (e.g., title, price, tags, etc.) from the given Shopify store.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "144e9688-648c-4ab5-a70b-fa3390b25cc8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        -280
      ],
      "parameters": {
        "height": 260,
        "content": " **Append Store Info Google Sheets**\n  - Appends the store information into the \"Shop Info\" sheet in a connected Google Spreadsheet.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "76000e5a-8bff-4c9a-942d-f32f60ad00ee",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        20
      ],
      "parameters": {
        "height": 320,
        "content": "**Append Products Data In Google Sheets**\n  - Appends the scraped product data into the \"Products\" sheet in the same Google Spreadsheet."
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "Store Info Scrap Request",
            "type": "main",
            "index": 0
          },
          {
            "node": "Products Scarp Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Products Scarp Request": {
      "main": [
        [
          {
            "node": "Append Products Data In Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Info Scrap Request": {
      "main": [
        [
          {
            "node": "Append Store Info Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}