Skip to main content

TW-Request-Agri data open platform-daily market sheep pricing

Workflow preview

Workflow preview
100%
TW-Request-Agri data open platform-daily market sheep pricing preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates the process of fetching agricultural transaction data from the Taiwan Agricultural Products Open Data Platform and storing it in a Google Sheets document for further analysi...

Best for

  • Market Research automation workflows
  • beginner n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by darrell_tw.

Original n8n.io source

1.1 Workflow description

Title
TW-Request-Agri data open platform-daily market sheep pricing
Workflow name
TW-Request-Agri data open platform-daily market sheep pricing

This workflow automates the process of fetching agricultural transaction data from the Taiwan Agricultural Products Open Data Platform and storing it in a Google Sheets document for further analysis.

Key Features

  1. Manual Trigger: Allows manual execution of the workflow to control when data is fetched.
  2. HTTP Request: Sends a request to the Open Data Platform's API to retrieve detailed transaction data, including:
    • Pricing (Upper, Middle, Lower, Average)
    • Transaction quantities
    • Crop and market details
  3. Split Out Node: Processes each record individually, ensuring accurate handling of every data entry.
  4. Google Sheets Integration: Appends the data into a structured Google Sheets document for easy access and analysis.

Node Configurations

1. Manual Trigger

  • Purpose: Start the workflow manually.
  • Configuration: No setup needed.

2. HTTP Request

  • Purpose: Fetch agricultural data.
  • Configuration:
    • URL: https://data.moa.gov.tw/api/v1/SheepQuotation
    • Query Parameters:
      • Start_time: 2024/12/01
      • End_time: 2024/12/31
      • MarketName: 台北二
      • api_key: <your_api_key>
    • Headers:
      • accept: application/json

3. Split Out

  • Purpose: Split the API response data array into individual items.
  • Configuration:
    • Field to Split Out: Data

4. Google Sheets

  • Purpose: Append the data to Google Sheets.
  • Configuration:
    • Operation: Append
    • Document ID: <your_document_id>
    • Sheet Name: Sheet1
    • Mapped Fields:
      • TransDate, TcType, CropCode, CropName, MarketCode, MarketName
      • Upper_Price, Middle_Price, Lower_Price, Avg_Price, Trans_Quantity

Workflow台灣農業產品開放資料平臺 獲取農產品交易數據,並將其儲存到 Google Sheets 文件 中進行進一步分析。

主要功能

  1. Manual Trigger:允許手動執行工作流程,以控制數據獲取的時間。
  2. HTTP Request:向開放資料平臺的 API 發送請求,獲取詳細的交易數據,包括:
    • 價格 (Upper, Middle, Lower, Average)
    • 交易數量
    • 作物和市場詳細資料
  3. Split Out Node:逐筆處理每一筆記錄,確保數據準確無誤。
  4. Google Sheets Integration:將數據追加到結構化的 Google Sheets 文件中,方便存取和分析。

節點設定

1. Manual Trigger

  • 用途:手動啟動工作流程。
  • 設定:無需額外設定。

2. HTTP Request

  • 用途:抓取農產品數據。
  • 設定
    • URL: https://data.moa.gov.tw/api/v1/SheepQuotation
    • 查詢參數 (Query Parameters)
      • Start_time: 2024/12/01
      • End_time: 2024/12/31
      • MarketName: 台北二
      • api_key: <your_api_key>
    • 標頭 (Headers)
      • accept: application/json

3. Split Out

  • 用途:將 API 回應的數據陣列分解為個別項目。
  • 設定
    • Field to Split Out: Data

4. Google Sheets

  • 用途:將數據追加至 Google Sheets。
  • 設定
    • OperationAppend
    • Document ID<your_document_id>
    • Sheet NameSheet1
    • 映射欄位 (Mapped Fields)
      • TransDate, TcType, CropCode, CropName, MarketCode, MarketName
      • Upper_Price, Middle_Price, Lower_Price, Avg_Price, Trans_Quantity

請多利用 Curl Import 功能 例如

curl -X GET "https://data.moa.gov.tw/api/v1/AgriProductsTransType/?Start_time=114.01.01&End_time=114.01.01&MarketName=%E5%8F%B0%E5%8C%97%E4%BA%8C" -H "accept: application/json"

農業資料開放平台 文件

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 4 - Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

3. Summary Table

Workflow TW-Request-Agri data open platform-daily market sheep pricing
Complexity beginner
Nodes 4
Categories Market Research
Author darrell_tw
Published 01 Jan 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2687/2687.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does TW-Request-Agri data open platform-daily market sheep pricing do?

This workflow automates the process of fetching agricultural transaction data from the Taiwan Agricultural Products Open Data Platform and storing it in a Google Sheets document for further analysi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.