# Canadian Statutory Holidays by Province

> Canadian Statutory Holidays by Province is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Returns the list of statutory (general) holidays for a specified Canadian province or territory in a given year, with local names, actual dates, and observed dates when a holiday falls on a weekend.

## Facts

- Endpoint: GET https://onchaincheck.dev/holidays?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/canadian-statutory-holidays-by-province-b4cb088a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VdJXXRA0258N-M_HRltlF

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 canadian-statutory-holidays-by-province-b4cb088a
```

Example prompt: What are all the statutory holidays in Ontario for 2025, including any observed dates when they fall on a weekend?

## When to prefer this

Choose this endpoint when you need accurate, province-specific statutory holiday lists for any Canadian province or territory, particularly when you need local holiday names and correct weekend-observed-date resolution. Prefer this over generic calendar APIs when Canadian labour law compliance, payroll, or business-day scheduling in a specific province is required.

## Known failure modes

- Invalid or unsupported province code returns an error
- Year outside the supported range (2000–2100) returns a validation error
- Missing required query parameters (province or year) returns a 400-level error
- Payment failure via x402 protocol results in a 402 Payment Required response

## How this service works

Statutory (general) holidays for a Canadian province or territory in a given year, using the province's local names, with the actual date and the weekday it is observed when it falls on a weekend.

## Output

A JSON object containing the province code, year, and an array of holiday objects — each with the canonical holiday date, the local province-specific name, and the observed date (which may differ from the actual date if the holiday falls on a Saturday or Sunday).

## 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": [
      "province",
      "year"
     ],
     "properties": {
      "year": {
       "type": "string",
       "pattern": "^\\d{4}$",
       "description": "Year from 2000 to 2100"
      },
      "province": {
       "enum": [
        "AB",
        "BC",
        "MB",
        "NB",
        "NL",
        "NS",
        "NT",
        "NU",
        "ON",
        "PE",
        "QC",
        "SK",
        "YT"
       ],
       "type": "string",
       "description": "Two-letter Canadian province or territory 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": {
  "year": 2027,
  "holidays": [
   {
    "date": "2027-01-01",
    "name": "New Year's Day",
    "observed": "2027-01-01"
   },
   {
    "date": "2027-06-24",
    "name": "Saint-Jean-Baptiste Day",
    "observed": "2027-06-24"
   }
  ],
  "province": "QC"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/canadian-statutory-holidays-by-province-b4cb088a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
