# Public Holidays by Country and Year

> Public Holidays by Country and Year is a paid API for AI agents from relay402.georgespring.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns official public holidays for a given country and year, including dates, English and local names, nationwide flag, and holiday type.

## Facts

- Endpoint: GET https://relay402.georgespring.workers.dev/api/public-holidays
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-by-country-and-year-2caafc88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N-KUWoFWED_Vki-IaITgY

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-by-country-and-year-2caafc88
```

Example prompt: Can you get me all the official public holidays in Germany (DE) for 2025, including whether each one is nationwide and what type of holiday it is?

## When to prefer this

Use this endpoint when you need authoritative public holiday data for scheduling, payroll, logistics, or commerce planning across 110+ countries. Prefer this over manual calendar lookups or general web searches when you need structured, machine-readable holiday data with local names and nationwide flags for a specific country-year combination.

## Known failure modes

- Unsupported country code returns an error or empty list — only 110+ specific countries are supported
- Invalid year format (not matching ^20\d{2}$) returns a validation error
- Missing required parameters (country or year) returns a 400 Bad Request
- Country code not in ISO 3166-1 alpha-2 format returns an error
- Network or upstream data unavailability may return a 500 error

## How this service works

Official public holidays for any of 110+ countries and a given year: date, English and local name, nationwide flag and holiday type. For scheduling, logistics, payroll and commerce agents planning around non-working days worldwide.

## Output

A list of public holidays for the specified country and year, each containing the date, English name, local-language name, a flag indicating whether it is a nationwide holiday, and the holiday type (e.g. national, religious, observance).

## 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",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "country",
      "year"
     ],
     "properties": {
      "year": {
       "type": "string",
       "pattern": "^20\\d{2}$"
      },
      "country": {
       "type": "string",
       "pattern": "^[A-Z]{2}$"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-by-country-and-year-2caafc88/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay402.georgespring.workers.dev](https://www.zero.xyz/host/relay402.georgespring.workers.dev/llms.txt)
