# public-holidays-switzerland

> public-holidays-switzerland is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Returns all national and regional public holidays in Switzerland for a given year, including dates, names, regional applicability, and weekdays.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/holidays/ch?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-switzerland-5ec37f0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jYSASHth4LW5OS3NtODcz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability public-holidays-switzerland-5ec37f0a
```

Example prompt: Can you pull up all the public holidays in Switzerland for 2025, including which ones are only observed in specific regions?

## When to prefer this

Choose this endpoint when you need Switzerland-specific public holiday data including cantonal (regional) holidays without requiring an API key, and when you need both nationwide and region-specific holidays in a single call. It is ideal for business-day scheduling, payroll automation, and travel planning tools focused on Switzerland. Prefer it over generic calendar APIs when regional granularity and Swiss-specific accuracy matter.

## Known failure modes

- Invalid or missing year parameter may return an error or empty result
- Requests for far-future or historical years outside the dataset range may return incomplete data
- Payment failure (x402) if the $0.01 USDC fee is not satisfied
- Network timeout or service unavailability from the upstream Nager.Date dataset

## How this service works

Public holidays in Switzerland for a given year: every national and regional public holiday with date, local and English names, whether it is nationwide or which regions observe it, and the weekday, from the Nager.Date public holiday dataset. Business-day and scheduling checks for Switzerland without an API key. $0.01 per year.

## Output

A structured list of Swiss public holidays for the requested year, each entry containing the date, local name, English name, a flag indicating whether it is a nationwide holiday or region-specific, the list of regions (cantons) that observe it, and the day of the week.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-switzerland-5ec37f0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
