{
  "openapi": "3.0.1",
  "info": {
    "title": "Australian & NZ Public Holidays + Business Days Calculator",
    "description": "Public holidays for every Australian state, Tasmanian regional areas and New Zealand regions, plus a business-day calculator: is a date a business day, add N business days (due dates), count working days between dates. From $0.001 per date.",
    "version": "0.1",
    "x-build-id": "NleSshV4HmsT5HhAj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/geeky_goth_gamer~au-nz-public-holidays-business-days/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-geeky_goth_gamer-au-nz-public-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/geeky_goth_gamer~au-nz-public-holidays-business-days/runs": {
      "post": {
        "operationId": "runs-sync-geeky_goth_gamer-au-nz-public-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/geeky_goth_gamer~au-nz-public-holidays-business-days/run-sync": {
      "post": {
        "operationId": "run-sync-geeky_goth_gamer-au-nz-public-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": "What to do",
            "enum": [
              "list",
              "check",
              "addBusinessDays",
              "countBusinessDays"
            ],
            "type": "string",
            "description": "What to do: \"list\" = all holidays for the given years (needs years); \"check\" = is each date a business day or holiday (needs dates); \"addBusinessDays\" = date + N business days, e.g. a due date (needs dates and days); \"countBusinessDays\" = business days between start and end (needs ranges).",
            "default": "list"
          },
          "country": {
            "title": "Country",
            "enum": [
              "AU",
              "NZ"
            ],
            "type": "string",
            "description": "\"AU\" (Australia, default) or \"NZ\" (New Zealand).",
            "default": "AU"
          },
          "region": {
            "title": "State / region",
            "type": "string",
            "description": "Australian state or territory (ACT, NSW, NT, QLD, SA, TAS, VIC, WA) or New Zealand region code (AUK = Auckland, BOP = Bay of Plenty, CAN = Canterbury, STC = South Canterbury, CIT = Chatham Islands, GIS = Gisborne, HKB = Hawke's Bay, MBH = Marlborough, MWT = Manawatū-Whanganui, NSN = Nelson, NTL = Northland, OTA = Otago, STL = Southland, TAS = Tasman, TKI = Taranaki, WGN = Wellington, WKO = Waikato, WTC = West Coast). Leave empty for nationwide holidays only."
          },
          "tasArea": {
            "title": "Tasmanian area (municipality)",
            "enum": [
              "hobart",
              "glenorchy",
              "clarence",
              "kingborough",
              "brighton",
              "sorell",
              "tasman",
              "huon_valley",
              "derwent_valley",
              "derwent_valley_strathgordon",
              "central_highlands_south",
              "central_highlands_hydro",
              "central_highlands_north",
              "southern_midlands_south",
              "southern_midlands_north",
              "glamorgan_spring_bay_south",
              "glamorgan_spring_bay_north",
              "launceston",
              "meander_valley",
              "west_tamar",
              "break_o_day",
              "dorset",
              "george_town",
              "northern_midlands",
              "burnie",
              "waratah_wynyard",
              "west_coast",
              "central_coast",
              "circular_head",
              "devonport",
              "kentish",
              "latrobe",
              "king_island",
              "flinders"
            ],
            "type": "string",
            "description": "Tasmania only. Adds the regional holidays for this municipality (Royal Hobart Regatta or Recreation Day, show days, Agfest...). Municipalities split by the Act's boundaries are listed as separate choices."
          },
          "suburb": {
            "title": "Suburb (optional, Launceston Cup detail)",
            "type": "string",
            "description": "Optional. In Tasmania, decides whether the State-Service-only Launceston Cup holiday is all day or from 11 am."
          },
          "qldBrisbane": {
            "title": "Queensland: Brisbane area",
            "type": "boolean",
            "description": "Queensland only. Include the Royal Queensland Show (Ekka) holiday, which applies to the Brisbane City Council area.",
            "default": false
          },
          "years": {
            "title": "Years (list mode)",
            "type": "array",
            "description": "Used by mode \"list\". Years to list, e.g. [2026, 2027]. Up to 10 years from 2011 to 2060. Defaults to the current year."
          },
          "dates": {
            "title": "Dates (check / add modes)",
            "type": "array",
            "description": "Used by modes \"check\" and \"addBusinessDays\". Up to 10,000 dates as \"YYYY-MM-DD\", e.g. [\"2026-12-24\"], or objects {\"id\": \"...\", \"date\": \"YYYY-MM-DD\", \"days\": 5} to set a different number of days per date."
          },
          "days": {
            "title": "Business days to add (add mode)",
            "minimum": -10000,
            "maximum": 10000,
            "type": "integer",
            "description": "Business days to add to each date. Use a negative number to go back in time. 0 returns the date itself if it is a business day, otherwise the next one."
          },
          "ranges": {
            "title": "Date ranges (count mode)",
            "type": "array",
            "description": "Used by mode \"countBusinessDays\". Up to 10,000 objects like {\"id\": \"invoice-7\", \"start\": \"2026-12-01\", \"end\": \"2027-01-31\"}."
          },
          "includeStartDate": {
            "title": "Count the start date",
            "type": "boolean",
            "description": "countBusinessDays only: include the start date in the count (default false).",
            "default": false
          },
          "includeEndDate": {
            "title": "Count the end date",
            "type": "boolean",
            "description": "countBusinessDays only: include the end date in the count (default true).",
            "default": true
          },
          "includeGovernmentHolidays": {
            "title": "Treat State-Service-only days as days off",
            "type": "boolean",
            "description": "Tasmania: Easter Tuesday, Launceston Cup and Devonport Cup apply generally to the State Service only. Turn on if you follow the government calendar.",
            "default": false
          },
          "includeBankHolidays": {
            "title": "Treat bank holidays as days off",
            "type": "boolean",
            "description": "Include bank-only holidays, for example the NSW Bank Holiday (first Monday in August). Off by default.",
            "default": false
          },
          "weekendDays": {
            "title": "Weekend days",
            "type": "array",
            "description": "Days that are never business days, as [\"SAT\", \"SUN\"] (default). Use e.g. [\"FRI\", \"SAT\"] for a different working week.",
            "default": [
              "SAT",
              "SUN"
            ]
          },
          "customClosures": {
            "title": "Extra closure dates",
            "type": "array",
            "description": "Optional. Up to 1,000 extra non-working dates (YYYY-MM-DD), such as a Christmas shutdown."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}