# Public Holidays API

> Public Holidays API is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Returns public holidays for 150+ countries and their subdivisions, or stock-market holidays (NYSE, ECB TARGET), for any year; also checks whether a specific date is a holiday or business day and returns the next business day.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/util/holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-api-42dd9fea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DvaxMh8DCV3NkYwpkujeM

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-api-42dd9fea
```

Example prompt: Is December 26, 2025 a public holiday or business day in the UK, and if it is a holiday, what is the next business day?

## When to prefer this

Choose this endpoint when you need authoritative public holiday data for a wide range of countries (150+) and their states/regions, or need to determine whether a specific date is a business day and find the next business day. Particularly well-suited for payroll scheduling, delivery date calculation, market-open checks, and any workflow that must respect local public holidays. Prefer this over generic calendar APIs when you need subdivision-level holiday granularity or stock-market-specific holiday calendars.

## Known failure modes

- Invalid or unsupported country code returns an error or empty result
- Unsupported subdivision code may return no subdivision-specific holidays
- Year out of supported range may return empty or error
- Missing required 'country' parameter results in a validation error
- Market identifiers other than NYSE/ECB may not be recognized

## How this service works

Public holidays of 150+ countries and their states/regions, or stock-market holidays (NYSE, ECB TARGET), for any year, and whether a given date is a holiday or business day with the next business day. Use for scheduling, delivery dates, payroll or market-open checks.

## Output

Returns a list of holidays for the requested country and year (with holiday names and dates), and if a specific date is provided, indicates whether it is a holiday or business day and provides the next business day. For markets like NYSE or ECB, returns the equivalent trading/settlement holidays.

## 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": {
      "date": {
       "type": "string",
       "description": "Date to check, YYYY-MM-DD"
      },
      "year": {
       "type": "integer",
       "description": "Year, default current"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166 alpha-2 code (US, DE, AE) or market NYSE / ECB"
      },
      "subdivision": {
       "type": "string",
       "description": "State or region code, e.g. CA, BY"
      }
     }
    }
   },
   "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-api-42dd9fea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
