{
  "name": "n8n-農產品",
  "nodes": [
    {
      "id": "07d7241d-480b-4d53-96ba-485d1dc469f6",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "02dfaea7-be8c-49fd-a869-39cccf6e6dde",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        0
      ],
      "parameters": {
        "url": "https://data.moa.gov.tw/api/v1/SheepQuotation",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "Start_time",
              "value": "2024/12/01"
            },
            {
              "name": "End_time",
              "value": "2024/12/31"
            },
            {
              "name": "MarketName",
              "value": "台北二"
            },
            {
              "name": "api_key",
              "value": "REPLACE_WITH_API_KEY"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "69a1d5c6-a59f-4b4b-9e51-d75f319a75c6",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        440,
        0
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "Data"
      },
      "typeVersion": 1
    },
    {
      "id": "082828e0-4cc6-465c-bfe4-561f8e4e3c50",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        660,
        0
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [
            {
              "id": "TransDate",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "TransDate",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "TcType",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "TcType",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "CropCode",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "CropCode",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "CropName",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "CropName",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "MarketCode",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "MarketCode",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "MarketName",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "MarketName",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Upper_Price",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Upper_Price",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Middle_Price",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Middle_Price",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Lower_Price",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Lower_Price",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Avg_Price",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Avg_Price",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Trans_Quantity",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Trans_Quantity",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "autoMapInputData",
          "matchingColumns": []
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "REPLACE_WITH_RESOURCE"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "REPLACE_WITH_RESOURCE"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "be098e17-f286-5abb-bf9c-9516e4d8ce39",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# n8n-農產品\n\n## Purpose and structure\nThis folder contains the **n8n-農產品** workflow. Its executable nodes use `googleSheets`, `httpRequest`, `manualTrigger`, `splitOut`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nWhen clicking ‘Test workflow’\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Manual/2035_Manual_GoogleSheets_Automation_Webhook.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
