# Public Holidays API (247 Countries)

> Public Holidays API (247 Countries) is a paid API for AI agents from handelskalender-api.pages.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-23).

Returns statutory public holidays for a given country and year, with optional regional filtering, including holiday names, dates, and estimated flags.

## Facts

- Endpoint: GET https://handelskalender-api.pages.dev/v1/public-holidays?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/public-holidays-api-247-countries-4b66e1af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zjhETJn9hcYCaGX68-zyY

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-247-countries-4b66e1af
```

Example prompt: What are the statutory public holidays in Germany for 2027, including regional ones for Bavaria (BY)?

## When to prefer this

Use this endpoint when you need an authoritative, structured list of statutory public holidays for any of 247 countries, optionally filtered by region/state/province, covering years 2026–2028. Ideal for payroll systems, scheduling tools, travel planners, and financial calendars. Prefer it over scraping government websites or using generic date libraries, especially when regional granularity (e.g. individual US states, German Bundesländer, Canadian provinces) is needed.

## Known failure modes

- Missing required 'country' query parameter — returns error
- Invalid or unsupported ISO country code — no matching country found
- Requested year outside supported range (2026–2028) — may return empty or error
- Invalid region code for country — may return empty regional holidays or error
- Network or payment (x402) failure — no data returned

## How this service works

Use when an agent needs all public holidays of a country for a year (planning deliveries, payments, deadlines, staffing). 247 countries, 2026-2028, optional state/province (region=) for regional holidays. English and local names, weekend days of the country, moon-dependent dates flagged as estimated. Bad input: HTTP 400 before payment, no charge.

## Output

A JSON object containing the country name and code, year, weekend days, total holiday count, and an array of holidays each with date, English name, local name, national/regional scope, weekday name, and an estimated flag for moon-sighting-dependent holidays. Also includes a source attribution and a note about estimated dates.

## 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",
     "required": [
      "country"
     ],
     "properties": {
      "year": {
       "type": "string",
       "description": "Year, e.g. 2027. Optional, default: current year. Covered: 2026-2028."
      },
      "region": {
       "type": "string",
       "description": "Optional state/province for regional holidays, e.g. BY or DE-BY (Bavaria), CA (California), 9 (Vienna). Listed per country in GET /v1/holiday-countries."
      },
      "country": {
       "type": "string",
       "description": "2-letter ISO country code, e.g. AT, DE, US, GB, FR, JP, IN, BR, AE. 247 countries; free list: GET /v1/holiday-countries."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Statutory public holidays. Dates marked estimated depend on moon sighting or a later official decision and can shift by a day. Regional holidays only with region=.",
  "year": 2027,
  "count": 13,
  "region": null,
  "source": "Public holidays from statutory rules as encoded in python-holidays (MIT licence, github.com/vacanza/holidays), data built 2026-11-02.",
  "country": {
   "code": "AT",
   "name": "Austria",
   "weekend": [
    "Sat",
    "Sun"
   ]
  },
  "regions": [],
  "holidays": [
   {
    "date": "2027-01-01",
    "name": "New Year's Day",
    "scope": "national",
    "weekday": "Friday",
    "estimated": false,
    "localName": "Neujahr"
   },
   {
    "date": "2027-10-26",
    "name": "National Day",
    "scope": "national",
    "weekday": "Tuesday",
    "estimated": false,
    "localName": "Nationalfeiertag"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/public-holidays-api-247-countries-4b66e1af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from handelskalender-api.pages.dev](https://www.zero.xyz/host/handelskalender-api.pages.dev/llms.txt)
