holidays
Get all holidays
Returns Canadian public holidays. Each holiday lists the regions that observe it.
get/api/v1/holidays
Query parameters
yearinteger
A calendar year
federal'1' | '0' | 'true' | 'false'
A boolean parameter. If true or 1, will return only federal holidays. If false or 0, will return no federal holidays.
optional'1' | '0' | 'true' | 'false'
A boolean parameter. 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
{
"holidays": [
{
"id": 2,
"date": "2020-12-26",
"nameEn": "Louis Riel Day",
"nameFr": "Journée Louis Riel",
"observedDate": "2020-12-28",
"provinces": [
{
"id": "MB",
"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.