# Public Holidays by Country and Year

> Public Holidays by Country and Year is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Returns the list of public holidays for a given country (ISO-2 code) and optional year, covering 100+ countries.

## Facts

- Endpoint: POST https://twin.unykorn.org/geo/public-holidays?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-by-country-and-year-074c6bc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cEoaHhQ1r0mO19amdAUYk

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-074c6bc7 -d '<json body>'
```

Example prompt: What are all the public holidays in Germany for 2025?

## When to prefer this

Choose this endpoint when you need a reliable, structured list of official public holidays for a specific country and year, especially for scheduling, HR, payroll, or travel planning workflows. It covers 100+ countries and historical years back to 1975, making it suitable for both forward-looking planning and retrospective analysis.

## Known failure modes

- Missing or invalid ISO-2 country code returns an error
- Country not in the 100+ supported list may return empty or error
- Year outside the 1975–2100 range is rejected by schema validation
- Network or payment authorization failure returns a 402 or connectivity error

## How this service works

Public holidays for 100+ countries for any year — Genesis402 / UnyKorn Operator Network

## Output

A structured list of public holidays for the requested country and year, including holiday names and their calendar dates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "year": {
     "type": "integer",
     "maximum": 2100,
     "minimum": 1975,
     "description": "optional, default this year"
    },
    "country": {
     "type": "string",
     "description": "required ISO-2, e.g. US, GB, DE"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "public-holidays",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "sources": [
   {
    "ok": true,
    "name": "<source>"
   }
  ],
  "limitations": "<text>",
  "generated_at": "<iso time>",
  "evidence_hash": "sha256:<64hex>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-by-country-and-year-074c6bc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
