JUHE API Marketplace
DATASET
Open Source Community

holiday-calendar

A standardized holiday dataset (JSON format) providing statutory holidays and make‑up workday arrangements for various regions.

Updated 1/17/2025
github

Description

Dataset Overview

Dataset Name

holiday-calendar Holiday Calendar

Dataset Content

  • Statutory Holidays
  • Make‑up Workdays

Data Sources

  • China (CN):
    • Data derived from the State Council Office's holiday arrangement notices
    • Updated annually, usually released at the end of the preceding year
  • Japan (JP):
    • Data sourced from the Cabinet Office "National Holidays"
    • Updated annually, typically released a year in advance

Data Format

  • Stored in JSON format
  • Date Types:
    • public_holiday: statutory holiday
    • transfer_workday: make‑up workday

Data Example

{
  "year": 2025,
  "region": "CN",
  "dates": [
    {
      "date": "2025-01-01",
      "name": "New Years Day",
      "name_cn": "元旦",
      "name_en": "New Years Day",
      "type": "public_holiday"
    },
    {
      "date": "2025-01-26",
      "name": "Spring Festival Workday",
      "name_cn": "春节补班",
      "name_en": "Spring Festival Workday",
      "type": "transfer_workday"
    }
  ]
}

Data Access

Usage

// Import package
const HolidayCalendar = require('holiday-calendar');

// Create instance
const calendar = new HolidayCalendar();

// Get date info for a specific day
calendar.getDateInfo('CN', '2024-01-01').then(dateInfo => {
  if (dateInfo) {
    console.log(`${dateInfo.date} is ${dateInfo.name_cn}`);
  }
});

// Get all dates for a specific year
calendar.getDates('CN', 2025).then(dates => {
  console.log('2025 dates:', dates);
});

// Use filters
calendar.getDates('CN', 2025, {
  type: 'public_holiday',           // Filter by type
  startDate: '2025-01-01',         // Filter by start date
  endDate: '2025-12-31'           // Filter by end date
}).then(dates => {
  console.log('Filtered dates:', dates);
});

Related Links

AI studio

Generate PPTs instantly with Nano Banana Pro.

Generate PPT Now

Access Dataset

Login to Access

Please login to view download links and access full dataset details.

Topics

Holidays
Data Standardization

Source

Organization: github

Created: 1/16/2025

Power Your Data Analysis with Premium AI Models

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.