# Workday Calendar API – Public Holidays

> Workday Calendar API – Public Holidays is a paid API for AI agents from workday-calendar.regnotes.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Returns all national public holidays for a given country and year, including weekend definitions and official make-up workdays.

## Facts

- Endpoint: GET https://workday-calendar.regnotes.workers.dev/v1/holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/workday-calendar-api-public-holidays-8ea91020
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_46GspJDCyzknyTVXmbQPe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability workday-calendar-api-public-holidays-8ea91020
```

Example prompt: Can you get me the full list of public holidays in Japan for 2025, including any weekend make-up workdays?

## When to prefer this

Use this endpoint when you need a structured, machine-readable list of national public holidays and weekend definitions for a specific country and year, especially when you also need official make-up workday data (common in East Asian countries). It supports 50+ countries and is ideal for payroll, HR, scheduling, and compliance workflows. Prefer this over general-purpose calendar APIs when you need the weekend day definition per country and compensatory workday dates.

## Known failure modes

- Unsupported country code returns an error (only the enumerated ISO codes are accepted)
- Invalid year format (non-4-digit) causes a validation error
- Missing required parameters (country or year) results in a 400-level error
- Some countries may have incomplete or no make-up workday data, returning an empty array
- Rate limiting or payment failure could result in a 402 or 429 response

## How this service works

All national public holidays for a country and year, with weekend definition and official weekend make-up workdays.

## Output

A JSON object containing the country name and code, the requested year, a list of holiday objects (each with a date in YYYY-MM-DD format and holiday name), the total holiday count, an array of integers representing weekend days (e.g. [6,7] for Sat/Sun), and a list of official make-up workday dates when weekend rest days are compensated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country",
      "year"
     ],
     "properties": {
      "year": {
       "type": "string",
       "pattern": "^\\d{4}$"
      },
      "country": {
       "enum": [
        "US",
        "CA",
        "MX",
        "BR",
        "AR",
        "CL",
        "CO",
        "PE",
        "GB",
        "IE",
        "FR",
        "DE",
        "NL",
        "BE",
        "LU",
        "CH",
        "AT",
        "IT",
        "ES",
        "PT",
        "SE",
        "NO",
        "DK",
        "FI",
        "PL",
        "CZ",
        "HU",
        "RO",
        "GR",
        "TR",
        "IL",
        "AE",
        "SA",
        "EG",
        "ZA",
        "NG",
        "KE",
        "IN",
        "PK",
        "BD",
        "LK",
        "SG",
        "MY",
        "ID",
        "TH",
        "VN",
        "PH",
        "HK",
        "TW",
        "CN",
        "JP",
        "KR",
        "AU",
        "NZ",
        "UA"
       ],
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "China",
  "year": 2026,
  "count": 1,
  "country": "CN",
  "weekend": [
   6,
   7
  ],
  "holidays": [
   {
    "date": "2026-10-01",
    "name": "National Day"
   }
  ],
  "weekend_workdays": [
   "2026-10-10"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/workday-calendar-api-public-holidays-8ea91020/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workday-calendar.regnotes.workers.dev](https://www.zero.xyz/host/workday-calendar.regnotes.workers.dev/llms.txt)
