🇹🇼 Taiwan Government Holiday Calendar API

自動更新的台灣政府行事曆 API

📋 功能特色

🚀 API 端點

取得可用的行事曆列表 GET

Loading...

取得特定月份行事曆 GET

Loading...

範例: /2025/10.json

取得整年份行事曆 GET

Loading...

範例: /2025/all.json

📖 使用範例

使用 JavaScript Fetch API 取得資料:

// 取得可用的行事曆列表
fetch('Loading.../index.json')
  .then(res => res.json())
  .then(data => console.log(data));

// 取得 2025 年 10 月的行事曆
fetch('Loading.../2025/10.json')
  .then(res => res.json())
  .then(data => console.log(data));

// 取得 2025 年整年的行事曆
fetch('Loading.../2025/all.json')
  .then(res => res.json())
  .then(data => console.log(data));

📝 回應格式

月份資料格式

{
  "year": 2025,
  "month": 10,
  "holidays": [
    {
      "date": "20251010",
      "name": "國慶日",
      "isHoliday": true,
      "isWeekend": false,
      "isSpecialHoliday": true,
      "description": "國慶日"
    }
  ],
  "generatedAt": "2024-10-07T12:00:00.000Z"
}

年度資料格式

{
  "year": 2025,
  "months": [
    {
      "month": 1,
      "holidays": [
        {
          "date": "20250101",
          "name": "開國紀念日",
          "isHoliday": true,
          "isWeekend": false,
          "isSpecialHoliday": true,
          "description": "開國紀念日"
        }
      ]
    }
  ],
  "generatedAt": "2024-10-07T12:00:00.000Z"
}