provinces

Get a province or territory by abbreviation

Returns a Canadian province or territory with its associated holidays. Returns a 404 response for invalid abbreviations.

get/api/v1/provinces/{provinceId}

Query parameters

yearinteger

A calendar year

optional'1' | '0' | 'true' | 'false'

A boolean parameter (AB and BC only). If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from Alberta and BC.

Response

OK

Example response

{
  "province": {
    "id": "MB",
    "nextHoliday": {
      "id": 2,
      "date": "2020-12-26",
      "nameEn": "Louis Riel Day",
      "nameFr": "Journée Louis Riel",
      "observedDate": "2020-12-28"
    },
    "provinces": [
      {
        "id": 2,
        "date": "2020-12-26",
        "nameEn": "Louis Riel Day",
        "nameFr": "Journée Louis Riel",
        "observedDate": "2020-12-28"
      }
    ],
    "nameFr": "Manitoba",
    "nameEn": "Manitoba",
    "sourceLink": "https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12",
    "sourceEn": "What are the general holidays in Manitoba?"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.