# World Public Holidays by Country and Year

> World Public Holidays by Country and Year is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the full list of official public holidays for a given country and year, sourced from the Nager.Date registry with legally accurate dates for 100+ countries.

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/world/holidays
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/world-public-holidays-by-country-and-year-ce9ad737
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QrhT4jtyuRdKcyC2Xrjl4

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 world-public-holidays-by-country-and-year-ce9ad737
```

Example prompt: Can you get me the full list of official public holidays in France for 2026, including their local names and whether they apply nationwide?

## When to prefer this

Use this endpoint when you need legally accurate, structured public holiday data for a specific country and year, especially when regional/county-level detail and local language names are needed. Prefer this over general web search for holiday data when machine-readable, structured output is required for scheduling, compliance, or calendar automation tasks.

## Known failure modes

- Missing or invalid country code returns an error (country parameter is required)
- Year outside the supported range 1975–2077 returns an error
- Unsupported or unrecognized country code may return an empty list or error
- Network or upstream Nager.Date registry unavailability causes a service error

## How this service works

Full list of official public holidays for one country and year, from the Nager.Date registry (100+ countries, legally accurate dates). Query: ?country=FR (ISO 3166-1 alpha-2, required) &year=2026 (1975-2077, defaults to current year). Returns date, English + local name, nationwide flag, regional counties and holiday types per entry. Cached 24h.

## Output

An array of public holiday entries for the specified country and year, each containing the date, English name, local language name, a flag indicating if it is nationwide, applicable regional counties, and holiday type classification. 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": {
      "year": {
       "type": "integer",
       "description": "Year between 1975 and 2077 (default: current year)"
      },
      "country": {
       "type": "string",
       "description": "ISO 3166-1 alpha-2 country code, e.g. FR"
      }
     }
    }
   },
   "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/world-public-holidays-by-country-and-year-ce9ad737/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)
