is_holiday_today
Check if today is a school or public holiday in a given Swiss canton. Provide the canton ISO code for an instant answer.
Instructions
Is today a school or public holiday in the given canton?
One-call convenience for the everyday 'are we off today?' question in a given canton.
Convenience wrapper over check_date for the everyday question
"are we off today?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canton | Yes | ISO code, e.g. CH-ZH | |
| language | No | DE | |
| school_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Human-readable caveat, set when provenance is 'degraded'. | |
| canton | Yes | ||
| source | Yes | Attribution string of the upstream source. | |
| matches | Yes | ||
| provenance | Yes | live_api = freshly fetched, cached = in-memory cache, degraded = upstream unreachable, stale or empty payload. | |
| checked_date | Yes | ||
| retrieved_at | Yes | ISO-8601 UTC timestamp of the underlying fetch. | |
| is_public_holiday | Yes | ||
| is_school_holiday | Yes |