{
  "openapi": "3.0.1",
  "info": {
    "title": "Global Public Holidays & Business Days API (250 Countries, SLA)",
    "description": "Public holidays for 250 countries, 650+ states/regions and 33 stock exchanges. Check, add or count business days and compute SLA due times in any timezone. Offline, instant Standby API for AI agents.",
    "version": "0.1",
    "x-build-id": "017TiGlUElfB6Ruem"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/geeky_goth_gamer~global-public-holidays-business-days/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-geeky_goth_gamer-global-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~global-public-holidays-business-days/runs": {
      "post": {
        "operationId": "runs-sync-geeky_goth_gamer-global-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~global-public-holidays-business-days/run-sync": {
      "post": {
        "operationId": "run-sync-geeky_goth_gamer-global-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "list",
              "check",
              "add",
              "count",
              "sla",
              "supported"
            ],
            "type": "string",
            "description": "What to calculate. list = holiday calendar per location-year ($0.004 each). check = one result per date ($0.001 each). add / count = one result ($0.001). sla = one result ($0.002). supported = free list of codes.",
            "default": "list"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "ISO 3166-1 code (DE, US, GB, JP) or English name (Germany, United States). 250 countries. Not used with market."
          },
          "subdivision": {
            "title": "State / region (optional)",
            "type": "string",
            "description": "Optional subdivision code or name for regional holidays, e.g. BY or Bayern (Germany), CA (US), SCT (UK), TAS (Australia). Use mode supported to see codes."
          },
          "market": {
            "title": "Financial market (optional)",
            "type": "string",
            "description": "Optional exchange calendar instead of a country, e.g. XNYS / NYSE, XASX / ASX, XLON (see supported). Do not combine with country."
          },
          "locations": {
            "title": "Several locations (list mode)",
            "type": "array",
            "description": "Optional, list mode only: up to 25 objects like {\"country\": \"US\", \"subdivision\": \"NY\"} or {\"market\": \"XNYS\"}. Overrides country/subdivision/market."
          },
          "years": {
            "title": "Years (list mode)",
            "type": "array",
            "description": "List mode: 1-10 years between 1950 and 2100. Default: current year. At most 60 location-years per request."
          },
          "dates": {
            "title": "Dates (check mode)",
            "type": "array",
            "description": "Check mode: up to 1,000 dates in YYYY-MM-DD format.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date (add / count)",
            "type": "string",
            "description": "Add and count modes: YYYY-MM-DD."
          },
          "days": {
            "title": "Business days to add (add)",
            "type": "integer",
            "description": "Add mode: whole number of business days, -3660 to 3660. Negative goes backwards. 0 rolls a non-business start forward unless rollForward is false."
          },
          "rollForward": {
            "title": "Roll forward when days = 0",
            "type": "boolean",
            "description": "Add mode with days 0: move a weekend/holiday start to the next business day.",
            "default": true
          },
          "endDate": {
            "title": "End date (count)",
            "type": "string",
            "description": "Count mode: YYYY-MM-DD. Business days after startDate up to and including endDate (start included if inclusive is true). Max 20 years."
          },
          "inclusive": {
            "title": "Include start date (count)",
            "type": "boolean",
            "description": "Count mode: also count startDate if it is a business day.",
            "default": false
          },
          "start": {
            "title": "Start date-time (sla)",
            "type": "string",
            "description": "SLA mode: ISO 8601 date-time, e.g. 2026-12-24T15:00:00 (local to timezone) or with Z/offset."
          },
          "hours": {
            "title": "Business hours (sla)",
            "type": "integer",
            "description": "SLA mode: business hours to add (0-20000). Decimals are accepted via the API."
          },
          "minutes": {
            "title": "Extra minutes (sla)",
            "type": "integer",
            "description": "SLA mode: extra business minutes to add.",
            "default": 0
          },
          "timezone": {
            "title": "Time zone (sla)",
            "type": "string",
            "description": "SLA mode: IANA time zone such as Europe/Berlin or Australia/Hobart. Default UTC."
          },
          "workdayStart": {
            "title": "Workday start (sla)",
            "type": "string",
            "description": "SLA mode: opening time, 24-hour HH:MM.",
            "default": "09:00"
          },
          "workdayEnd": {
            "title": "Workday end (sla)",
            "type": "string",
            "description": "SLA mode: closing time, 24-hour HH:MM, after workdayStart.",
            "default": "17:00"
          },
          "weekendDays": {
            "title": "Weekend days override",
            "type": "array",
            "description": "Optional. Override the country's weekend, e.g. [\"Fri\", \"Sat\"]. Default comes from the country (Sat-Sun for most; Fri for Iran; Fri-Sat in some MENA countries). Use [] for a 7-day business week."
          },
          "categories": {
            "title": "Holiday categories",
            "type": "array",
            "description": "Optional, e.g. [\"public\"] (default) or [\"public\", \"bank\"] / [\"optional\"] where the country supports them. See supported."
          },
          "language": {
            "title": "Holiday name language",
            "type": "string",
            "description": "Optional language code for holiday names, e.g. de, fr, en_US, ja, where supported. Unknown codes fall back to the default."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}