---
title: "Get a holiday by id"
method: GET
path: "/api/v1/holidays/{holidayId}"
tags: ["holidays"]
---

# Get a holiday by id

`GET /api/v1/holidays/{holidayId}`

Returns one Canadian statutory holiday by integer id. Returns a 404 response for invalid ids.

## Query parameters

- `year` integer
- `optional` '1' | '0' | 'true' | 'false'

## Response `200`

OK

- object
  - `holiday` Holiday — A Canadian holiday. Includes a name, the literal date of the holiday, the observed date of the holiday (ie, accommodating for weekends), and a list of regions that observe this holiday.
    - `id` integer, required — Primary key for a holiday
    - `date` string, date, required — ISO date: the literal date of the holiday
    - `nameEn` string, required — English name
    - `nameFr` string, required — French name
    - `federal` 1 | 0, required — Whether this holiday is observed by federally-regulated industries.
    - `observedDate` string, date, required — ISO date: when this holiday is observed
    - `provinces` Province[]
      - `id` 'AB' | 'BC' | 'MB' | 'NB' | 'NL' | 'NS' | 'NT' | 'NU' | 'ON' | 'PE' | 'QC' | 'SK' | 'YT', required — Canadian province abbreviations
      - `nextHoliday` Holiday — recursive
      - `provinces` Holiday[]
      - `nameFr` string, required — French name
      - `nameEn` string, required — English name
      - `sourceLink` string, uri, required — URL to public holidays reference for this region
      - `sourceEn` string, required — Name of reference page with public holidays for this region
      - `optional` 1 — Whether this province optionally observes a given holiday.
    - `optional` 1 — Whether this is a province-wide statutory holiday, or one that is optional for employers.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/swaggerhub/apis/canada-holidays-api.md) · [All operations](https://skmtc.net/swaggerhub/apis/canada-holidays-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swaggerhub/canada-holidays-api/versions/258604868450/schema)
