List public and school holidays
list_holidaysUse this when the user asks which public holidays, bank holidays or school holidays a country, state or province has in a year, for example "is Monday a bank holiday in Bavaria?", "public holidays in Vietnam in 2027" or "school holidays in Bavaria". Pass the country code and the year, a region when the user names one, and kind school for school holidays, which are published for a limited set of countries. Public holidays come back with the date, weekday, English and local name, whether they apply nationwide or in listed regions, and whether they are a day off. Do not use it for religious or cultural festival dates without a country, trading-day calendars, or company holidays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | public (default) for public holidays, or school for school holidays, which exist for a limited set of countries. | |
| year | Yes | Calendar year, for example 2027. | |
| region | No | State, province or nation within the country, as a subdivision code such as DE-BY or BY (Bavaria), GB-SCT (Scotland), US-CA or AU-NSW. Optional. | |
| country | Yes | Two-letter ISO 3166-1 country code whose holidays apply, such as US, GB, DE, AU or VN. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | No | ||
| year | Yes | ||
| region | No | ||
| source | Yes | ||
| country | Yes | ||
| publicHolidays | No | ||
| schoolHolidays | No |