# Public Holidays Calendar - 250 Countries, Regions & Any Year (`helenisapi/public-holidays-calendar`) Actor

Public holidays of 250 countries and 651 regions, any year 1950-2100: country codes in, one row per holiday out with date, name, weekday and category (bank, school too). 📅

- **URL**: https://apify.com/helenisapi/public-holidays-calendar.md
- **Developed by:** [Helenis API](https://apify.com/helenisapi) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$0.50 / 1,000 holidays

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/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 📅 Public Holidays Calendar - 250 Countries, Regions & Any Year

**Every public holiday, for every country you work with.** List the national and regional holidays of 250 countries and 651 regions for any year from 1950 to 2100, plus bank holidays, school holidays and observances where a country has them: one clean row per holiday with its **date**, **name**, **weekday** and **category**, ready for a calendar, a payroll sheet or a delivery planner.

No API key: add country codes and hit **Run**.

***

### ⚡ Why this actor?

- 🌍 **250 countries and territories**, from France and the USA to Saudi Arabia and Japan.
- 🏛️ **Regional holidays:** German states (`DE-BY`), US states (`US-CA`), Spanish communities (`ES-CT`), Swiss cantons, Canadian provinces...
- 📆 **Any year, 1950 to 2100:** moving holidays (Easter, Islamic and lunar calendars) computed for you.
- 🏦 **Bank, government, optional and school holidays, observances:** add the categories you need, in 79 countries.
- 🌐 **Names in English or one of 164 local languages** when the country supports it.
- 🎯 **Exact:** observed days, Easter, Islamic, Hebrew, Chinese and Hindu calendars, all computed for you.
- 💸 **Cheap:** pay per holiday returned, nothing else.

***

### 📊 What data do you get?

One row per holiday:

| Field | Description | Example |
|---|---|---|
| `country` | ISO country code | `FR` |
| `countryName` | Country | `France` |
| `subdivision` | Region code, when you asked for one | `BY` |
| `year` | Year | `2026` |
| `date` | Date (YYYY-MM-DD) | `2026-07-14` |
| `weekday` | Day of the week | `Tuesday` |
| `name` | Holiday name | `National Day` |
| `category` | `public`, or the extra category asked | `bank` |
| `language` | Language of the names | `en_US` |

***

### 🚀 How to use it

1. List **countries** as ISO codes, one per line. Add a region after a dash for its local holidays (`DE-BY`).
2. List the **years** (empty = this year).
3. Optionally set the **language** of the names (`fr`, `de`, `es`...) and extra **categories** (`bank`, `school`...).
4. Click **Run**, then export the table.

#### Input example

```json
{
  "countries": ["FR", "US", "DE-BY"],
  "years": ["2026"]
}
```

#### Output example

```json
{
  "country": "FR",
  "countryName": "France",
  "year": 2026,
  "date": "2026-07-14",
  "weekday": "Tuesday",
  "name": "National Day",
  "category": "public",
  "language": "en_US"
}
```

Available as **JSON**, **CSV**, **Excel**, or via the **Apify API** and **dataset exports**.

***

### 💰 Pricing

| Event | When |
|---|---|
| 📅 Holiday | Each holiday row returned |

> 🆓 On the Apify **free plan**, each run lists the first 5 country-years.

The run stops cleanly when your spending limit is reached.

***

### 💡 Use cases

- 💼 **Payroll and HR:** public holidays of every office, every year.
- 🚚 **Logistics:** block delivery dates country by country.
- 📆 **Calendars and booking tools:** import holidays for your users' countries.
- 🌐 **Global teams:** know who is off, office by office.

***

### ❓ FAQ

**Which holidays are included?**
Public (statutory) holidays, national and, when you add a region code, regional. School holidays are not included.

**Where does the data come from?**
From the open-source `holidays` calendar, maintained by a large community and updated for moving holidays and new laws.

**How do I find a region code?**
Region codes are the official subdivision codes: `BY` for Bavaria, `CA` for California, `CT` for Catalonia, `QC` for Quebec. An unknown code is logged and skipped.

***

### 🤖 Use it from an AI agent

Add this actor to **Claude, ChatGPT, Cursor, VS Code** or any MCP client with one URL (sign in with your Apify account):

```
https://mcp.apify.com?tools=helenisapi/public-holidays-calendar
```

Your agent then calls it as a tool, with the input described above, and pays per event like a normal run. In code: `ApifyActorsTool("helenisapi/public-holidays-calendar")` in LangChain or CrewAI; in **n8n**, **Make** or **Zapier**, use the Apify app and pick this actor.

***

### 🌐 Also available as an API

The same engine is sold as a REST API on RapidAPI as **Public Holidays & Working Days - 200+ Countries** by **Helenis API**, with date checks, working-day counts and due dates.

***

### 🔒 Privacy

No personal data is processed: only country codes and years.

# Actor input Schema

## `countries` (type: `array`):

Two-letter ISO country codes, one per item, e.g. \["FR", "US", "DE-BY"]. Add a region code after a dash for its local holidays too: DE-BY (Bavaria), US-CA (California), ES-CT (Catalonia). Required; 250 countries and 651 regions. A value that is not a country code gets an error row (invalid_country). Each country and year returns one row per holiday.

## `years` (type: `array`):

Years to list, one per item, from 1950 to 2100, e.g. \["2026", "2027"]. Leave empty for the current year. Every country is listed for every year.

## `language` (type: `string`):

Language of the holiday names as a language code, e.g. "fr", "de" or "es", when the country supports it (164 local languages in all). Leave empty for English.

## `categories` (type: `array`):

Extra holiday categories on top of public holidays, one per item, e.g. \["bank", "school"]. Values include bank, government, optional, school and unofficial (observances such as Valentine's Day); each country has its own list. A country without a category asked gets its public holidays only, with a warning in the log. Leave empty for public holidays only.

## Actor input object example

```json
{
  "countries": [
    "FR",
    "US",
    "DE-BY"
  ],
  "years": [
    "2026"
  ]
}
```

# Actor output Schema

## `holidays` (type: `string`):

No description

# 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 = {
    "countries": [
        "FR",
        "US",
        "DE-BY"
    ],
    "years": [
        "2026"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("helenisapi/public-holidays-calendar").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 = {
    "countries": [
        "FR",
        "US",
        "DE-BY",
    ],
    "years": ["2026"],
}

# Run the Actor and wait for it to finish
run = client.actor("helenisapi/public-holidays-calendar").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "countries": [
    "FR",
    "US",
    "DE-BY"
  ],
  "years": [
    "2026"
  ]
}' |
apify call helenisapi/public-holidays-calendar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,helenisapi/public-holidays-calendar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HH4F4cbtMkZoLamyK/builds/63pRMb2aTt8wRSmFK/openapi.json
