{
  "openapi": "3.0.1",
  "info": {
    "title": "Public Holidays & Business Days Calculator, 100+ Countries",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "2qAANnDqTTKinjLXm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ucchiii~holidays-business-days/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ucchiii-holidays-business-days",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ucchiii~holidays-business-days/runs": {
      "post": {
        "operationId": "runs-sync-ucchiii-holidays-business-days",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ucchiii~holidays-business-days/run-sync": {
      "post": {
        "operationId": "run-sync-ucchiii-holidays-business-days",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "holidays",
              "businessDays",
              "addBusinessDays",
              "checkDates"
            ],
            "type": "string",
            "description": "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": {
            "title": "Countries",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "subdivisions": {
            "title": "Regions (optional)",
            "type": "object",
            "description": "Regional holidays per country, as JSON, e.g. {\"US\": \"CA\", \"DE\": \"BY\"}. Invalid region codes are skipped and listed in the SUMMARY record."
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "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": {
            "title": "End date",
            "type": "string",
            "description": "Last day of the period (included), YYYY-MM-DD. Default: December 31 of the start year (this year). Max 20 years."
          },
          "weekendDays": {
            "title": "Weekend days",
            "type": "array",
            "description": "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).",
            "items": {
              "type": "string"
            }
          },
          "date": {
            "title": "Date (addBusinessDays)",
            "type": "string",
            "description": "Start date for 'Add N business days', YYYY-MM-DD. The start day itself is not counted. Default: today."
          },
          "n": {
            "title": "Number of business days (addBusinessDays)",
            "type": "integer",
            "description": "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": {
            "title": "Dates to check (checkDates)",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Holiday name language",
            "type": "string",
            "description": "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."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}