# NZ Public Holidays API

> NZ Public Holidays API is a paid API for AI agents from nzdata.zakwins.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Returns New Zealand public holidays for a given year and optional region, including Matariki, Mondayisation, and regional anniversary days, for years 2022–2030.

## Facts

- Endpoint: GET https://nzdata.zakwins.workers.dev/nz/holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nz-public-holidays-api-2442b54d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YqXa5fbE4ie1ig7pVTtHr

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 nz-public-holidays-api-2442b54d
```

Example prompt: What are all the public holidays in New Zealand for 2025, including the Auckland regional anniversary day and Matariki?

## When to prefer this

Choose this endpoint when you need accurate, statute-derived New Zealand public holiday data including Matariki (which changes each year), Mondayisation rules, and optional regional anniversary days for a specific year between 2022 and 2030. It is preferable over generic calendar APIs that may not correctly implement NZ-specific holiday logic.

## Known failure modes

- Year outside the supported range (2022–2030) returns an error or empty response
- Invalid or unrecognised region code returns no regional holiday or an error
- Missing required method or type fields in the request body cause a validation error
- Network or Cloudflare Worker downtime may result in 5xx errors

## How this service works

Pay-per-call New Zealand utilities via x402 (USDC on Base). Computed from statute (Holidays Act 2003, Te Kāhui o Matariki Public Holiday Act 2022) and published government dates; provided as-is with no warranty. Regional anniversary observance can vary locally. Verify critical deadlines with the relevant agency.

## Output

A list of New Zealand public holidays for the requested year (2022–2030), each with the holiday name and date. Optionally includes regional anniversary days when a region is specified. Matariki dates and Mondayisation shifts are included as computed from the Holidays Act 2003.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "year": {
       "type": "string"
      },
      "region": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nz-public-holidays-api-2442b54d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nzdata.zakwins.workers.dev](https://www.zero.xyz/host/nzdata.zakwins.workers.dev/llms.txt)
