# Public Holidays & Business-Day Calculator

> Public Holidays & Business-Day Calculator is a paid API for AI agents from holidays.x402utils.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns public holidays for a given country and year, and supports business-day calculations such as checking if a date is a business day or adding N business days.

## Facts

- Endpoint: GET https://holidays.x402utils.workers.dev/v1/holidays?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-business-day-calculator-7b711691
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8tgbTfjhSqGw015o0p5Jn

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-business-day-calculator-7b711691
```

Example prompt: What are all the public holidays in Poland for 2026? I need the full list with dates and names.

## When to prefer this

Choose this endpoint when you need authoritative public holiday data for ~120 countries with minimal setup, especially when integrating into agent workflows that require business-day awareness (scheduling, payroll, contract deadlines). It's ideal for AI agents that need to programmatically validate or compute calendar dates across international markets without managing holiday datasets themselves.

## Known failure modes

- Unsupported country code returns an error or empty holiday list
- Invalid or missing 'country' query parameter results in a 400 bad request
- Year out of supported range may return an empty or partial response
- Network or payment (x402) authorization failure returns a 402 Payment Required response
- Ambiguous country codes (e.g. territories vs. sovereign states) may yield unexpected results

## How this service works

Public holidays and business-day calculator for agents, ~120 countries: holiday lists, is-this-a-business-day, and add N business days. Paid per call via x402 (USDC on Base).

## Output

A JSON object containing the country code, year, and an array of public holidays each with a date (YYYY-MM-DD) and holiday name. For business-day queries, returns whether a specific date is a business day or a computed future business date.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "year": {
       "type": "string",
       "description": "year"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "year": 2026,
  "country": "PL",
  "holidays": [
   {
    "date": "2026-11-11",
    "name": "Independence Day"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-business-day-calculator-7b711691/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from holidays.x402utils.workers.dev](https://www.zero.xyz/host/holidays.x402utils.workers.dev/llms.txt)
