# Business Days & Public Holidays Calendar - 200+ Countries (`loopchips/business-days-holidays`) Actor

A working calendar you can compute with. Every date in a range marked as weekend, holiday or business day, with a running business-day count. Holiday names in English and the local language. Over 200 countries.

- **URL**: https://apify.com/loopchips/business-days-holidays.md
- **Developed by:** [Loopchips](https://apify.com/loopchips) (community)
- **Categories:** Automation, E-commerce, Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 calendar days

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

## Business Days & Public Holidays Calendar

A working calendar you can compute with, for over 200 countries.

Most holiday datasets give you a list of dates. This one gives you every date in
your range, marked as weekend, holiday or business day, with a running
business-day count. That is what "deliver within 3 working days" actually needs.

### What you get

| Field | Description |
|---|---|
| `date` / `weekday` | The day |
| `isWeekend` / `isHoliday` / `isBusinessDay` | The three flags you filter on |
| `businessDayNumber` | Running count of working days from the start of the range |
| `holidayName` | Holiday in English |
| `holidayLocalName` | Holiday in the local language |
| `holidayType` | Public, bank, optional and so on |
| `nationwide` / `regions` | Whether it applies everywhere, and where if not |

### Example input

```json
{
  "countries": ["KR", "US"],
  "startDate": "2026-09-01",
  "endDate": "2026-10-15",
  "weekendDays": [0, 6]
}
```

Set `weekendDays` to `[5, 6]` for countries where the weekend is Friday and
Saturday. Set `onlyHolidays` to true if you just want the holiday dates.

### Example output

```json
{
  "country": "KR",
  "date": "2026-09-24",
  "weekday": "Thursday",
  "isWeekend": false,
  "isHoliday": true,
  "isBusinessDay": false,
  "businessDayNumber": null,
  "holidayName": "Chuseok",
  "holidayLocalName": "추석"
}
```

### What people use it for

- **Delivery and SLA promises** - what date is three working days from now
- **Cross-border operations** - Korea and the US on the same calendar, side by side
- **Payroll and billing cycles** - working days per month, per country
- **Campaign planning** - long weekends and holiday clusters spotted in advance

### Pricing

Pay per result. One row per date per country, or only the holidays if you
choose that.

### Notes

- Holiday dates come from the Nager.Date public holiday database.
- Regional holidays are marked with the regions they apply to, so you can decide
  whether they count for your operation.

# Actor input Schema

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

Two-letter country codes, for example KR, US, JP, DE. Over 200 are supported.

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

YYYY-MM-DD. Defaults to 1 January of the current year.

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

YYYY-MM-DD. Defaults to 31 December of the current year.

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

Which weekdays count as weekend. 0 is Sunday and 6 is Saturday. Use \[5,6] for Friday and Saturday weekends.

## `onlyHolidays` (type: `boolean`):

Return just the holiday dates instead of every date in the range.

## Actor input object example

```json
{
  "countries": [
    "KR",
    "US"
  ],
  "weekendDays": [
    0,
    6
  ],
  "onlyHolidays": false
}
```

# Actor output Schema

## `calendar` (type: `string`):

One row per date, marked as weekend, holiday or business day.

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

// Run the Actor and wait for it to finish
const run = await client.actor("loopchips/business-days-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": [
        "KR",
        "US",
    ] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,loopchips/business-days-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/JVVmEJYi3HfSPoCYh/builds/u5lG6b0pTbpYEv7r6/openapi.json
