自動更新的台灣政府行事曆 API
Loading...
Loading...
範例: /2025/10.json
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"
}