# x402-tools Holiday Check

> x402-tools Holiday Check is a paid API for AI agents from x402.nichospt.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Checks whether a given date is a public holiday in a specified country (and optional sub-region), returning holiday details and a boolean flag.

## Facts

- Endpoint: POST https://x402.nichospt.net/holiday-check?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-tools-holiday-check-a0763209
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jB6Tq4obhPbK_TVWWvbb8

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 x402-tools-holiday-check-a0763209 -d '<json body>'
```

Example prompt: Is July 4th 2026 a public holiday in the US, specifically in California?

## When to prefer this

Use this endpoint when you need a fast, lightweight, per-call check on whether a specific date is a public holiday in a given country or sub-region, especially in agentic workflows that need to avoid scheduling on holidays or flag non-working days.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns validation error
- Unsupported or unknown country code returns empty or error response
- Payment failure via x402 protocol returns 402 status
- Sub-region code not recognized for given country
- No holidays found returns is_holiday: false with empty holidays array

## How this service works

Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.

## Output

A JSON object containing the queried date, country code, a boolean is_holiday flag, and an array of matching holidays with their name, type, and whether they are public holidays.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "date": {
   "type": "string",
   "format": "date",
   "description": "YYYY-MM-DD"
  },
  "region": {
   "type": "string",
   "description": "Sub-region code (e.g. 'CA' for California)"
  },
  "country": {
   "type": "string",
   "pattern": "^[A-Z]{2}$",
   "description": "ISO 3166-1 alpha-2 (e.g. 'US', 'GB', 'DE')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2026-07-04",
  "country": "US",
  "holidays": [
   {
    "name": "Independence Day",
    "type": "public",
    "public": true
   }
  ],
  "is_holiday": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-tools-holiday-check-a0763209/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.nichospt.net](https://www.zero.xyz/host/x402.nichospt.net/llms.txt)
