# Holiday Calendar Lookup (Nager.Date via x402)

> Holiday Calendar Lookup (Nager.Date via x402) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns public, bank, and federal holidays for a given country and year, including date, local name, English name, holiday type, and scope.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/holiday-lookup
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d37f5f0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hCUrNRYGgRem2QAoltGPG

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-deployer-x402-deployer-workers-dev-d37f5f0d -d '<json body>'
```

Example prompt: Can you list all the public holidays in Japan for 2025, including the local names and whether each one is a national public holiday or just an observance?

## When to prefer this

Use this endpoint when you need authoritative, structured holiday data for any country and year — especially for scheduling, compliance, date calculations, or calendar generation — and want a zero-auth, commercial-OK source with global ISO country code coverage. Prefer this over web scraping or general LLM knowledge when accuracy and machine-readable structure matter.

## Known failure modes

- Invalid or unsupported ISO 3166-1 country code returns an error or empty list
- Year out of supported range returns an error
- Network or upstream Nager.Date API unavailability causes a 5xx response
- Malformed POST body returns a 400 bad request
- Payment failure (x402) prevents the call from completing

## How this service works

Holiday calendar. Public holidays, bank holidays, and federal holidays for any country and year. ISO 3166-1 country codes. Returns date, local name, English name, type (public/observance/regional), and scope. Wraps the public Nager.Date API — no auth, commercial-OK.

## Output

A structured list of holidays for the specified country and year, each entry containing the date (ISO 8601), local-language name, English name, holiday type (public/observance/regional), and geographic scope.

## Example request

```json
{
 "input": {
  "body": {
   "year": 2025,
   "country": "US"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "country",
      "year"
     ],
     "properties": {
      "year": {
       "type": "number",
       "description": "Calendar year (e.g. 2026). Range [1900, 2200]."
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code (e.g. 'US', 'DE', 'JP')."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "year": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "country": {
       "type": "string"
      },
      "holidays": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "date": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "type": {
          "type": "string"
         },
         "regional": {
          "type": "boolean"
         },
         "local_name": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-d37f5f0d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
