# Korea Public Holidays & Business Days (13 countries) (`jimin-data/kr-holidays-business-days`) Actor

Count business days, add business days to a date, or list public holidays for 13 countries including Korea, Japan and the US, 2026 to 2028. Each result shows the holidays it removed, their source, and whether a date is still provisional. No API key. $0.005 per result, no start fee.

- **URL**: https://apify.com/jimin-data/kr-holidays-business-days.md
- **Developed by:** [jimin DATA](https://apify.com/jimin-data) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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/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

## Korea Public Holidays & Business Days (13 countries)

Count the business days between two dates, add business days to a date, or list a year's public holidays. Covers 13 countries for 2026 to 2028. Each request returns one JSON row that shows the answer, the holidays that were taken out, where each holiday comes from, and whether any of them is still provisional.

The holiday data is packaged inside the Actor. It needs no API key and makes no outside requests.

### What it does

- Accepts 1 to 1,000 requests per run. Each request is one of three types:
  - `business_days`: business days between `start` and `end`
  - `add_business_days`: the date that is `days` business days after (or before) `start`
  - `public_holidays`: the public holidays of one country in one year
- Countries: BR, DE, ES, FR, GB, ID, IN, JP, KR, MX, PH, US, VN.
- Regions are available for US (51), BR (27), ES (19), DE (16), GB (3) and FR (1). The other countries have no regional split.
- Dates from 2026-01-01 to 2028-12-31.
- Korean holidays come from the Korea Astronomy and Space Science Institute (한국천문연구원) special-day data, an official Korean source.
- Every holiday in a result is marked when it is provisional (not yet officially published), estimated within one day (depends on moon sighting), not checked against an official list, optional, a half day, or a working day.
- You can change the counting rules per request: leave out the start date, count half-day holidays as 0.5, treat optional days as days off, or treat Saturday as a working day.

### Who it is for

- Developers who calculate deadlines, delivery dates or settlement dates that depend on Korean or other national holidays.
- Teams that plan across several of the 13 countries and want one input format and one output format.
- AI agents and workflows that need a holiday answer with its source attached.

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `requests` | array of objects | yes | 1 to 1,000 requests per run. Duplicates are processed once. |

Fields of one request:

| Field | Used by | Description |
|---|---|---|
| `type` | all | `business_days`, `add_business_days` or `public_holidays` |
| `country` | all | Two-letter code from the list above. Upper or lower case. |
| `region` | all, optional | Region code for US, BR, ES, DE, GB or FR. If the code is not valid, the error message lists the valid codes. |
| `start`, `end` | `business_days` | Dates as `YYYY-MM-DD`. Both ends are counted unless `exclude_start` is true. |
| `start`, `days` | `add_business_days` | A date and a whole number from -500 to 500. The start date itself is not counted. |
| `year` | `public_holidays` | 2026, 2027 or 2028 |
| `exclude_start` | `business_days`, optional | `true` = do not count the start date. Default `false`. |
| `half_day_as_half` | `business_days`, optional | `true` = a half-day holiday counts as 0.5 business day. Default `false` = a full day off. |
| `include_optional` | `business_days`, `add_business_days`, optional | `true` = optional days also count as days off. Default `false`. |
| `saturday_is_workday` | `business_days`, `add_business_days`, optional | `true` = only Sunday is a weekend day. Default `false`. |

```json
{
  "requests": [
    { "type": "business_days", "country": "KR", "start": "2026-12-01", "end": "2026-12-31" },
    { "type": "add_business_days", "country": "KR", "start": "2027-02-05", "days": 10 },
    { "type": "public_holidays", "country": "KR", "year": 2027 }
  ]
}
```

Two requests are duplicates when the type, country, region and values are the same. Letter case of the country and region, and options left at `false`, make no difference. The duplicate is skipped and counted in `duplicates_skipped`.

Input that is rejected (the run fails before anything is calculated, saved or charged):

- `requests` is missing, empty or has more than 1,000 items
- any item in `requests` is not an object

A request with a wrong value (unknown type or country, a date outside 2026 to 2028, an unknown field) does not fail the run. It gets its own row with status `invalid_request` and is not charged.

### Output

One dataset row per processed request.

| Field | Description |
|---|---|
| `type` | Request type |
| `request` | The request after normalization |
| `status` | `ok` or `invalid_request` |
| `error` | Reason text on invalid rows, otherwise `null` |
| `billable` | `true` for an `ok` row, `false` for an invalid row. Actual charged counts are in the `OUTPUT` record. |
| `result` | The calculation result (see below), or `null` on invalid rows |
| `data_version` | Data generation date plus the first 12 characters of the data hash, e.g. `2026-11-25+34cc4daf0cb0` |
| `data_generated` | Date the holiday data was generated |
| `years_covered` | `[2026, 2027, 2028]` |
| `legal_determination` | Always `false` |

Main fields of `result`:

| Request type | Fields |
|---|---|
| `business_days` | `business_days`, `calendar_days`, `weekend_days`, `holidays_removed`, `holidays_on_weekend`, `optional_days_not_removed`, `counting`, `half_day_rule` |
| `add_business_days` | `result_date`, `result_weekday`, `holidays_skipped`, `rule` |
| `public_holidays` | `holidays`, `count`, `days_off_count` |
| all | `country`, `country_name`, `region`, `weekend`, `flags`, `notes`, `official_documents`, `sources`, `data_version`, `notice` |

Each holiday has `date`, `weekday`, `name` (local language), `name_en` (can be `null`), the marks `provisional`, `estimated_plus_minus_1_day`, `not_checked`, `optional`, `half_day`, `working_day_not_off`, and `source` with `source_title`.

`flags.result_may_change` is `true` when the answer depends on a provisional, estimated or unchecked holiday.

#### Example: business days in Korea, December 2026

From a run on the Apify platform. Some fields are left out to save space.

```json
{
  "type": "business_days",
  "request": { "type": "business_days", "country": "KR", "start": "2026-12-01", "end": "2026-12-31" },
  "status": "ok",
  "error": null,
  "billable": true,
  "result": {
    "country": "KR",
    "start": "2026-12-01",
    "end": "2026-12-31",
    "counting": "both ends included",
    "business_days": 22,
    "calendar_days": 31,
    "weekend_days": 8,
    "holidays_removed": [
      {
        "date": "2026-12-25",
        "name": "기독탄신일",
        "name_en": "Christmas Day",
        "provisional": false,
        "estimated_plus_minus_1_day": false,
        "not_checked": false,
        "source_title": "한국천문연구원 특일 정보(공공데이터포털 15012690)"
      }
    ],
    "flags": { "provisional": 0, "estimated_plus_minus_1_day": 0, "not_checked": 0, "result_may_change": false }
  },
  "data_version": "2026-11-25+34cc4daf0cb0",
  "data_generated": "2026-11-25",
  "years_covered": [2026, 2027, 2028],
  "legal_determination": false
}
```

Other results from test runs: 10 business days after 2027-02-05 in Korea is 2027-02-23; Japan has 17 public holidays in 2027; a request for 2030 returns `invalid_request`.

#### Run summary

A summary is saved to the key-value store under `OUTPUT`. It is written at the start of the run and again at the end, including when the run fails. The final write is tried up to three times. If it still fails, the run ends as failed, `OUTPUT` may still show `running`, and the summary is printed in the run log.

In a restarted run the counts include what earlier attempts of the same run saved and charged, also when the restarted attempt fails. If an attempt fails before it can read `STATE`, it keeps the previous attempt's counts and only changes `status` and `error` (`counts_from_previous_attempt: true`). If it cannot read `OUTPUT` either, it leaves `OUTPUT` unchanged and writes the error to the run log.

| Field | Description |
|---|---|
| `status` | `running`, `succeeded`, `charge_limit_reached` or `failed` |
| `error` | Error text when the run failed, otherwise `null` |
| `pay_per_event` | Whether the run uses pay-per-event pricing (the pricing model, not whether anything was charged) |
| `total_input` | Number of items in `requests` |
| `rows_saved` | Dataset rows saved |
| `processed` | Billable result rows saved |
| `charged_results` | `result` events charged |
| `saved_uncharged` | Pay-per-event runs only: result rows saved and not charged, because the charge returned 0 at the limit or the run stopped before the charge (the `STATE` write before charging failed). Always 0 in other runs |
| `charge_unconfirmed` | Result rows saved whose charge was not confirmed: the charge call failed, or the run stopped right after the charge and before it was recorded. These results may have been charged. No result is charged twice |
| `invalid` | Invalid rows saved |
| `no_results` | Rows saved with no result (a `public_holidays` list with no holidays). Not charged |
| `duplicates_skipped` | Duplicate requests skipped (only those met before the charge limit stopped the run) |
| `not_processed_charge_limit` | Requests not processed because the charge limit was reached |
| `not_processed_failure` | Requests not processed because the run failed |
| `resumed` | `true` when the run continued from a saved `STATE` record (the same run restarted) |
| `resumed_from_state` | Requests taken from `STATE` without saving or charging them again |
| `counts_from_previous_attempt` | Present and `true` only when the attempt failed before reading `STATE`; the counts are those of the previous attempt |
| `counts_unknown` | Present and `true` only together with `counts_from_previous_attempt`, when the previous attempt itself did not finish (its `OUTPUT` still said `running`). The counts may then be lower than what was charged |
| `data_version` | Data version |

### Pricing

Pay per event, with one event: `result`.

- **$0.005 per result** ($5 per 1,000 results).
- **No start fee.**
- One result = one valid request answered. A `public_holidays` request is one result, however many holidays it lists.

Not charged:

- `invalid_request` rows, including `business_days` requests whose `start` is after `end`
- `public_holidays` results with no holidays (saved, counted in `no_results`)
- Duplicate requests in the same run
- Requests left unprocessed after the charge limit was reached
- Runs whose input is rejected
- A result whose row could not be saved

How charging works:

- Each result row is saved first and charged after the save has finished, one `result` event per row.
- Charge limit: before each result the Actor checks whether one more event fits within the maximum charge you set for the run. When the limit is reached it stops, sets `OUTPUT.status` to `charge_limit_reached` and writes the number of unprocessed requests to `OUTPUT.not_processed_charge_limit`.
- If a run fails partway, the run ends as failed and the results whose charge was confirmed stay charged; results counted in `charge_unconfirmed` may also have been charged. Charging is per result, not per run.
- Restarts: the Actor keeps a `STATE` record in the run's key-value store with one entry per saved request. If the same run is restarted (for example after a platform migration), requests already in `STATE` are not saved or charged again. If the process stopped while a charge was in progress, that request is not charged again and is counted in `charge_unconfirmed` (it may have been charged). If the Actor cannot read `STATE` or does not recognise it, it stops without writing `STATE`, so the record is kept. Each charge also carries an idempotency key.
- Known limit: if a row was saved but the reply was lost, or every `STATE` write in that attempt failed, the restarted run may save the same result row once more. It is still charged only once.
- Pricing check: in a pay-per-event run the Actor refuses to start if the pricing has no `result` event, or if any other event (including the automatic run-start and dataset-item events) has a price.

### Data sources

| Country | Source |
|---|---|
| KR | Korea Astronomy and Space Science Institute (한국천문연구원) special-day data, Public Data Portal 15012690, KOGL Type 1 (attribution), with python-holidays 0.83 (MIT) |
| JP | Cabinet Office (内閣府) `syukujitsu.csv`, Government of Japan Standard Terms of Use 2.0, with python-holidays |
| US | OPM Federal Holidays (public domain); state holidays from python-holidays |
| GB | GOV.UK `bank-holidays.json`, OGL v3.0 |
| FR | calendrier.api.gouv.fr, Licence Ouverte 2.0 |
| ES | BOE, with python-holidays |
| DE, BR | python-holidays |
| ID | SKB 3 Menteri |
| IN | DoPT Office Memorandum |
| MX | Ley Federal del Trabajo, art. 74 |
| PH | Proclamations 1006 and 1427 |
| VN | Bộ Nội vụ notice |

The data was generated on 2026-11-25. Each row lists the sources it used in `result.sources`. When you reuse the output, credit those sources.

### Limitations

- **For planning, not a legal or employment decision.** The output makes no legal determination (`legal_determination` is always `false`). Whether a day is a day off for you depends on your employer, contract, sector and local rules.
- **2026 to 2028 only.** Dates and years outside this range return `invalid_request`. A later year is added as a new build of the Actor.
- **Some dates can change.** Holidays marked `provisional` are not yet officially published. Holidays marked `estimated_plus_minus_1_day` depend on moon sighting. Holidays marked `not_checked` were not compared against an official list. Check `flags.result_may_change` in each row.
- **Company and sector closures are not included.** The Actor knows public holidays, not your company's calendar.
- **Regions exist for six countries only.** Korea, Japan and the other five countries have no regional split.
- **Holiday names are in the local language.** `name_en` is filled for some countries and `null` for others.
- **Pinned data.** The holiday data does not update by itself. Check `data_version` in each row.

### FAQ

**Do I need an API key?**
No. The holiday data is inside the Actor and the Actor makes no outside requests.

**How do I know if a result might change later?**
Look at `result.flags.result_may_change`. It is `true` when the answer depends on a holiday that is provisional, estimated within one day or not checked against an official list. The holidays themselves carry the same marks.

**Am I charged for a request with a mistake in it?**
No. A request with a wrong value gets a row with status `invalid_request` and the reason in `error`, and is not charged. Duplicate requests in the same run are not charged either.

### Contact

jimin DATA
contact@jimin.io.kr
https://jimin.io.kr/

# Actor input Schema

## `requests` (type: `array`):

1 to 1,000 requests per run. Each request is an object with a "type": "business_days" (country, start, end), "add_business_days" (country, start, days from -500 to 500) or "public_holidays" (country, year). Countries: BR, DE, ES, FR, GB, ID, IN, JP, KR, MX, PH, US, VN. Dates are YYYY-MM-DD, from 2026-01-01 to 2028-12-31. Optional fields: "region" (US, BR, ES, DE, GB, FR only), "exclude_start", "half_day_as_half", "include_optional", "saturday_is_workday" (true or false). Duplicates are processed once. A request with a wrong value gets an "invalid_request" row and is not charged.

## Actor input object example

```json
{
  "requests": [
    {
      "type": "business_days",
      "country": "KR",
      "start": "2026-12-01",
      "end": "2026-12-31"
    },
    {
      "type": "add_business_days",
      "country": "KR",
      "start": "2027-02-05",
      "days": 10
    },
    {
      "type": "public_holidays",
      "country": "KR",
      "year": 2027
    }
  ]
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "requests": [
        {
            "type": "business_days",
            "country": "KR",
            "start": "2026-12-01",
            "end": "2026-12-31"
        },
        {
            "type": "add_business_days",
            "country": "KR",
            "start": "2027-02-05",
            "days": 10
        },
        {
            "type": "public_holidays",
            "country": "KR",
            "year": 2027
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jimin-data/kr-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 = { "requests": [
        {
            "type": "business_days",
            "country": "KR",
            "start": "2026-12-01",
            "end": "2026-12-31",
        },
        {
            "type": "add_business_days",
            "country": "KR",
            "start": "2027-02-05",
            "days": 10,
        },
        {
            "type": "public_holidays",
            "country": "KR",
            "year": 2027,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jimin-data/kr-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 '{
  "requests": [
    {
      "type": "business_days",
      "country": "KR",
      "start": "2026-12-01",
      "end": "2026-12-31"
    },
    {
      "type": "add_business_days",
      "country": "KR",
      "start": "2027-02-05",
      "days": 10
    },
    {
      "type": "public_holidays",
      "country": "KR",
      "year": 2027
    }
  ]
}' |
apify call jimin-data/kr-holidays-business-days --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jimin-data/kr-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/a7frobep84Rzvu9Nv/builds/dZBt6WGFsMr4MPvCf/openapi.json
