# Public Holidays API: Bank & National Holidays by Country (`ponderable_hydrometer/public-holidays`) Actor

Public holidays API: official national and regional holidays for 100+ countries and any years, with date, weekday, local and English name, regions and type (public, bank, school, observance). Holiday calendar for payroll, scheduling and delivery planning. No key.

- **URL**: https://apify.com/ponderable_hydrometer/public-holidays.md
- **Developed by:** [Ponderable Hydrometer](https://apify.com/ponderable_hydrometer) (community)
- **Categories:** Travel, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 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/actors/running/actors-in-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 API — Bank & National Holidays by Country

**Official public holidays for every country you work with, as one table.** Plan shipping, staffing, payroll and support coverage with holiday dates for 100+ countries, including regional holidays and the regions they apply to. A holiday calendar by country and year, from the open Nager.Date project, with no key.

### What you can do with it

- **Payroll and scheduling**: know which days are bank or public holidays in each country.
- **Delivery and SLA planning**: skip non-working days in cutoff and delivery estimates.
- **Calendar sync**: load a year of holidays for several countries into a calendar or database.
- **Regional rules**: see which holidays are national and which apply only to certain regions.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `countries` | array | `["US"]` | Two-letter ISO country codes, e.g. `RO`, `DE`, `US`. |
| `years` | array | this year | Years to list, e.g. `2026`, `2027`. |

Example: `{"countries": ["RO", "DE", "US"], "years": [2026, 2027]}`

### What you get

One row per holiday: `country`, `year`, `date`, `weekday`, `localName`, `name` (English), `nationwide`, `regions` (ISO 3166-2 codes when the holiday is regional), `types` (such as Public, Bank, School, Observance).

### Output sample

```json
{
  "country": "RO",
  "year": 2026,
  "date": "2026-12-01",
  "weekday": "Tuesday",
  "localName": "Ziua Națională",
  "name": "National Day",
  "nationwide": true,
  "regions": [],
  "types": [
    "Public"
  ]
}
```

### Use it from the API or an AI agent

```bash
curl -X POST "https://api.apify.com/v2/acts/ponderable_hydrometer~public-holidays/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"countries": ["RO", "DE"], "years": [2026]}'
```

Through the Apify MCP server, an AI agent can call it as a tool: `https://mcp.apify.com?tools=ponderable_hydrometer/public-holidays`.

### Limits and good to know

- Moveable holidays (Easter, Orthodox Easter and others) are given per year as published by the source.
- A few countries are not covered, and a country-year can have no data; the run log names them and the run continues.
- Years outside 1900-2200 are ignored.
- Holidays decided at short notice by a government may appear late in the source.
- The Actor lists holidays; it does not calculate working days or deadlines.
- If no holiday is returned for the whole input, the run ends as FAILED.

### FAQ

**Are school holidays included?** Only where the source marks a day with the School type; this is not a school-calendar tool.

**How do I get only nationwide holidays?** Filter the `nationwide` field in the dataset.

**Can I get dates for next year?** Yes, add the year to `years`.

### Pricing

Pay per result — **$0.30 per 1,000 results** (one holiday = one result), plus Apify's standard per-run start event ($0.00005 per GB of memory, so a fraction of a cent per run). No subscription.

# Actor input Schema

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

Two-letter country codes, e.g. RO, DE, US.

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

Years, e.g. 2026, 2027. Empty = this year.

## Actor input object example

```json
{
  "countries": [
    "RO",
    "DE",
    "US"
  ],
  "years": []
}
```

# Actor output Schema

## `results` (type: `string`):

All rows produced by this run, as JSON.

# 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": [
        "RO",
        "DE",
        "US"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ponderable_hydrometer/public-holidays").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": [
        "RO",
        "DE",
        "US",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ponderable_hydrometer/public-holidays").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": [
    "RO",
    "DE",
    "US"
  ]
}' |
apify call ponderable_hydrometer/public-holidays --silent --output-dataset

```

## MCP server setup

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

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/CzOhYaZuA0goDaJYh/builds/e6L6PAiYme4xIkyXU/openapi.json
