calendar.holidays
Retrieve official holidays for any country and year, including observed dates, substitute days, and regional subdivisions. Filter by type and localize names.
Instructions
List the official holidays for a country and year with exact observed dates, including substitute days (e.g. a Saturday July 4th observed Friday). 200+ countries, regional subdivisions (US states, German Länder, Canadian provinces…), movable feasts and lunar-calendar holidays computed from maintained rules. Filter by type (public, bank, school, optional, observance) and localize names via lang. Returns {date, name, type, substitute, rule} per holiday.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Optional ISO 639-1 language for holiday names. | |
| year | Yes | Calendar year, e.g. 2026. | |
| types | No | Optional comma-separated filter: public, bank, school, optional, observance. | |
| region | No | Optional subdivision code, e.g. CA (US-California), BY (DE-Bavaria). | |
| country | Yes | ISO 3166-1 alpha-2 country code, e.g. US, DE, JP. |