Who is this workflow for? This workflow automates the retrieval of daily sheep pricing data from the Taiwan Agricultural Products Open Data Platform and seamlessly stores it in a Google Sheets document. This automation ensures up-to-date data collection for analysis without manual intervention..

What does this workflow do?

1. Manual Trigger

  • Purpose: Initiates the workflow on-demand.
  • Configuration: No setup required. Simply activate the trigger when you need to fetch the latest data.

2. HTTP Request

  • Purpose: Retrieves sheep pricing data from the Taiwan Agricultural Products Open Data Platform.
  • 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
  • Example CURL Command:
  curl -X GET "https://data.moa.gov.tw/api/v1/SheepQuotation?Start_time=2024/12/01&End_time=2024/12/31&MarketName=台北二&api_key=<your_api_key>" -H "accept: application/json"

3. Split Out

  • Purpose: Breaks down the API response array into individual records for processing.
  • Configuration:
  • Field to Split Out: Data

4. Google Sheets Integration

  • Purpose: Appends each data record to a specified Google Sheets document.
  • 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

🤖 Why Use This Automation Workflow?

  • Efficiency: Eliminates the need for manual data fetching, saving time and reducing errors.
  • Real-Time Data: Ensures you have the latest sheep pricing information for timely decision-making.
  • Seamless Integration: Directly integrates with Google Sheets, facilitating easy data access and analysis.

👨‍💻 Who is This Workflow For?

This workflow is ideal for:

  • Agricultural Analysts seeking to monitor market trends.
  • Farmers and Sellers wanting to track pricing fluctuations.
  • Data Scientists conducting research on agricultural markets.

🎯 Use Cases

  1. Market Trend Analysis: Regularly update a dataset to analyze sheep price trends over time.
  2. Inventory Management: Align pricing data with inventory levels to optimize stock and pricing strategies.
  3. Reporting: Automatically generate reports with the latest pricing data for stakeholders.

TL;DR

This workflow efficiently automates the process of fetching daily sheep pricing data from the Taiwan Agricultural Products Open Data Platform and storing it in Google Sheets. By leveraging manual triggers and seamless integrations, it provides a reliable solution for maintaining up-to-date agricultural pricing information for analysis and decision-making.

Help us find the best n8n templates

About

A curated directory of the best n8n templates for workflow automations.