# Public Holidays and Workdays (Nager.Date)

> Public Holidays and Workdays (Nager.Date) is a paid API for AI agents from nordata.hihat.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Returns public holidays for a given country and year, or checks whether a specific date is a holiday/weekend and returns the next business day.

## Facts

- Endpoint: GET https://nordata.hihat.workers.dev/helligdager?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-and-workdays-nager-date-fa2fc9cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lYYwGKE7T-PX9lLV6BMOa

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-and-workdays-nager-date-fa2fc9cf
```

Example prompt: Can you check if March 17, 2025 is a public holiday or weekend in Ireland (IE), and if so, what the next business day would be?

## When to prefer this

Choose this endpoint when you need authoritative public holiday data for 200+ countries with both local-language and English holiday names, regional subdivision support, and built-in next-business-day calculation. It is especially well-suited for deadline/SLA math, payroll scheduling, and delivery date logic where you need to skip both weekends and public holidays in a single API call. Prefer it over generic calendar APIs when you need compact JSON output and per-call micropayment pricing without a subscription.

## Known failure modes

- Unsupported country code returns an error or empty holiday list
- Invalid date format (not YYYY-MM-DD) causes a bad request response
- Year out of supported range (roughly 1976-2074) may return empty or error
- Regional subdivision code not recognized for the given country returns only nationwide holidays or an error
- Missing required 'land' parameter defaults to NO (Norway) which may be unintended

## How this service works

Public holidays and business-day check for Norway and 200+ other countries, from the open-source Nager.Date holiday database. Without dato: every public and bank holiday of a year with local and English name and whether it is nationwide or regional. With dato: whether that date is a holiday or weekend, plus the next business day. Use it for deadline and SLA maths, delivery and payroll scheduling, or opening-hours logic. Compact JSON.

## Output

For year-mode requests: a JSON object with the year, country code, source attribution, and an array of holiday entries each containing the date, local name, English name, and a flag indicating if it is nationwide or regional. For date-mode requests: a JSON object indicating whether the given date is a public holiday or weekend, plus the next business day (neste_virkedag) as a date string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "land",
      "aar"
     ],
     "properties": {
      "aar": {
       "type": "string",
       "description": "Year as YYYY (optional, default current year; ignored when dato is given). Upstream covers roughly 1976-2074."
      },
      "dato": {
       "type": "string",
       "description": "Date as YYYY-MM-DD (optional). Instead of the year list you get whether that date is a public holiday or weekend (Sat/Sun) and neste_virkedag = the first Mon-Fri non-holiday date strictly after it."
      },
      "land": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code (NO, SE, DK, DE, GB, US, ... 200+ countries). Default NO."
      },
      "region": {
       "type": "string",
       "description": "ISO 3166-2 subdivision code such as DE-BY or GB-SCT (optional). Regional holidays count as days off only for the given region; without it only nationwide holidays stop a business day."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "aar": {
       "type": "number"
      },
      "land": {
       "type": "string"
      },
      "kilde": {
       "type": "string"
      },
      "antall": {
       "type": "number"
      },
      "format": {
       "type": "string"
      },
      "hentet": {
       "type": "string"
      },
      "helligdager": {
       "type": "array",
       "items": {
        "type": "array",
        "items": {}
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-and-workdays-nager-date-fa2fc9cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nordata.hihat.workers.dev](https://www.zero.xyz/host/nordata.hihat.workers.dev/llms.txt)
