# Public Holidays & Business Days Calculator, 100+ Countries (`ucchiii/holidays-business-days`) Actor

Public holidays for 100+ countries (input: country codes), business days between two dates, add or subtract N business days, business-day checks (Japanese era names for Japan). Custom weekends, regional holidays. No scraping. Empty input = free demo. $1.30 per 1,000 rows.

- **URL**: https://apify.com/ucchiii/holidays-business-days.md
- **Developed by:** [Actor Factory](https://apify.com/ucchiii) (community)
- **Categories:** Developer tools, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.91 / 1,000 result rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 & Business Days Calculator — 100+ countries

Need to know **how many working days** are between two dates, **what date is 10 business days from now**, or whether
a list of dates falls on a **holiday or weekend** — in the US, UK, Japan, India, Germany and 100+ other countries?
This Actor does the calculation for you in one run: no scraping, no API keys, no proxies.

Typical uses:

- **SLA and delivery deadlines** — "due in 5 business days", skipping local holidays
- **Payroll and invoicing** — working days per month, payment dates that avoid bank holidays
- **Shipping and logistics estimates** — delivery dates per destination country
- **Scheduling and reporting** — holiday calendars as a dataset for your BI tool or spreadsheet

### Use cases

- SLA and delivery-date calculation: the date N business days from today
- Payroll and invoicing: working days in a month for a given country
- Flag holidays and weekends in a list of dates before scheduling campaigns or shipments
- Multi-country teams: compare public holidays across countries

### Modes

| Mode | What you get |
|---|---|
| `holidays` (default) | Every public holiday in the period, per country: date, name, local name, weekday, observed flag. Japan rows also have the Japanese era date (`令和8年1月1日`). |
| `businessDays` | Calendar days, business days, holidays on weekdays and weekend days between two dates (both included). |
| `addBusinessDays` | The date N business days after (or before, if N is negative) a start date, plus the holidays that were skipped. |
| `checkDates` | For each date in a list: is it a business day, a holiday (with name) or a weekend? |

Options: several countries per run, regional holidays (`{"US": "CA", "DE": "BY"}`), custom weekends
(`["Fri", "Sat"]` for the Gulf region), holiday names in your language (`en`, `ja`, `de`, `fr`, `es`, … where the
calendar supports it; the local name is always in `nameLocal`).

### Input

```json
{
  "mode": "businessDays",
  "countries": ["US", "JP", "IN"],
  "startDate": "2026-01-01",
  "endDate": "2026-12-31"
}
```

```json
{ "mode": "addBusinessDays", "countries": ["GB"], "date": "2026-12-23", "n": 5 }
```

**Leave the input empty** to see a free demo: this year's public holidays of the US and Japan. Demo rows are not
charged and carry `"_demo": true`.

### Output examples

Holiday (`mode: holidays`):

```json
{"country": "JP", "subdivision": null, "date": "2026-01-01", "name": "New Year's Day", "nameLocal": "元日",
 "weekday": "Thu", "isObserved": false, "wareki": "令和8年1月1日"}
```

Business days (`mode: businessDays`):

```json
{"country": "US", "subdivision": null, "startDate": "2026-01-01", "endDate": "2026-12-31",
 "calendarDays": 365, "businessDays": 250, "holidaysOnWeekdays": 11, "weekendDays": 104}
```

Add business days: `{"country": "GB", "startDate": "2026-12-23", "n": 5, "resultDate": "2027-01-04", "skippedHolidays": [...]}`
Check dates: `{"country": "US", "date": "2026-12-25", "isBusinessDay": false, "isHoliday": true, "holidayName": "Christmas Day", "isWeekend": false}`

Invalid country or region codes and malformed dates are skipped and listed in the `SUMMARY` record of the
key-value store, so the rest of your run still completes.

### Pricing

**$1.30 per 1,000 result rows** (one holiday, one summary, one calculation or one date check = one row). The demo is free.
Set a maximum cost per run and the Actor stops when it is reached.

### Data and accuracy

Holiday data comes from the open-source [python-holidays](https://github.com/vacanza/holidays) library (MIT). Holiday
rules can change by decision of public authorities (special one-off holidays, moved dates, regional rules) and some
observed days differ by employer or industry. Treat the results as a reliable reference, and check official
announcements for legally or financially critical dates. Business days = days that are neither weekend days (as you set
them) nor public holidays of the selected country/region; company-specific or bank-specific closures are not included.

### More tools from the same developer

- [Japanese Text Toolkit](https://apify.com/ucchiii/japanese-text-toolkit) — furigana, romaji, wareki dates and normalization for Japanese text
- [Remove Duplicates](https://apify.com/ucchiii/dataset-dedup-merge) — merge Apify datasets and remove duplicates by the fields you choose
- [Google Sheets Export](https://apify.com/ucchiii/google-sheets-export) — export an Apify dataset to Google Sheets

# Actor input Schema

## `mode` (type: `string`):

What to calculate. 'holidays' (default): list public holidays between startDate and endDate. 'businessDays': count business days between startDate and endDate. 'addBusinessDays': add n business days to date (needs n). 'checkDates': check each of dates (needs dates). Nothing is required: leave the whole input empty for a free demo (US and JP holidays this year).

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

Two-letter ISO country codes, e.g. US, GB, JP, IN, DE. Default: US. One result set per country; invalid codes are skipped and listed in the SUMMARY record.

## `subdivisions` (type: `object`):

Regional holidays per country, as JSON, e.g. {"US": "CA", "DE": "BY"}. Invalid region codes are skipped and listed in the SUMMARY record.

## `startDate` (type: `string`):

First day of the period, YYYY-MM-DD. Default: January 1 of this year. In addBusinessDays mode it is used as the start date if 'date' is empty.

## `endDate` (type: `string`):

Last day of the period (included), YYYY-MM-DD. Default: December 31 of the start year (this year). Max 20 years.

## `weekendDays` (type: `array`):

Days that are not working days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. Default: Sat and Sun. Use \["Fri", "Sat"] for e.g. Saudi Arabia or the UAE (applies to all countries in the run).

## `date` (type: `string`):

Start date for 'Add N business days', YYYY-MM-DD. The start day itself is not counted. Default: today.

## `n` (type: `integer`):

Used only in 'addBusinessDays' mode, where it is required. Business days to add to the date, e.g. 10. Negative numbers go backwards. 0 returns the first business day on or after the date.

## `dates` (type: `array`):

Used only in 'checkDates' mode, where it is required. List of dates (YYYY-MM-DD), e.g. \['2026-12-25', '2026-12-26']. Each date is checked for every country: business day, holiday, weekend.

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

Language code for holiday names, e.g. en, ja, de, fr, es. If the country's calendar does not support it, the local default language is used. Default: en. The local-language name is also given in nameLocal.

## Actor input object example

```json
{
  "mode": "holidays",
  "countries": [
    "US",
    "GB",
    "JP",
    "IN",
    "DE"
  ],
  "weekendDays": [
    "Sat",
    "Sun"
  ],
  "language": "en"
}
```

# Actor output Schema

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

Rows depend on mode: holidays (country, date, weekday, name, nameLocal, isObserved, wareki), businessDays (counts per period), addBusinessDays (resultDate, skippedHolidays), checkDates (isBusinessDay, isHoliday, holidayName, isWeekend).

## `summary` (type: `string`):

Record SUMMARY: skipped or invalid inputs (country codes, regions, dates).

# 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 = {
    "mode": "holidays",
    "countries": [
        "US",
        "GB",
        "JP",
        "IN",
        "DE"
    ],
    "weekendDays": [
        "Sat",
        "Sun"
    ],
    "language": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("ucchiii/holidays-business-days").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 = {
    "mode": "holidays",
    "countries": [
        "US",
        "GB",
        "JP",
        "IN",
        "DE",
    ],
    "weekendDays": [
        "Sat",
        "Sun",
    ],
    "language": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("ucchiii/holidays-business-days").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 '{
  "mode": "holidays",
  "countries": [
    "US",
    "GB",
    "JP",
    "IN",
    "DE"
  ],
  "weekendDays": [
    "Sat",
    "Sun"
  ],
  "language": "en"
}' |
apify call ucchiii/holidays-business-days --silent --output-dataset

```

## MCP server setup

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

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/aDopfFUvoo7Mo4Osx/builds/2qAANnDqTTKinjLXm/openapi.json
