# Japan Public Holidays (`shiokoshi356/japan-holidays-data`) Actor

Japan public holidays data. National holidays with dates and names in Japanese and English. Updated annually. MIT licensed open data.

- **URL**: https://apify.com/shiokoshi356/japan-holidays-data.md
- **Developed by:** [Shiokoshi356](https://apify.com/shiokoshi356) (community)
- **Categories:** Travel, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Japan Public Holidays Scraper

Scrape all Japan national public holidays with dates and names in both Japanese and English. Built on the open-source [holidays-jp](https://github.com/holidays-jp/api) dataset (MIT license).

### What data does it provide?

This Actor fetches the complete list of Japan's national public holidays, including:

- **Holiday date** in YYYY-MM-DD format
- **Japanese name** (e.g., 元日, 成人の日, 春分の日)
- **English translation** (e.g., New Year's Day, Coming of Age Day, Vernal Equinox Day)
- **Day of week** (Monday, Tuesday, etc.)
- **Year, month, and day** as separate fields for easy filtering

All 16 standard Japanese national holidays are covered, plus substitute holidays and special one-time holidays.

### Use cases

- **Tourism and travel apps** - Show upcoming holidays when planning trips to Japan
- **Calendar integrations** - Import Japanese holidays into scheduling systems
- **Business planning** - Account for Japanese holidays in international business operations
- **HR and payroll systems** - Track non-working days for Japanese offices
- **Market analysis** - Correlate business metrics with holiday periods
- **Cultural education** - Learn about Japanese national celebrations

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `year` | integer | all years | Filter holidays by year (e.g., 2026) |
| `include_english` | boolean | `true` | Include English translations of holiday names |
| `max_results` | integer | `100` | Maximum number of results (1-5000) |
| `log_level` | string | `INFO` | Logging verbosity: DEBUG, INFO, WARNING, ERROR |

### Output schema

Each item in the output dataset has the following fields:

```json
{
    "date": "2026-01-01",
    "name_ja": "元日",
    "name_en": "New Year's Day",
    "day_of_week": "Thursday",
    "year": 2026,
    "month": 1,
    "day": 1
}
````

### Example output

```json
[
    {
        "date": "2026-01-01",
        "name_ja": "元日",
        "name_en": "New Year's Day",
        "day_of_week": "Thursday",
        "year": 2026,
        "month": 1,
        "day": 1
    },
    {
        "date": "2026-01-12",
        "name_ja": "成人の日",
        "name_en": "Coming of Age Day",
        "day_of_week": "Monday",
        "year": 2026,
        "month": 1,
        "day": 12
    },
    {
        "date": "2026-05-05",
        "name_ja": "こどもの日",
        "name_en": "Children's Day",
        "day_of_week": "Tuesday",
        "year": 2026,
        "month": 5,
        "day": 5
    }
]
```

### Japan's 16 national holidays

| Japanese | English | Typical Date |
|----------|---------|-------------|
| 元日 | New Year's Day | January 1 |
| 成人の日 | Coming of Age Day | 2nd Monday of January |
| 建国記念の日 | National Foundation Day | February 11 |
| 天皇誕生日 | Emperor's Birthday | February 23 |
| 春分の日 | Vernal Equinox Day | Around March 20 |
| 昭和の日 | Showa Day | April 29 |
| 憲法記念日 | Constitution Memorial Day | May 3 |
| みどりの日 | Greenery Day | May 4 |
| こどもの日 | Children's Day | May 5 |
| 海の日 | Marine Day | 3rd Monday of July |
| 山の日 | Mountain Day | August 11 |
| 敬老の日 | Respect for the Aged Day | 3rd Monday of September |
| 秋分の日 | Autumnal Equinox Day | Around September 23 |
| スポーツの日 | Sports Day | 2nd Monday of October |
| 文化の日 | Culture Day | November 3 |
| 勤労感謝の日 | Labor Thanksgiving Day | November 23 |

### Data source

- **API**: [holidays-jp](https://github.com/holidays-jp/api) (`https://holidays-jp.github.io/api/v1/date.json`)
- **License**: MIT
- **Authentication**: None required (free public API)
- **Update frequency**: Updated annually when the Japanese government announces the next year's holidays

# Actor input Schema

## `year` (type: `integer`):

Filter holidays by year (e.g., 2026). Leave empty to get all available years.

## `include_english` (type: `boolean`):

Include English translations of holiday names.

## `max_results` (type: `integer`):

Maximum number of holiday records to return.

## `log_level` (type: `string`):

Logging verbosity.

## Actor input object example

```json
{
  "include_english": true,
  "max_results": 100,
  "log_level": "INFO"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("shiokoshi356/japan-holidays-data").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("shiokoshi356/japan-holidays-data").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call shiokoshi356/japan-holidays-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=shiokoshi356/japan-holidays-data",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Japan Public Holidays",
        "description": "Japan public holidays data. National holidays with dates and names in Japanese and English. Updated annually. MIT licensed open data.",
        "version": "0.1",
        "x-build-id": "i0vOMc0wAnGKIQgKu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shiokoshi356~japan-holidays-data/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shiokoshi356-japan-holidays-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/shiokoshi356~japan-holidays-data/runs": {
            "post": {
                "operationId": "runs-sync-shiokoshi356-japan-holidays-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/shiokoshi356~japan-holidays-data/run-sync": {
            "post": {
                "operationId": "run-sync-shiokoshi356-japan-holidays-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "year": {
                        "title": "Year",
                        "minimum": 1955,
                        "maximum": 2100,
                        "type": "integer",
                        "description": "Filter holidays by year (e.g., 2026). Leave empty to get all available years."
                    },
                    "include_english": {
                        "title": "Include English Names",
                        "type": "boolean",
                        "description": "Include English translations of holiday names.",
                        "default": true
                    },
                    "max_results": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of holiday records to return.",
                        "default": 100
                    },
                    "log_level": {
                        "title": "Log Level",
                        "enum": [
                            "DEBUG",
                            "INFO",
                            "WARNING",
                            "ERROR"
                        ],
                        "type": "string",
                        "description": "Logging verbosity.",
                        "default": "INFO"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
