# OpenHolidays Regional API — Public & School Holidays with Subdivision Granularity

> OpenHolidays Regional API — Public & School Holidays with Subdivision Granularity is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns public and school holidays for a given country and date range, optionally filtered by ISO 3166-2 subdivision (e.g. German Länder, French academies, Spanish communities), sourced from the OpenHolidays API.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/eu/holidays-regional
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openholidays-regional-api-public-school-holidays-with-subdivision-4bb29d17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W4M-OIzmSsiFAjHXDl62A

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 openholidays-regional-api-public-school-holidays-with-subdivision-4bb29d17
```

Example prompt: What are the public holidays in Germany, specifically Bavaria (DE-BY), between July 1 and December 31, 2026?

## When to prefer this

Use this endpoint when you need subdivision-level holiday granularity (e.g. German Länder, French académies, Spanish autonomous communities) rather than just nationwide holidays. It is preferable to generic holiday APIs when regional differences matter — for scheduling, HR systems, travel planning, or compliance checks in federated countries. For simpler country-wide holiday lists without subdivision filtering, a lighter endpoint may suffice.

## Known failure modes

- Missing required 'country' parameter returns a 400 error
- Date window exceeding 366 days returns a validation error
- Unsupported or misspelled country code may return empty results or 404
- Invalid subdivision code may return empty results rather than an error
- Non-business or weekend dates are not relevant (holidays can fall any day, but ECB-style gaps don't apply here)
- Countries not covered by OpenHolidays (~36 mostly European) will return empty or error responses

## How this service works

Public holidays and school holidays with subdivision granularity (German Laender, French academies, Spanish communities...) from the OpenHolidays API (data ODbL-1.0, ~36 mostly European countries). Query: ?country=DE&from=2026-07-01&to=2026-12-31&type=public|school&subdivision=DE-BY (optional ISO 3166-2 filter; window max 366 days, default today +6 months). Each entry: dates, English name, nationwide flag, affected subdivision codes. 24h cache.

## Output

A list of holiday entries each containing: start and end dates, English holiday name, a boolean indicating whether the holiday is nationwide or region-specific, the holiday type (public or school), and the list of ISO 3166-2 subdivision codes affected. Results are cached for 24 hours.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "ISO end date (default: from + 6 months, max +366 days)"
      },
      "from": {
       "type": "string",
       "description": "ISO start date (default: today)"
      },
      "type": {
       "enum": [
        "public",
        "school"
       ],
       "type": "string",
       "default": "public"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code (e.g. DE, FR, AT)"
      },
      "subdivision": {
       "type": "string",
       "description": "ISO 3166-2 subdivision filter, e.g. DE-BY"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openholidays-regional-api-public-school-holidays-with-subdivision-4bb29d17/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
